From d3f33f50e0e23b6ebfbe65645362693486aa11ab Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Mon, 24 Feb 2020 02:54:05 +0800 Subject: [PATCH] feat: add nukkit type defiend --- .../typings/nukkit/cn.nukkit.Achievement.d.ts | 23 + .../cn.nukkit.AdventureSettings.Type.d.ts | 45 + .../nukkit/cn.nukkit.AdventureSettings.d.ts | 27 + .../typings/nukkit/cn.nukkit.IPlayer.d.ts | 82 + .../nukkit/cn.nukkit.InterruptibleThread.d.ts | 7 + .../dist/typings/nukkit/cn.nukkit.Nukkit.d.ts | 43 + .../nukkit/cn.nukkit.OfflinePlayer.d.ts | 53 + .../dist/typings/nukkit/cn.nukkit.Player.d.ts | 731 ++++++++ .../typings/nukkit/cn.nukkit.PlayerFood.d.ts | 45 + .../dist/typings/nukkit/cn.nukkit.Server.d.ts | 348 ++++ .../nukkit/cn.nukkit.api.API.Definition.d.ts | 21 + .../nukkit/cn.nukkit.api.API.Usage.d.ts | 27 + .../typings/nukkit/cn.nukkit.api.API.d.ts | 20 + .../typings/nukkit/cn.nukkit.block.Block.d.ts | 212 +++ .../nukkit/cn.nukkit.block.BlockAir.d.ts | 37 + .../nukkit/cn.nukkit.block.BlockAnvil.d.ts | 47 + .../nukkit/cn.nukkit.block.BlockBanner.d.ts | 39 + .../nukkit/cn.nukkit.block.BlockBeacon.d.ts | 33 + .../nukkit/cn.nukkit.block.BlockBed.d.ts | 41 + .../nukkit/cn.nukkit.block.BlockBedrock.d.ts | 25 + ...cn.nukkit.block.BlockBedrockInvisible.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockBeetroot.d.ts | 21 + .../nukkit/cn.nukkit.block.BlockBone.d.ts | 31 + .../cn.nukkit.block.BlockBookshelf.d.ts | 33 + .../cn.nukkit.block.BlockBrewingStand.d.ts | 43 + .../nukkit/cn.nukkit.block.BlockBricks.d.ts | 27 + .../cn.nukkit.block.BlockBricksEndStone.d.ts | 25 + .../cn.nukkit.block.BlockBricksNether.d.ts | 25 + .../cn.nukkit.block.BlockBricksRedNether.d.ts | 19 + .../cn.nukkit.block.BlockBricksStone.d.ts | 35 + .../nukkit/cn.nukkit.block.BlockButton.d.ts | 41 + .../cn.nukkit.block.BlockButtonStone.d.ts | 19 + .../cn.nukkit.block.BlockButtonWooden.d.ts | 19 + .../nukkit/cn.nukkit.block.BlockCactus.d.ts | 47 + .../nukkit/cn.nukkit.block.BlockCake.d.ts | 51 + .../nukkit/cn.nukkit.block.BlockCarpet.d.ts | 39 + .../nukkit/cn.nukkit.block.BlockCarrot.d.ts | 21 + .../nukkit/cn.nukkit.block.BlockCauldron.d.ts | 45 + .../nukkit/cn.nukkit.block.BlockChest.d.ts | 53 + .../cn.nukkit.block.BlockChorusFlower.d.ts | 23 + .../cn.nukkit.block.BlockChorusPlant.d.ts | 25 + .../nukkit/cn.nukkit.block.BlockClay.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockCoal.d.ts | 31 + .../cn.nukkit.block.BlockCobblestone.d.ts | 25 + .../nukkit/cn.nukkit.block.BlockCobweb.d.ts | 31 + .../nukkit/cn.nukkit.block.BlockCocoa.d.ts | 61 + .../nukkit/cn.nukkit.block.BlockConcrete.d.ts | 29 + .../cn.nukkit.block.BlockConcretePowder.d.ts | 33 + .../cn.nukkit.block.BlockCraftingTable.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockCrops.d.ts | 21 + .../cn.nukkit.block.BlockDandelion.d.ts | 19 + ...cn.nukkit.block.BlockDaylightDetector.d.ts | 23 + ...t.block.BlockDaylightDetectorInverted.d.ts | 19 + .../nukkit/cn.nukkit.block.BlockDeadBush.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockDiamond.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockDirt.d.ts | 31 + .../cn.nukkit.block.BlockDispenser.d.ts | 35 + .../nukkit/cn.nukkit.block.BlockDoor.d.ts | 49 + .../cn.nukkit.block.BlockDoorAcacia.d.ts | 21 + .../cn.nukkit.block.BlockDoorBirch.d.ts | 21 + .../cn.nukkit.block.BlockDoorDarkOak.d.ts | 21 + .../nukkit/cn.nukkit.block.BlockDoorIron.d.ts | 35 + .../cn.nukkit.block.BlockDoorJungle.d.ts | 21 + .../cn.nukkit.block.BlockDoorSpruce.d.ts | 21 + .../nukkit/cn.nukkit.block.BlockDoorWood.d.ts | 27 + .../cn.nukkit.block.BlockDoublePlant.d.ts | 47 + .../cn.nukkit.block.BlockDoubleSlab.d.ts | 41 + ...kit.block.BlockDoubleSlabRedSandstone.d.ts | 31 + .../cn.nukkit.block.BlockDoubleSlabStone.d.ts | 47 + .../cn.nukkit.block.BlockDoubleSlabWood.d.ts | 29 + .../cn.nukkit.block.BlockDragonEgg.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockEmerald.d.ts | 27 + .../cn.nukkit.block.BlockEnchantingTable.d.ts | 35 + .../cn.nukkit.block.BlockEndGateway.d.ts | 31 + .../cn.nukkit.block.BlockEndPortal.d.ts | 37 + .../cn.nukkit.block.BlockEndPortalFrame.d.ts | 47 + .../nukkit/cn.nukkit.block.BlockEndRod.d.ts | 41 + .../nukkit/cn.nukkit.block.BlockEndStone.d.ts | 27 + .../cn.nukkit.block.BlockEnderChest.d.ts | 57 + .../nukkit/cn.nukkit.block.BlockFallable.d.ts | 13 + .../nukkit/cn.nukkit.block.BlockFarmland.d.ts | 31 + .../nukkit/cn.nukkit.block.BlockFence.d.ts | 47 + .../cn.nukkit.block.BlockFenceGate.d.ts | 49 + .../cn.nukkit.block.BlockFenceGateAcacia.d.ts | 21 + .../cn.nukkit.block.BlockFenceGateBirch.d.ts | 21 + ...cn.nukkit.block.BlockFenceGateDarkOak.d.ts | 21 + .../cn.nukkit.block.BlockFenceGateJungle.d.ts | 21 + .../cn.nukkit.block.BlockFenceGateSpruce.d.ts | 21 + ...cn.nukkit.block.BlockFenceNetherBrick.d.ts | 31 + .../nukkit/cn.nukkit.block.BlockFire.d.ts | 43 + .../nukkit/cn.nukkit.block.BlockFlowable.d.ts | 23 + .../nukkit/cn.nukkit.block.BlockFlower.d.ts | 47 + .../cn.nukkit.block.BlockFlowerPot.d.ts | 49 + .../nukkit/cn.nukkit.block.BlockFurnace.d.ts | 21 + .../cn.nukkit.block.BlockFurnaceBurning.d.ts | 45 + .../nukkit/cn.nukkit.block.BlockGlass.d.ts | 25 + .../cn.nukkit.block.BlockGlassPane.d.ts | 25 + ...cn.nukkit.block.BlockGlassPaneStained.d.ts | 29 + .../cn.nukkit.block.BlockGlassStained.d.ts | 29 + .../cn.nukkit.block.BlockGlowstone.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockGold.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockGrass.d.ts | 33 + .../cn.nukkit.block.BlockGrassPath.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockGravel.d.ts | 23 + .../nukkit/cn.nukkit.block.BlockHayBale.d.ts | 31 + .../nukkit/cn.nukkit.block.BlockHopper.d.ts | 49 + ...n.nukkit.block.BlockHugeMushroomBrown.d.ts | 29 + .../cn.nukkit.block.BlockHugeMushroomRed.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockID.d.ts | 591 ++++++ .../nukkit/cn.nukkit.block.BlockIce.d.ts | 33 + .../cn.nukkit.block.BlockIcePacked.d.ts | 25 + .../nukkit/cn.nukkit.block.BlockIron.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockIronBars.d.ts | 29 + .../cn.nukkit.block.BlockItemFrame.d.ts | 41 + .../nukkit/cn.nukkit.block.BlockJukebox.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockLadder.d.ts | 51 + .../nukkit/cn.nukkit.block.BlockLapis.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockLava.d.ts | 41 + .../cn.nukkit.block.BlockLavaStill.d.ts | 21 + .../nukkit/cn.nukkit.block.BlockLeaves.d.ts | 57 + .../nukkit/cn.nukkit.block.BlockLeaves2.d.ts | 25 + ...kit.block.BlockLever.LeverOrientation.d.ts | 43 + .../nukkit/cn.nukkit.block.BlockLever.d.ts | 47 + .../nukkit/cn.nukkit.block.BlockLiquid.d.ts | 75 + .../nukkit/cn.nukkit.block.BlockMagma.d.ts | 31 + .../nukkit/cn.nukkit.block.BlockMelon.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockMeta.d.ts | 17 + .../cn.nukkit.block.BlockMobSpawner.d.ts | 27 + .../cn.nukkit.block.BlockMonsterEgg.d.ts | 35 + .../cn.nukkit.block.BlockMossStone.d.ts | 25 + .../nukkit/cn.nukkit.block.BlockMushroom.d.ts | 31 + .../cn.nukkit.block.BlockMushroomBrown.d.ts | 21 + .../cn.nukkit.block.BlockMushroomRed.d.ts | 19 + .../nukkit/cn.nukkit.block.BlockMycelium.d.ts | 29 + .../cn.nukkit.block.BlockNetherBrick.d.ts | 27 + .../cn.nukkit.block.BlockNetherPortal.d.ts | 43 + .../cn.nukkit.block.BlockNetherWart.d.ts | 27 + .../cn.nukkit.block.BlockNetherWartBlock.d.ts | 23 + .../cn.nukkit.block.BlockNetherrack.d.ts | 27 + ...ukkit.block.BlockNoteblock.Instrument.d.ts | 49 + .../cn.nukkit.block.BlockNoteblock.d.ts | 39 + .../nukkit/cn.nukkit.block.BlockObserver.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockObsidian.d.ts | 31 + .../cn.nukkit.block.BlockObsidianGlowing.d.ts | 31 + .../nukkit/cn.nukkit.block.BlockOreCoal.d.ts | 31 + .../cn.nukkit.block.BlockOreDiamond.d.ts | 29 + .../cn.nukkit.block.BlockOreEmerald.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockOreGold.d.ts | 25 + .../nukkit/cn.nukkit.block.BlockOreIron.d.ts | 25 + .../nukkit/cn.nukkit.block.BlockOreLapis.d.ts | 29 + .../cn.nukkit.block.BlockOreQuartz.d.ts | 29 + .../cn.nukkit.block.BlockOreRedstone.d.ts | 31 + ....nukkit.block.BlockOreRedstoneGlowing.d.ts | 25 + .../nukkit/cn.nukkit.block.BlockPiston.d.ts | 17 + ...lock.BlockPistonBase.BlocksCalculator.d.ts | 19 + .../cn.nukkit.block.BlockPistonBase.d.ts | 35 + .../cn.nukkit.block.BlockPistonHead.d.ts | 31 + .../cn.nukkit.block.BlockPistonSticky.d.ts | 17 + .../nukkit/cn.nukkit.block.BlockPlanks.d.ts | 41 + .../nukkit/cn.nukkit.block.BlockPodzol.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockPotato.d.ts | 21 + ...n.nukkit.block.BlockPressurePlateBase.d.ts | 65 + ....nukkit.block.BlockPressurePlateStone.d.ts | 29 + ...n.nukkit.block.BlockPressurePlateWood.d.ts | 29 + .../cn.nukkit.block.BlockPrismarine.d.ts | 35 + .../nukkit/cn.nukkit.block.BlockPumpkin.d.ts | 33 + .../cn.nukkit.block.BlockPumpkinLit.d.ts | 19 + .../nukkit/cn.nukkit.block.BlockPurpur.d.ts | 35 + .../nukkit/cn.nukkit.block.BlockQuartz.d.ts | 41 + .../nukkit/cn.nukkit.block.BlockRail.d.ts | 59 + .../cn.nukkit.block.BlockRailActivator.d.ts | 28 + .../cn.nukkit.block.BlockRailDetector.d.ts | 31 + .../cn.nukkit.block.BlockRailPowered.d.ts | 28 + .../cn.nukkit.block.BlockRedSandstone.d.ts | 25 + .../nukkit/cn.nukkit.block.BlockRedstone.d.ts | 33 + ...it.block.BlockRedstoneComparator.Mode.d.ts | 19 + ....nukkit.block.BlockRedstoneComparator.d.ts | 43 + ....block.BlockRedstoneComparatorPowered.d.ts | 19 + ...lock.BlockRedstoneComparatorUnpowered.d.ts | 19 + .../cn.nukkit.block.BlockRedstoneDiode.d.ts | 65 + .../cn.nukkit.block.BlockRedstoneLamp.d.ts | 29 + .../cn.nukkit.block.BlockRedstoneLampLit.d.ts | 21 + ...it.block.BlockRedstoneRepeaterPowered.d.ts | 35 + ....block.BlockRedstoneRepeaterUnpowered.d.ts | 33 + .../cn.nukkit.block.BlockRedstoneTorch.d.ts | 39 + ....nukkit.block.BlockRedstoneTorchUnlit.d.ts | 31 + .../cn.nukkit.block.BlockRedstoneWire.d.ts | 41 + .../nukkit/cn.nukkit.block.BlockSand.d.ts | 35 + .../cn.nukkit.block.BlockSandstone.d.ts | 37 + .../nukkit/cn.nukkit.block.BlockSapling.d.ts | 45 + .../cn.nukkit.block.BlockSeaLantern.d.ts | 27 + .../cn.nukkit.block.BlockShulkerBox.d.ts | 27 + .../nukkit/cn.nukkit.block.BlockSignPost.d.ts | 37 + .../nukkit/cn.nukkit.block.BlockSkull.d.ts | 33 + .../nukkit/cn.nukkit.block.BlockSlab.d.ts | 23 + ...cn.nukkit.block.BlockSlabRedSandstone.d.ts | 29 + .../cn.nukkit.block.BlockSlabStone.d.ts | 43 + .../nukkit/cn.nukkit.block.BlockSlabWood.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockSlime.d.ts | 21 + .../nukkit/cn.nukkit.block.BlockSnow.d.ts | 29 + .../cn.nukkit.block.BlockSnowLayer.d.ts | 51 + .../nukkit/cn.nukkit.block.BlockSolid.d.ts | 15 + .../cn.nukkit.block.BlockSolidMeta.d.ts | 15 + .../nukkit/cn.nukkit.block.BlockSoulSand.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockSponge.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockStairs.d.ts | 25 + .../cn.nukkit.block.BlockStairsAcacia.d.ts | 19 + .../cn.nukkit.block.BlockStairsBirch.d.ts | 19 + .../cn.nukkit.block.BlockStairsBrick.d.ts | 27 + ...n.nukkit.block.BlockStairsCobblestone.d.ts | 27 + .../cn.nukkit.block.BlockStairsDarkOak.d.ts | 19 + .../cn.nukkit.block.BlockStairsJungle.d.ts | 19 + ...n.nukkit.block.BlockStairsNetherBrick.d.ts | 27 + .../cn.nukkit.block.BlockStairsPurpur.d.ts | 25 + .../cn.nukkit.block.BlockStairsQuartz.d.ts | 27 + ....nukkit.block.BlockStairsRedSandstone.d.ts | 31 + .../cn.nukkit.block.BlockStairsSandstone.d.ts | 27 + .../cn.nukkit.block.BlockStairsSpruce.d.ts | 19 + ...cn.nukkit.block.BlockStairsStoneBrick.d.ts | 23 + .../cn.nukkit.block.BlockStairsWood.d.ts | 33 + .../cn.nukkit.block.BlockStemMelon.d.ts | 23 + .../cn.nukkit.block.BlockStemPumpkin.d.ts | 23 + .../nukkit/cn.nukkit.block.BlockStone.d.ts | 43 + .../cn.nukkit.block.BlockStonecutter.d.ts | 25 + .../cn.nukkit.block.BlockSugarcane.d.ts | 29 + .../nukkit/cn.nukkit.block.BlockTNT.d.ts | 37 + .../cn.nukkit.block.BlockTallGrass.d.ts | 37 + .../cn.nukkit.block.BlockTerracotta.d.ts | 31 + ...cn.nukkit.block.BlockTerracottaGlazed.d.ts | 27 + ...kkit.block.BlockTerracottaGlazedBlack.d.ts | 19 + ...ukkit.block.BlockTerracottaGlazedBlue.d.ts | 19 + ...kkit.block.BlockTerracottaGlazedBrown.d.ts | 19 + ...ukkit.block.BlockTerracottaGlazedCyan.d.ts | 19 + ...ukkit.block.BlockTerracottaGlazedGray.d.ts | 19 + ...kkit.block.BlockTerracottaGlazedGreen.d.ts | 19 + ....block.BlockTerracottaGlazedLightBlue.d.ts | 19 + ...ukkit.block.BlockTerracottaGlazedLime.d.ts | 19 + ...it.block.BlockTerracottaGlazedMagenta.d.ts | 19 + ...kit.block.BlockTerracottaGlazedOrange.d.ts | 19 + ...ukkit.block.BlockTerracottaGlazedPink.d.ts | 19 + ...kit.block.BlockTerracottaGlazedPurple.d.ts | 19 + ...nukkit.block.BlockTerracottaGlazedRed.d.ts | 19 + ...kit.block.BlockTerracottaGlazedSilver.d.ts | 19 + ...kkit.block.BlockTerracottaGlazedWhite.d.ts | 19 + ...kit.block.BlockTerracottaGlazedYellow.d.ts | 19 + ...n.nukkit.block.BlockTerracottaStained.d.ts | 31 + .../nukkit/cn.nukkit.block.BlockThin.d.ts | 17 + .../nukkit/cn.nukkit.block.BlockTorch.d.ts | 31 + .../cn.nukkit.block.BlockTransparent.d.ts | 15 + .../cn.nukkit.block.BlockTransparentMeta.d.ts | 17 + .../nukkit/cn.nukkit.block.BlockTrapdoor.d.ts | 59 + .../cn.nukkit.block.BlockTrapdoorIron.d.ts | 29 + .../cn.nukkit.block.BlockTrappedChest.d.ts | 25 + .../nukkit/cn.nukkit.block.BlockTripWire.d.ts | 53 + .../cn.nukkit.block.BlockTripWireHook.d.ts | 45 + ...cn.nukkit.block.BlockUndyedShulkerBox.d.ts | 33 + .../nukkit/cn.nukkit.block.BlockUnknown.d.ts | 17 + .../nukkit/cn.nukkit.block.BlockVine.d.ts | 47 + .../nukkit/cn.nukkit.block.BlockWall.d.ts | 35 + .../cn.nukkit.block.BlockWallBanner.d.ts | 19 + .../nukkit/cn.nukkit.block.BlockWallSign.d.ts | 19 + .../nukkit/cn.nukkit.block.BlockWater.d.ts | 27 + .../cn.nukkit.block.BlockWaterLily.d.ts | 43 + .../cn.nukkit.block.BlockWaterStill.d.ts | 19 + ...block.BlockWeightedPressurePlateHeavy.d.ts | 33 + ...block.BlockWeightedPressurePlateLight.d.ts | 33 + .../nukkit/cn.nukkit.block.BlockWheat.d.ts | 21 + .../nukkit/cn.nukkit.block.BlockWood.d.ts | 41 + .../nukkit/cn.nukkit.block.BlockWood2.d.ts | 23 + .../nukkit/cn.nukkit.block.BlockWool.d.ts | 33 + .../cn.nukkit.blockentity.BlockEntity.d.ts | 109 ++ ....nukkit.blockentity.BlockEntityBanner.d.ts | 41 + ....nukkit.blockentity.BlockEntityBeacon.d.ts | 33 + .../cn.nukkit.blockentity.BlockEntityBed.d.ts | 23 + ...t.blockentity.BlockEntityBrewingStand.d.ts | 65 + ...ukkit.blockentity.BlockEntityCauldron.d.ts | 37 + ...n.nukkit.blockentity.BlockEntityChest.d.ts | 57 + ...kit.blockentity.BlockEntityComparator.d.ts | 19 + ...kkit.blockentity.BlockEntityContainer.d.ts | 29 + ...t.blockentity.BlockEntityEnchantTable.d.ts | 21 + ...kit.blockentity.BlockEntityEnderChest.d.ts | 17 + ...kkit.blockentity.BlockEntityFlowerPot.d.ts | 17 + ...nukkit.blockentity.BlockEntityFurnace.d.ts | 69 + ....nukkit.blockentity.BlockEntityHopper.d.ts | 55 + ...kkit.blockentity.BlockEntityItemFrame.d.ts | 37 + ...nukkit.blockentity.BlockEntityJukebox.d.ts | 29 + ...it.blockentity.BlockEntityMovingBlock.d.ts | 25 + ...n.nukkit.blockentity.BlockEntityMusic.d.ts | 23 + ...ukkit.blockentity.BlockEntityNameable.d.ts | 27 + ...kkit.blockentity.BlockEntityPistonArm.d.ts | 39 + ...kit.blockentity.BlockEntityShulkerBox.d.ts | 41 + ...cn.nukkit.blockentity.BlockEntitySign.d.ts | 25 + ...n.nukkit.blockentity.BlockEntitySkull.d.ts | 19 + ...kkit.blockentity.BlockEntitySpawnable.d.ts | 25 + .../nukkit/cn.nukkit.command.Command.d.ts | 100 ++ .../cn.nukkit.command.CommandExecutor.d.ts | 31 + .../nukkit/cn.nukkit.command.CommandMap.d.ts | 23 + .../cn.nukkit.command.CommandSender.d.ts | 42 + ...n.nukkit.command.ConsoleCommandSender.d.ts | 45 + ....nukkit.command.FormattedCommandAlias.d.ts | 15 + .../cn.nukkit.command.PluginCommand.d.ts | 19 + ...kit.command.PluginIdentifiableCommand.d.ts | 11 + ...it.command.RemoteConsoleCommandSender.d.ts | 19 + .../cn.nukkit.command.SimpleCommandMap.d.ts | 31 + .../cn.nukkit.command.data.CommandArgs.d.ts | 13 + .../cn.nukkit.command.data.CommandData.d.ts | 25 + ...kkit.command.data.CommandDataVersions.d.ts | 15 + .../cn.nukkit.command.data.CommandEnum.d.ts | 19 + .../cn.nukkit.command.data.CommandInput.d.ts | 15 + .../cn.nukkit.command.data.CommandOutput.d.ts | 15 + ...n.nukkit.command.data.CommandOverload.d.ts | 17 + ....nukkit.command.data.CommandParamType.d.ts | 47 + ....nukkit.command.data.CommandParameter.d.ts | 71 + ...n.nukkit.command.data.args.CommandArg.d.ts | 19 + ...mmand.data.args.CommandArgBlockVector.d.ts | 27 + ...kit.command.data.args.CommandArgRules.d.ts | 21 + ...cn.nukkit.command.defaults.BanCommand.d.ts | 15 + ....nukkit.command.defaults.BanIpCommand.d.ts | 15 + ...ukkit.command.defaults.BanListCommand.d.ts | 15 + ...it.command.defaults.DebugPasteCommand.d.ts | 15 + ...mmand.defaults.DefaultGamemodeCommand.d.ts | 15 + ...n.nukkit.command.defaults.DeopCommand.d.ts | 15 + ...it.command.defaults.DifficultyCommand.d.ts | 15 + ...nukkit.command.defaults.EffectCommand.d.ts | 15 + ...ukkit.command.defaults.EnchantCommand.d.ts | 17 + ...kkit.command.defaults.GamemodeCommand.d.ts | 15 + ...kkit.command.defaults.GameruleCommand.d.ts | 15 + ...mand.defaults.GarbageCollectorCommand.d.ts | 15 + ...n.nukkit.command.defaults.GiveCommand.d.ts | 15 + ...n.nukkit.command.defaults.HelpCommand.d.ts | 15 + ...n.nukkit.command.defaults.KickCommand.d.ts | 15 + ...n.nukkit.command.defaults.KillCommand.d.ts | 15 + ...n.nukkit.command.defaults.ListCommand.d.ts | 15 + .../cn.nukkit.command.defaults.MeCommand.d.ts | 15 + .../cn.nukkit.command.defaults.OpCommand.d.ts | 15 + ...nukkit.command.defaults.PardonCommand.d.ts | 15 + ...kkit.command.defaults.PardonIpCommand.d.ts | 15 + ...kkit.command.defaults.ParticleCommand.d.ts | 15 + ...ukkit.command.defaults.PluginsCommand.d.ts | 15 + ...nukkit.command.defaults.ReloadCommand.d.ts | 15 + ...n.nukkit.command.defaults.SaveCommand.d.ts | 15 + ...ukkit.command.defaults.SaveOffCommand.d.ts | 15 + ...nukkit.command.defaults.SaveOnCommand.d.ts | 15 + ...cn.nukkit.command.defaults.SayCommand.d.ts | 15 + ...n.nukkit.command.defaults.SeedCommand.d.ts | 15 + ...command.defaults.SetWorldSpawnCommand.d.ts | 15 + ...it.command.defaults.SpawnpointCommand.d.ts | 15 + ...nukkit.command.defaults.StatusCommand.d.ts | 15 + ...n.nukkit.command.defaults.StopCommand.d.ts | 15 + ...kkit.command.defaults.TeleportCommand.d.ts | 15 + ...n.nukkit.command.defaults.TellCommand.d.ts | 15 + ...n.nukkit.command.defaults.TimeCommand.d.ts | 15 + ...ukkit.command.defaults.TimingsCommand.d.ts | 15 + ....nukkit.command.defaults.TitleCommand.d.ts | 15 + ...ukkit.command.defaults.VanillaCommand.d.ts | 19 + ...ukkit.command.defaults.VersionCommand.d.ts | 15 + ...ukkit.command.defaults.WeatherCommand.d.ts | 15 + ...kit.command.defaults.WhitelistCommand.d.ts | 15 + .../cn.nukkit.command.defaults.XpCommand.d.ts | 15 + .../cn.nukkit.command.simple.Arguments.d.ts | 15 + .../cn.nukkit.command.simple.Command.d.ts | 19 + ...kkit.command.simple.CommandParameters.d.ts | 13 + ...kkit.command.simple.CommandPermission.d.ts | 13 + ...n.nukkit.command.simple.ForbidConsole.d.ts | 11 + .../cn.nukkit.command.simple.Parameter.d.ts | 17 + .../cn.nukkit.command.simple.Parameters.d.ts | 15 + ...n.nukkit.command.simple.SimpleCommand.d.ts | 25 + .../cn.nukkit.console.NukkitConsole.d.ts | 25 + ...nukkit.console.NukkitConsoleCompleter.d.ts | 13 + ...kkit.dispenser.BucketDispenseBehavior.d.ts | 13 + ...kit.dispenser.DefaultDispenseBehavior.d.ts | 13 + .../cn.nukkit.dispenser.DispenseBehavior.d.ts | 11 + ...it.dispenser.DispenseBehaviorRegister.d.ts | 17 + ...dispenser.EmptyBucketDispenseBehavior.d.ts | 13 + ....dispenser.ProjectileDispenseBehavior.d.ts | 22 + .../nukkit/cn.nukkit.entity.Attribute.d.ts | 85 + .../nukkit/cn.nukkit.entity.Entity.d.ts | 809 +++++++++ .../cn.nukkit.entity.EntityAgeable.d.ts | 11 + .../cn.nukkit.entity.EntityArthropod.d.ts | 9 + .../cn.nukkit.entity.EntityCreature.d.ts | 11 + .../cn.nukkit.entity.EntityDamageable.d.ts | 9 + .../cn.nukkit.entity.EntityExplosive.d.ts | 11 + .../cn.nukkit.entity.EntityHanging.d.ts | 23 + .../nukkit/cn.nukkit.entity.EntityHuman.d.ts | 59 + .../cn.nukkit.entity.EntityHumanType.d.ts | 35 + .../cn.nukkit.entity.EntityInteractable.d.ts | 13 + .../nukkit/cn.nukkit.entity.EntityLiving.d.ts | 69 + .../cn.nukkit.entity.EntityOwnable.d.ts | 15 + .../cn.nukkit.entity.EntityRideable.d.ts | 16 + .../nukkit/cn.nukkit.entity.EntitySmite.d.ts | 9 + .../cn.nukkit.entity.data.ByteEntityData.d.ts | 21 + .../cn.nukkit.entity.data.EntityData.d.ts | 25 + .../cn.nukkit.entity.data.EntityMetadata.d.ts | 61 + ...cn.nukkit.entity.data.FloatEntityData.d.ts | 21 + .../cn.nukkit.entity.data.IntEntityData.d.ts | 21 + ...kit.entity.data.IntPositionEntityData.d.ts | 27 + .../cn.nukkit.entity.data.LongEntityData.d.ts | 21 + .../cn.nukkit.entity.data.NBTEntityData.d.ts | 21 + ...cn.nukkit.entity.data.ShortEntityData.d.ts | 21 + .../nukkit/cn.nukkit.entity.data.Skin.d.ts | 83 + ...n.nukkit.entity.data.StringEntityData.d.ts | 23 + ...nukkit.entity.data.Vector3fEntityData.d.ts | 27 + .../cn.nukkit.entity.item.EntityBoat.d.ts | 83 + ...n.nukkit.entity.item.EntityEndCrystal.d.ts | 35 + ...cn.nukkit.entity.item.EntityExpBottle.d.ts | 35 + ...nukkit.entity.item.EntityFallingBlock.d.ts | 51 + .../cn.nukkit.entity.item.EntityFirework.d.ts | 27 + ....nukkit.entity.item.EntityFishingHook.d.ts | 65 + .../cn.nukkit.entity.item.EntityItem.d.ts | 71 + ...it.entity.item.EntityMinecartAbstract.d.ts | 105 ++ ...ukkit.entity.item.EntityMinecartChest.d.ts | 29 + ...ukkit.entity.item.EntityMinecartEmpty.d.ts | 25 + ...kkit.entity.item.EntityMinecartHopper.d.ts | 29 + ....nukkit.entity.item.EntityMinecartTNT.d.ts | 39 + ...kit.entity.item.EntityPainting.Motive.d.ts | 75 + .../cn.nukkit.entity.item.EntityPainting.d.ts | 33 + .../cn.nukkit.entity.item.EntityPotion.d.ts | 39 + ...cn.nukkit.entity.item.EntityPrimedTNT.d.ts | 51 + .../cn.nukkit.entity.item.EntityVehicle.d.ts | 37 + .../cn.nukkit.entity.item.EntityXPOrb.d.ts | 62 + .../cn.nukkit.entity.mob.EntityBlaze.d.ts | 25 + ...cn.nukkit.entity.mob.EntityCaveSpider.d.ts | 25 + .../cn.nukkit.entity.mob.EntityCreeper.d.ts | 43 + .../cn.nukkit.entity.mob.EntityDrowned.d.ts | 27 + ...nukkit.entity.mob.EntityElderGuardian.d.ts | 25 + ...n.nukkit.entity.mob.EntityEnderDragon.d.ts | 25 + .../cn.nukkit.entity.mob.EntityEnderman.d.ts | 25 + .../cn.nukkit.entity.mob.EntityEndermite.d.ts | 25 + .../cn.nukkit.entity.mob.EntityEvoker.d.ts | 25 + .../cn.nukkit.entity.mob.EntityGhast.d.ts | 25 + .../cn.nukkit.entity.mob.EntityGuardian.d.ts | 25 + .../cn.nukkit.entity.mob.EntityHusk.d.ts | 25 + .../cn.nukkit.entity.mob.EntityMagmaCube.d.ts | 25 + .../cn.nukkit.entity.mob.EntityMob.d.ts | 15 + .../cn.nukkit.entity.mob.EntityPhantom.d.ts | 27 + .../cn.nukkit.entity.mob.EntityPillager.d.ts | 25 + .../cn.nukkit.entity.mob.EntityRavager.d.ts | 25 + .../cn.nukkit.entity.mob.EntityShulker.d.ts | 25 + ...cn.nukkit.entity.mob.EntitySilverfish.d.ts | 25 + .../cn.nukkit.entity.mob.EntitySkeleton.d.ts | 27 + .../cn.nukkit.entity.mob.EntitySlime.d.ts | 27 + .../cn.nukkit.entity.mob.EntitySpider.d.ts | 27 + .../cn.nukkit.entity.mob.EntityStray.d.ts | 27 + .../cn.nukkit.entity.mob.EntityVex.d.ts | 25 + ...cn.nukkit.entity.mob.EntityVindicator.d.ts | 27 + .../cn.nukkit.entity.mob.EntityWitch.d.ts | 25 + .../cn.nukkit.entity.mob.EntityWither.d.ts | 25 + ...ukkit.entity.mob.EntityWitherSkeleton.d.ts | 25 + .../cn.nukkit.entity.mob.EntityZombie.d.ts | 25 + ....nukkit.entity.mob.EntityZombiePigman.d.ts | 25 + ...ukkit.entity.mob.EntityZombieVillager.d.ts | 25 + ...kit.entity.mob.EntityZombieVillagerV1.d.ts | 25 + ...cn.nukkit.entity.passive.EntityAnimal.d.ts | 19 + .../cn.nukkit.entity.passive.EntityBat.d.ts | 23 + .../cn.nukkit.entity.passive.EntityCat.d.ts | 23 + ...n.nukkit.entity.passive.EntityChicken.d.ts | 29 + .../cn.nukkit.entity.passive.EntityCod.d.ts | 25 + .../cn.nukkit.entity.passive.EntityCow.d.ts | 27 + ...n.nukkit.entity.passive.EntityDolphin.d.ts | 27 + ...cn.nukkit.entity.passive.EntityDonkey.d.ts | 25 + .../cn.nukkit.entity.passive.EntityHorse.d.ts | 25 + .../cn.nukkit.entity.passive.EntityLlama.d.ts | 25 + ...nukkit.entity.passive.EntityMooshroom.d.ts | 27 + .../cn.nukkit.entity.passive.EntityMule.d.ts | 25 + .../cn.nukkit.entity.passive.EntityNPC.d.ts | 11 + ...cn.nukkit.entity.passive.EntityOcelot.d.ts | 27 + .../cn.nukkit.entity.passive.EntityPanda.d.ts | 25 + ...cn.nukkit.entity.passive.EntityParrot.d.ts | 27 + .../cn.nukkit.entity.passive.EntityPig.d.ts | 29 + ...nukkit.entity.passive.EntityPolarBear.d.ts | 25 + ...ukkit.entity.passive.EntityPufferfish.d.ts | 25 + ...cn.nukkit.entity.passive.EntityRabbit.d.ts | 27 + ...cn.nukkit.entity.passive.EntitySalmon.d.ts | 25 + .../cn.nukkit.entity.passive.EntitySheep.d.ts | 41 + ...it.entity.passive.EntitySkeletonHorse.d.ts | 25 + .../cn.nukkit.entity.passive.EntitySquid.d.ts | 25 + ....nukkit.entity.passive.EntityTameable.d.ts | 37 + ...kit.entity.passive.EntityTropicalFish.d.ts | 25 + ...cn.nukkit.entity.passive.EntityTurtle.d.ts | 25 + ....nukkit.entity.passive.EntityVillager.d.ts | 29 + ...ukkit.entity.passive.EntityVillagerV1.d.ts | 43 + ....entity.passive.EntityWanderingTrader.d.ts | 25 + ...kkit.entity.passive.EntityWaterAnimal.d.ts | 15 + .../cn.nukkit.entity.passive.EntityWolf.d.ts | 27 + ...kkit.entity.passive.EntityZombieHorse.d.ts | 25 + ....nukkit.entity.projectile.EntityArrow.d.ts | 65 + ...cn.nukkit.entity.projectile.EntityEgg.d.ts | 31 + ...it.entity.projectile.EntityEnderPearl.d.ts | 33 + ...it.entity.projectile.EntityProjectile.d.ts | 43 + ...kkit.entity.projectile.EntitySnowball.d.ts | 31 + ...entity.projectile.EntityThrownTrident.d.ts | 65 + ...nukkit.entity.weather.EntityLightning.d.ts | 31 + ....entity.weather.EntityLightningStrike.d.ts | 15 + ...n.nukkit.entity.weather.EntityWeather.d.ts | 11 + .../nukkit/cn.nukkit.event.Cancellable.d.ts | 15 + .../typings/nukkit/cn.nukkit.event.Event.d.ts | 21 + .../nukkit/cn.nukkit.event.EventHandler.d.ts | 37 + .../nukkit/cn.nukkit.event.EventPriority.d.ts | 27 + .../nukkit/cn.nukkit.event.HandlerList.d.ts | 37 + .../nukkit/cn.nukkit.event.Listener.d.ts | 9 + ...cn.nukkit.event.block.BlockBreakEvent.d.ts | 55 + .../cn.nukkit.event.block.BlockBurnEvent.d.ts | 15 + .../cn.nukkit.event.block.BlockEvent.d.ts | 17 + .../cn.nukkit.event.block.BlockFadeEvent.d.ts | 17 + .../cn.nukkit.event.block.BlockFormEvent.d.ts | 15 + ...n.nukkit.event.block.BlockFromToEvent.d.ts | 17 + .../cn.nukkit.event.block.BlockGrowEvent.d.ts | 17 + ...ock.BlockIgniteEvent.BlockIgniteCause.d.ts | 29 + ...n.nukkit.event.block.BlockIgniteEvent.d.ts | 21 + ...it.event.block.BlockPistonChangeEvent.d.ts | 19 + ...cn.nukkit.event.block.BlockPlaceEvent.d.ts | 31 + ...nukkit.event.block.BlockRedstoneEvent.d.ts | 19 + ...n.nukkit.event.block.BlockSpreadEvent.d.ts | 17 + ...n.nukkit.event.block.BlockUpdateEvent.d.ts | 15 + ...cn.nukkit.event.block.DoorToggleEvent.d.ts | 19 + ...it.event.block.ItemFrameDropItemEvent.d.ts | 21 + ...n.nukkit.event.block.LeavesDecayEvent.d.ts | 15 + ...cn.nukkit.event.block.LiquidFlowEvent.d.ts | 21 + ...cn.nukkit.event.block.SignChangeEvent.d.ts | 23 + ...entity.CreatureSpawnEvent.SpawnReason.d.ts | 73 + ...ukkit.event.entity.CreatureSpawnEvent.d.ts | 23 + ...t.entity.CreeperPowerEvent.PowerCause.d.ts | 23 + ...nukkit.event.entity.CreeperPowerEvent.d.ts | 29 + ...t.event.entity.EntityArmorChangeEvent.d.ts | 23 + ...t.event.entity.EntityBlockChangeEvent.d.ts | 19 + ...vent.entity.EntityCombustByBlockEvent.d.ts | 17 + ...ent.entity.EntityCombustByEntityEvent.d.ts | 17 + ...ukkit.event.entity.EntityCombustEvent.d.ts | 21 + ...event.entity.EntityDamageByBlockEvent.d.ts | 15 + ...entity.EntityDamageByChildEntityEvent.d.ts | 15 + ...vent.entity.EntityDamageByEntityEvent.d.ts | 27 + ....entity.EntityDamageEvent.DamageCause.d.ts | 51 + ...tity.EntityDamageEvent.DamageModifier.d.ts | 31 + ...nukkit.event.entity.EntityDamageEvent.d.ts | 41 + ....nukkit.event.entity.EntityDeathEvent.d.ts | 21 + ...ukkit.event.entity.EntityDespawnEvent.d.ts | 29 + .../cn.nukkit.event.entity.EntityEvent.d.ts | 17 + ...ukkit.event.entity.EntityExplodeEvent.d.ts | 31 + ...vent.entity.EntityExplosionPrimeEvent.d.ts | 23 + ...kkit.event.entity.EntityInteractEvent.d.ts | 17 + ...ent.entity.EntityInventoryChangeEvent.d.ts | 23 + ...t.event.entity.EntityLevelChangeEvent.d.ts | 19 + ...nukkit.event.entity.EntityMotionEvent.d.ts | 19 + ...ity.EntityPortalEnterEvent.PortalType.d.ts | 21 + ...t.event.entity.EntityPortalEnterEvent.d.ts | 17 + ....event.entity.EntityRegainHealthEvent.d.ts | 29 + ...kkit.event.entity.EntityShootBowEvent.d.ts | 27 + ....nukkit.event.entity.EntitySpawnEvent.d.ts | 29 + ...kkit.event.entity.EntityTeleportEvent.d.ts | 23 + ....event.entity.EntityVehicleEnterEvent.d.ts | 17 + ...t.event.entity.EntityVehicleExitEvent.d.ts | 17 + ...kkit.event.entity.ExplosionPrimeEvent.d.ts | 25 + ....nukkit.event.entity.ItemDespawnEvent.d.ts | 17 + ...cn.nukkit.event.entity.ItemSpawnEvent.d.ts | 17 + ...ukkit.event.entity.ProjectileHitEvent.d.ts | 21 + ...it.event.entity.ProjectileLaunchEvent.d.ts | 17 + .../cn.nukkit.event.inventory.BrewEvent.d.ts | 25 + ...nukkit.event.inventory.CraftItemEvent.d.ts | 25 + ...kkit.event.inventory.FurnaceBurnEvent.d.ts | 27 + ...kit.event.inventory.FurnaceSmeltEvent.d.ts | 23 + ...t.event.inventory.InventoryClickEvent.d.ts | 23 + ...t.event.inventory.InventoryCloseEvent.d.ts | 17 + ...nukkit.event.inventory.InventoryEvent.d.ts | 19 + ...ventory.InventoryMoveItemEvent.Action.d.ts | 25 + ...vent.inventory.InventoryMoveItemEvent.d.ts | 25 + ...it.event.inventory.InventoryOpenEvent.d.ts | 17 + ...t.inventory.InventoryPickupArrowEvent.d.ts | 17 + ...nt.inventory.InventoryPickupItemEvent.d.ts | 17 + ...t.inventory.InventoryTransactionEvent.d.ts | 17 + ...nukkit.event.inventory.StartBrewEvent.d.ts | 23 + .../cn.nukkit.event.level.ChunkEvent.d.ts | 15 + .../cn.nukkit.event.level.ChunkLoadEvent.d.ts | 17 + ...nukkit.event.level.ChunkPopulateEvent.d.ts | 15 + ...n.nukkit.event.level.ChunkUnloadEvent.d.ts | 15 + .../cn.nukkit.event.level.LevelEvent.d.ts | 15 + .../cn.nukkit.event.level.LevelInitEvent.d.ts | 15 + .../cn.nukkit.event.level.LevelLoadEvent.d.ts | 15 + .../cn.nukkit.event.level.LevelSaveEvent.d.ts | 15 + ...n.nukkit.event.level.LevelUnloadEvent.d.ts | 15 + ...n.nukkit.event.level.SpawnChangeEvent.d.ts | 17 + ...nukkit.event.level.ThunderChangeEvent.d.ts | 20 + ...nukkit.event.level.WeatherChangeEvent.d.ts | 20 + .../cn.nukkit.event.level.WeatherEvent.d.ts | 15 + ....player.PlayerAchievementAwardedEvent.d.ts | 19 + ...kit.event.player.PlayerAnimationEvent.d.ts | 19 + ....PlayerAsyncPreLoginEvent.LoginResult.d.ts | 21 + ...event.player.PlayerAsyncPreLoginEvent.d.ts | 39 + ...kkit.event.player.PlayerBedEnterEvent.d.ts | 17 + ...kkit.event.player.PlayerBedLeaveEvent.d.ts | 17 + ...kit.event.player.PlayerBlockPickEvent.d.ts | 21 + ...t.event.player.PlayerBucketEmptyEvent.d.ts | 15 + ...it.event.player.PlayerBucketFillEvent.d.ts | 15 + ...it.event.player.PlayerChangeSkinEvent.d.ts | 17 + ...n.nukkit.event.player.PlayerChatEvent.d.ts | 34 + ....event.player.PlayerChunkRequestEvent.d.ts | 19 + ...t.player.PlayerCommandPreprocessEvent.d.ts | 17 + ...kkit.event.player.PlayerCreationEvent.d.ts | 31 + ....nukkit.event.player.PlayerDeathEvent.d.ts | 37 + ...kkit.event.player.PlayerDropItemEvent.d.ts | 17 + ...ukkit.event.player.PlayerEatFoodEvent.d.ts | 19 + .../cn.nukkit.event.player.PlayerEvent.d.ts | 17 + ...ent.player.PlayerFoodLevelChangeEvent.d.ts | 27 + ...event.player.PlayerFormRespondedEvent.d.ts | 35 + ...vent.player.PlayerGameModeChangeEvent.d.ts | 25 + ...ent.player.PlayerGlassBottleFillEvent.d.ts | 21 + ...vent.player.PlayerInteractEntityEvent.d.ts | 27 + ...ent.player.PlayerInteractEvent.Action.d.ts | 27 + ...kkit.event.player.PlayerInteractEvent.d.ts | 37 + ...t.event.player.PlayerInvalidMoveEvent.d.ts | 19 + ...t.event.player.PlayerItemConsumeEvent.d.ts | 17 + ...kkit.event.player.PlayerItemHeldEvent.d.ts | 21 + ...n.nukkit.event.player.PlayerJoinEvent.d.ts | 25 + ...t.event.player.PlayerKickEvent.Reason.d.ts | 39 + ...n.nukkit.event.player.PlayerKickEvent.d.ts | 39 + ....nukkit.event.player.PlayerLoginEvent.d.ts | 21 + ...vent.player.PlayerMapInfoRequestEvent.d.ts | 17 + ...ukkit.event.player.PlayerMessageEvent.d.ts | 19 + ...ent.player.PlayerMouseOverEntityEvent.d.ts | 17 + ...n.nukkit.event.player.PlayerMoveEvent.d.ts | 31 + ...kkit.event.player.PlayerPreLoginEvent.d.ts | 21 + ...n.nukkit.event.player.PlayerQuitEvent.d.ts | 49 + ...ukkit.event.player.PlayerRespawnEvent.d.ts | 23 + ...ayer.PlayerServerSettingsRequestEvent.d.ts | 21 + ...t.player.PlayerSettingsRespondedEvent.d.ts | 37 + ...yer.PlayerTeleportEvent.TeleportCause.d.ts | 29 + ...kkit.event.player.PlayerTeleportEvent.d.ts | 23 + ....event.player.PlayerToggleFlightEvent.d.ts | 17 + ...t.event.player.PlayerToggleGlideEvent.d.ts | 17 + ...t.event.player.PlayerToggleSneakEvent.d.ts | 17 + ....event.player.PlayerToggleSprintEvent.d.ts | 17 + ...it.event.player.PlayerToggleSwimEvent.d.ts | 17 + ...ukkit.event.plugin.PluginDisableEvent.d.ts | 13 + ...nukkit.event.plugin.PluginEnableEvent.d.ts | 13 + .../cn.nukkit.event.plugin.PluginEvent.d.ts | 17 + ....nukkit.event.potion.PotionApplyEvent.d.ts | 21 + ...ukkit.event.potion.PotionCollideEvent.d.ts | 17 + .../cn.nukkit.event.potion.PotionEvent.d.ts | 17 + ...it.event.redstone.RedstoneUpdateEvent.d.ts | 15 + ...nukkit.event.server.BatchPacketsEvent.d.ts | 21 + ...t.event.server.DataPacketReceiveEvent.d.ts | 19 + ...kkit.event.server.DataPacketSendEvent.d.ts | 19 + ...event.server.PlayerDataSerializeEvent.d.ts | 23 + ...kit.event.server.QueryRegenerateEvent.d.ts | 57 + ...event.server.RemoteServerCommandEvent.d.ts | 15 + ...ukkit.event.server.ServerCommandEvent.d.ts | 25 + .../cn.nukkit.event.server.ServerEvent.d.ts | 13 + ...event.vehicle.EntityEnterVehicleEvent.d.ts | 19 + ....event.vehicle.EntityExitVehicleEvent.d.ts | 19 + ...kkit.event.vehicle.VehicleCreateEvent.d.ts | 15 + ...kkit.event.vehicle.VehicleDamageEvent.d.ts | 21 + ...kit.event.vehicle.VehicleDestroyEvent.d.ts | 17 + .../cn.nukkit.event.vehicle.VehicleEvent.d.ts | 15 + ...nukkit.event.vehicle.VehicleMoveEvent.d.ts | 19 + ...kkit.event.vehicle.VehicleUpdateEvent.d.ts | 15 + ...it.event.weather.LightningStrikeEvent.d.ts | 20 + ...kkit.event.weather.ThunderChangeEvent.d.ts | 20 + ...kkit.event.weather.WeatherChangeEvent.d.ts | 20 + .../cn.nukkit.event.weather.WeatherEvent.d.ts | 15 + .../cn.nukkit.form.element.Element.d.ts | 13 + .../cn.nukkit.form.element.ElementButton.d.ts | 23 + ...t.form.element.ElementButtonImageData.d.ts | 25 + ...n.nukkit.form.element.ElementDropdown.d.ts | 31 + .../cn.nukkit.form.element.ElementInput.d.ts | 29 + .../cn.nukkit.form.element.ElementLabel.d.ts | 17 + .../cn.nukkit.form.element.ElementSlider.d.ts | 37 + ...nukkit.form.element.ElementStepSlider.d.ts | 31 + .../cn.nukkit.form.element.ElementToggle.d.ts | 23 + .../cn.nukkit.form.response.FormResponse.d.ts | 13 + ...kkit.form.response.FormResponseCustom.d.ts | 29 + ...nukkit.form.response.FormResponseData.d.ts | 17 + ...ukkit.form.response.FormResponseModal.d.ts | 17 + ...kkit.form.response.FormResponseSimple.d.ts | 17 + .../cn.nukkit.form.window.FormWindow.d.ts | 23 + ...n.nukkit.form.window.FormWindowCustom.d.ts | 43 + ...cn.nukkit.form.window.FormWindowModal.d.ts | 33 + ...n.nukkit.form.window.FormWindowSimple.d.ts | 31 + .../cn.nukkit.inventory.AnvilInventory.d.ts | 23 + .../cn.nukkit.inventory.BaseInventory.d.ts | 109 ++ .../cn.nukkit.inventory.BeaconInventory.d.ts | 13 + .../cn.nukkit.inventory.BigCraftingGrid.d.ts | 9 + .../cn.nukkit.inventory.BrewingInventory.d.ts | 23 + .../cn.nukkit.inventory.BrewingRecipe.d.ts | 15 + .../cn.nukkit.inventory.ChestInventory.d.ts | 25 + ...n.nukkit.inventory.ContainerInventory.d.ts | 23 + .../cn.nukkit.inventory.ContainerRecipe.d.ts | 15 + .../cn.nukkit.inventory.CraftingGrid.d.ts | 9 + ...ukkit.inventory.CraftingManager.Entry.d.ts | 13 + .../cn.nukkit.inventory.CraftingManager.d.ts | 53 + .../cn.nukkit.inventory.CraftingRecipe.d.ts | 29 + .../cn.nukkit.inventory.CustomInventory.d.ts | 17 + ...nukkit.inventory.DoubleChestInventory.d.ts | 35 + .../cn.nukkit.inventory.EnchantInventory.d.ts | 15 + .../cn.nukkit.inventory.FakeBlockMenu.d.ts | 13 + ...nukkit.inventory.FakeBlockUIComponent.d.ts | 17 + .../nukkit/cn.nukkit.inventory.Fuel.d.ts | 13 + .../cn.nukkit.inventory.FurnaceInventory.d.ts | 27 + .../cn.nukkit.inventory.FurnaceRecipe.d.ts | 21 + .../cn.nukkit.inventory.HopperInventory.d.ts | 13 + .../nukkit/cn.nukkit.inventory.Inventory.d.ts | 89 + .../cn.nukkit.inventory.InventoryHolder.d.ts | 11 + .../cn.nukkit.inventory.InventoryType.d.ts | 53 + .../nukkit/cn.nukkit.inventory.MixRecipe.d.ts | 17 + ...ukkit.inventory.PlayerCursorInventory.d.ts | 14 + ...t.inventory.PlayerEnderChestInventory.d.ts | 17 + .../cn.nukkit.inventory.PlayerInventory.d.ts | 109 ++ ...kkit.inventory.PlayerOffhandInventory.d.ts | 21 + ...cn.nukkit.inventory.PlayerUIComponent.d.ts | 41 + ...cn.nukkit.inventory.PlayerUIInventory.d.ts | 27 + .../nukkit/cn.nukkit.inventory.Recipe.d.ts | 15 + .../cn.nukkit.inventory.RecipeType.d.ts | 29 + ...n.nukkit.inventory.ShapedRecipe.Entry.d.ts | 17 + .../cn.nukkit.inventory.ShapedRecipe.d.ts | 56 + .../cn.nukkit.inventory.ShapelessRecipe.d.ts | 39 + ....nukkit.inventory.ShulkerBoxInventory.d.ts | 21 + ...ntory.transaction.CraftingTransaction.d.ts | 43 + ...tory.transaction.InventoryTransaction.d.ts | 64 + ...ction.action.CraftingTakeResultAction.d.ts | 25 + ...action.CraftingTransferMaterialAction.d.ts | 25 + ...action.action.CreativeInventoryAction.d.ts | 40 + ...ory.transaction.action.DropItemAction.d.ts | 32 + ...ry.transaction.action.InventoryAction.d.ts | 64 + ...y.transaction.action.SlotChangeAction.d.ts | 49 + ...tory.transaction.data.ReleaseItemData.d.ts | 23 + ...tory.transaction.data.TransactionData.d.ts | 13 + ...nventory.transaction.data.UseItemData.d.ts | 31 + ....transaction.data.UseItemOnEntityData.d.ts | 27 + .../typings/nukkit/cn.nukkit.item.Item.d.ts | 216 +++ .../nukkit/cn.nukkit.item.ItemApple.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemAppleGold.d.ts | 17 + ...cn.nukkit.item.ItemAppleGoldEnchanted.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemArmor.d.ts | 39 + .../nukkit/cn.nukkit.item.ItemArrow.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemAxeDiamond.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemAxeGold.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemAxeIron.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemAxeStone.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemAxeWood.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemBanner.d.ts | 35 + .../nukkit/cn.nukkit.item.ItemBed.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemBeefRaw.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemBeetroot.d.ts | 15 + .../cn.nukkit.item.ItemBeetrootSoup.d.ts | 15 + .../cn.nukkit.item.ItemBlazePowder.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemBlazeRod.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemBlock.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemBoat.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemBone.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemBook.d.ts | 17 + .../cn.nukkit.item.ItemBookEnchanted.d.ts | 17 + .../cn.nukkit.item.ItemBookWritten.d.ts | 25 + .../nukkit/cn.nukkit.item.ItemBootsChain.d.ts | 23 + .../cn.nukkit.item.ItemBootsDiamond.d.ts | 25 + .../nukkit/cn.nukkit.item.ItemBootsGold.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemBootsIron.d.ts | 23 + .../cn.nukkit.item.ItemBootsLeather.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemBow.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemBowl.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemBread.d.ts | 15 + .../cn.nukkit.item.ItemBrewingStand.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemBrick.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemBucket.d.ts | 29 + .../nukkit/cn.nukkit.item.ItemCake.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemCarrot.d.ts | 15 + .../cn.nukkit.item.ItemCarrotGolden.d.ts | 15 + .../cn.nukkit.item.ItemCarrotOnAStick.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemCauldron.d.ts | 15 + .../cn.nukkit.item.ItemChestplateChain.d.ts | 23 + .../cn.nukkit.item.ItemChestplateDiamond.d.ts | 25 + .../cn.nukkit.item.ItemChestplateGold.d.ts | 23 + .../cn.nukkit.item.ItemChestplateIron.d.ts | 23 + .../cn.nukkit.item.ItemChestplateLeather.d.ts | 23 + .../cn.nukkit.item.ItemChickenCooked.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemChickenRaw.d.ts | 15 + .../cn.nukkit.item.ItemChorusFruit.d.ts | 19 + .../nukkit/cn.nukkit.item.ItemClay.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemClock.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemClownfish.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemCoal.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemColorArmor.d.ts | 42 + .../nukkit/cn.nukkit.item.ItemCompass.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemCookie.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemDiamond.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemDoorAcacia.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemDoorBirch.d.ts | 15 + .../cn.nukkit.item.ItemDoorDarkOak.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemDoorIron.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemDoorJungle.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemDoorSpruce.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemDoorWood.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemDriedKelp.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemDurable.d.ts | 9 + .../nukkit/cn.nukkit.item.ItemDye.d.ts | 57 + .../nukkit/cn.nukkit.item.ItemEdible.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemEgg.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemElytra.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemEmerald.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemEndCrystal.d.ts | 19 + .../nukkit/cn.nukkit.item.ItemEnderEye.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemEnderPearl.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemExpBottle.d.ts | 19 + .../nukkit/cn.nukkit.item.ItemFeather.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemFireCharge.d.ts | 19 + ...ework.FireworkExplosion.ExplosionType.d.ts | 27 + ...t.item.ItemFirework.FireworkExplosion.d.ts | 33 + .../nukkit/cn.nukkit.item.ItemFirework.d.ts | 25 + .../nukkit/cn.nukkit.item.ItemFish.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemFishCooked.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemFishingRod.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemFlint.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemFlintSteel.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemFlowerPot.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemGhastTear.d.ts | 15 + .../cn.nukkit.item.ItemGlassBottle.d.ts | 19 + .../cn.nukkit.item.ItemGlowstoneDust.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemGunpowder.d.ts | 15 + .../cn.nukkit.item.ItemHelmetChain.d.ts | 23 + .../cn.nukkit.item.ItemHelmetDiamond.d.ts | 25 + .../nukkit/cn.nukkit.item.ItemHelmetGold.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemHelmetIron.d.ts | 23 + .../cn.nukkit.item.ItemHelmetLeather.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemHoeDiamond.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemHoeGold.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemHoeIron.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemHoeStone.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemHoeWood.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemHopper.d.ts | 15 + .../cn.nukkit.item.ItemHorseArmorDiamond.d.ts | 17 + .../cn.nukkit.item.ItemHorseArmorGold.d.ts | 17 + .../cn.nukkit.item.ItemHorseArmorIron.d.ts | 17 + .../cn.nukkit.item.ItemHorseArmorLeather.d.ts | 17 + .../typings/nukkit/cn.nukkit.item.ItemID.d.ts | 479 +++++ .../nukkit/cn.nukkit.item.ItemIngotGold.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemIngotIron.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemItemFrame.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemLeather.d.ts | 15 + .../cn.nukkit.item.ItemLeggingsChain.d.ts | 23 + .../cn.nukkit.item.ItemLeggingsDiamond.d.ts | 25 + .../cn.nukkit.item.ItemLeggingsGold.d.ts | 23 + .../cn.nukkit.item.ItemLeggingsIron.d.ts | 23 + .../cn.nukkit.item.ItemLeggingsLeather.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemMagmaCream.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemMap.d.ts | 31 + .../nukkit/cn.nukkit.item.ItemMelon.d.ts | 15 + .../cn.nukkit.item.ItemMelonGlistering.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemMinecart.d.ts | 21 + .../cn.nukkit.item.ItemMinecartChest.d.ts | 21 + .../cn.nukkit.item.ItemMinecartHopper.d.ts | 21 + .../cn.nukkit.item.ItemMinecartTNT.d.ts | 21 + .../cn.nukkit.item.ItemMushroomStew.d.ts | 17 + .../cn.nukkit.item.ItemMuttonCooked.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemMuttonRaw.d.ts | 15 + .../cn.nukkit.item.ItemNetherBrick.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemNetherStar.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemNetherWart.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemNuggetGold.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemPainting.d.ts | 19 + .../nukkit/cn.nukkit.item.ItemPaper.d.ts | 15 + .../cn.nukkit.item.ItemPickaxeDiamond.d.ts | 23 + .../cn.nukkit.item.ItemPickaxeGold.d.ts | 23 + .../cn.nukkit.item.ItemPickaxeIron.d.ts | 23 + .../cn.nukkit.item.ItemPickaxeStone.d.ts | 23 + .../cn.nukkit.item.ItemPickaxeWood.d.ts | 23 + .../cn.nukkit.item.ItemPorkchopCooked.d.ts | 15 + .../cn.nukkit.item.ItemPorkchopRaw.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemPotato.d.ts | 17 + .../cn.nukkit.item.ItemPotatoBaked.d.ts | 15 + .../cn.nukkit.item.ItemPotatoPoisonous.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemPotion.d.ts | 95 + .../cn.nukkit.item.ItemPotionLingering.d.ts | 17 + .../cn.nukkit.item.ItemPotionSplash.d.ts | 23 + ...cn.nukkit.item.ItemPrismarineCrystals.d.ts | 15 + .../cn.nukkit.item.ItemPrismarineShard.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemPufferfish.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemPumpkinPie.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemQuartz.d.ts | 15 + .../cn.nukkit.item.ItemRabbitCooked.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemRabbitFoot.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemRabbitRaw.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemRabbitStew.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemRecord.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemRecord11.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemRecord13.d.ts | 17 + .../cn.nukkit.item.ItemRecordBlocks.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemRecordCat.d.ts | 17 + .../cn.nukkit.item.ItemRecordChirp.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemRecordFar.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemRecordMall.d.ts | 17 + .../cn.nukkit.item.ItemRecordMellohi.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemRecordStal.d.ts | 17 + .../cn.nukkit.item.ItemRecordStrad.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemRecordWait.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemRecordWard.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemRedstone.d.ts | 15 + ...cn.nukkit.item.ItemRedstoneComparator.d.ts | 15 + .../cn.nukkit.item.ItemRedstoneRepeater.d.ts | 15 + .../cn.nukkit.item.ItemRottenFlesh.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemSaddle.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemSalmon.d.ts | 15 + .../cn.nukkit.item.ItemSalmonCooked.d.ts | 15 + .../cn.nukkit.item.ItemSeedsBeetroot.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemSeedsMelon.d.ts | 15 + .../cn.nukkit.item.ItemSeedsPumpkin.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemSeedsWheat.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemShears.d.ts | 19 + .../nukkit/cn.nukkit.item.ItemShield.d.ts | 17 + .../cn.nukkit.item.ItemShovelDiamond.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemShovelGold.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemShovelIron.d.ts | 23 + .../cn.nukkit.item.ItemShovelStone.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemShovelWood.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemSign.d.ts | 17 + .../nukkit/cn.nukkit.item.ItemSkull.d.ts | 29 + .../nukkit/cn.nukkit.item.ItemSlimeball.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemSnowball.d.ts | 21 + .../nukkit/cn.nukkit.item.ItemSpawnEgg.d.ts | 19 + .../nukkit/cn.nukkit.item.ItemSpiderEye.d.ts | 15 + ...cn.nukkit.item.ItemSpiderEyeFermented.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemSteak.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemStick.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemString.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemSugar.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemSugarcane.d.ts | 15 + .../cn.nukkit.item.ItemSweetBerries.d.ts | 15 + .../cn.nukkit.item.ItemSwordDiamond.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemSwordGold.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemSwordIron.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemSwordStone.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemSwordWood.d.ts | 23 + .../nukkit/cn.nukkit.item.ItemTool.d.ts | 83 + .../nukkit/cn.nukkit.item.ItemTotem.d.ts | 15 + .../nukkit/cn.nukkit.item.ItemTrident.d.ts | 25 + .../cn.nukkit.item.ItemTurtleShell.d.ts | 25 + .../nukkit/cn.nukkit.item.ItemWheat.d.ts | 15 + .../nukkit/cn.nukkit.item.ProjectileItem.d.ts | 19 + ...n.nukkit.item.enchantment.Enchantment.d.ts | 139 ++ ...m.enchantment.EnchantmentBindingCurse.d.ts | 19 + ...tem.enchantment.EnchantmentDurability.d.ts | 25 + ...tem.enchantment.EnchantmentEfficiency.d.ts | 21 + ...kit.item.enchantment.EnchantmentEntry.d.ts | 19 + ...tem.enchantment.EnchantmentFireAspect.d.ts | 21 + ...em.enchantment.EnchantmentFrostWalker.d.ts | 19 + ...item.enchantment.EnchantmentKnockback.d.ts | 19 + ...kkit.item.enchantment.EnchantmentList.d.ts | 19 + ...kkit.item.enchantment.EnchantmentLure.d.ts | 19 + ...t.item.enchantment.EnchantmentMending.d.ts | 21 + ...item.enchantment.EnchantmentSilkTouch.d.ts | 23 + ...it.item.enchantment.EnchantmentThorns.d.ts | 21 + ...kkit.item.enchantment.EnchantmentType.d.ts | 43 + ...enchantment.EnchantmentVanishingCurse.d.ts | 19 + ...em.enchantment.EnchantmentWaterBreath.d.ts | 19 + ...em.enchantment.EnchantmentWaterWalker.d.ts | 19 + ...em.enchantment.EnchantmentWaterWorker.d.ts | 19 + ...t.item.enchantment.bow.EnchantmentBow.d.ts | 15 + ...m.enchantment.bow.EnchantmentBowFlame.d.ts | 21 + ...nchantment.bow.EnchantmentBowInfinity.d.ts | 21 + ...chantment.bow.EnchantmentBowKnockback.d.ts | 21 + ...m.enchantment.bow.EnchantmentBowPower.d.ts | 21 + ...antment.damage.EnchantmentDamage.TYPE.d.ts | 25 + ....enchantment.damage.EnchantmentDamage.d.ts | 27 + ...chantment.damage.EnchantmentDamageAll.d.ts | 23 + ...nt.damage.EnchantmentDamageArthropods.d.ts | 23 + ...antment.damage.EnchantmentDamageSmite.d.ts | 21 + ...item.enchantment.loot.EnchantmentLoot.d.ts | 23 + ...chantment.loot.EnchantmentLootDigging.d.ts | 15 + ...chantment.loot.EnchantmentLootFishing.d.ts | 15 + ...nchantment.loot.EnchantmentLootWeapon.d.ts | 15 + ...protection.EnchantmentProtection.TYPE.d.ts | 29 + ...ment.protection.EnchantmentProtection.d.ts | 27 + ...t.protection.EnchantmentProtectionAll.d.ts | 23 + ...ection.EnchantmentProtectionExplosion.d.ts | 23 + ....protection.EnchantmentProtectionFall.d.ts | 23 + ....protection.EnchantmentProtectionFire.d.ts | 23 + ...ction.EnchantmentProtectionProjectile.d.ts | 23 + ...nchantment.trident.EnchantmentTrident.d.ts | 15 + ....trident.EnchantmentTridentChanneling.d.ts | 21 + ...nt.trident.EnchantmentTridentImpaling.d.ts | 21 + ...ent.trident.EnchantmentTridentLoyalty.d.ts | 21 + ...ent.trident.EnchantmentTridentRiptide.d.ts | 21 + .../nukkit/cn.nukkit.item.food.Food.d.ts | 121 ++ .../cn.nukkit.item.food.FoodChorusFruit.d.ts | 15 + .../cn.nukkit.item.food.FoodEffective.d.ts | 21 + .../cn.nukkit.item.food.FoodInBowl.d.ts | 15 + .../nukkit/cn.nukkit.item.food.FoodMilk.d.ts | 15 + .../cn.nukkit.item.food.FoodNormal.d.ts | 13 + ....item.randomitem.ConstantItemSelector.d.ts | 25 + .../cn.nukkit.item.randomitem.Fishing.d.ts | 65 + .../cn.nukkit.item.randomitem.RandomItem.d.ts | 19 + .../cn.nukkit.item.randomitem.Selector.d.ts | 21 + .../nukkit/cn.nukkit.lang.BaseLang.d.ts | 55 + .../nukkit/cn.nukkit.lang.TextContainer.d.ts | 21 + .../cn.nukkit.lang.TranslationContainer.d.ts | 27 + .../nukkit/cn.nukkit.level.ChunkLoader.d.ts | 31 + .../nukkit/cn.nukkit.level.ChunkManager.d.ts | 31 + .../nukkit/cn.nukkit.level.ChunkPosition.d.ts | 23 + .../nukkit/cn.nukkit.level.EnumLevel.d.ts | 25 + .../nukkit/cn.nukkit.level.Explosion.d.ts | 17 + .../nukkit/cn.nukkit.level.GameRule.d.ts | 61 + .../cn.nukkit.level.GameRules.Type.d.ts | 23 + .../cn.nukkit.level.GameRules.Value.d.ts | 17 + .../nukkit/cn.nukkit.level.GameRules.d.ts | 43 + .../cn.nukkit.level.GlobalBlockPalette.d.ts | 17 + .../typings/nukkit/cn.nukkit.level.Level.d.ts | 540 ++++++ .../nukkit/cn.nukkit.level.Location.d.ts | 79 + .../cn.nukkit.level.MovingObjectPosition.d.ts | 29 + .../cn.nukkit.level.ParticleEffect.d.ts | 247 +++ .../nukkit/cn.nukkit.level.Position.d.ts | 81 + .../typings/nukkit/cn.nukkit.level.Sound.d.ts | 1197 +++++++++++++ .../nukkit/cn.nukkit.level.biome.Biome.d.ts | 67 + .../cn.nukkit.level.biome.BiomeSelector.d.ts | 15 + .../cn.nukkit.level.biome.EnumBiome.d.ts | 145 ++ .../cn.nukkit.level.biome.impl.HellBiome.d.ts | 17 + ...kit.level.biome.impl.beach.BeachBiome.d.ts | 19 + ...level.biome.impl.beach.ColdBeachBiome.d.ts | 23 + ...t.level.biome.impl.desert.DesertBiome.d.ts | 19 + ...el.biome.impl.desert.DesertHillsBiome.d.ts | 19 + ....level.biome.impl.desert.DesertMBiome.d.ts | 19 + ...e.impl.extremehills.ExtremeHillsBiome.d.ts | 23 + ...pl.extremehills.ExtremeHillsEdgeBiome.d.ts | 19 + ....impl.extremehills.ExtremeHillsMBiome.d.ts | 31 + ...pl.extremehills.ExtremeHillsPlusBiome.d.ts | 21 + ...l.extremehills.ExtremeHillsPlusMBiome.d.ts | 21 + ...ome.impl.extremehills.StoneBeachBiome.d.ts | 27 + ...l.biome.impl.forest.FlowerForestBiome.d.ts | 21 + ...t.level.biome.impl.forest.ForestBiome.d.ts | 29 + ...el.biome.impl.forest.ForestHillsBiome.d.ts | 21 + ...l.biome.impl.iceplains.IcePlainsBiome.d.ts | 19 + ...e.impl.iceplains.IcePlainsSpikesBiome.d.ts | 23 + ...t.level.biome.impl.jungle.JungleBiome.d.ts | 19 + ...vel.biome.impl.jungle.JungleEdgeBiome.d.ts | 19 + ...el.biome.impl.jungle.JungleEdgeMBiome.d.ts | 19 + ...el.biome.impl.jungle.JungleHillsBiome.d.ts | 19 + ....level.biome.impl.jungle.JungleMBiome.d.ts | 19 + ...ukkit.level.biome.impl.mesa.MesaBiome.d.ts | 41 + ....level.biome.impl.mesa.MesaBryceBiome.d.ts | 23 + ...evel.biome.impl.mesa.MesaPlateauBiome.d.ts | 19 + ...vel.biome.impl.mesa.MesaPlateauFBiome.d.ts | 21 + ...el.biome.impl.mesa.MesaPlateauFMBiome.d.ts | 19 + ...vel.biome.impl.mesa.MesaPlateauMBiome.d.ts | 23 + ...ome.impl.mushroom.MushroomIslandBiome.d.ts | 21 + ...mpl.mushroom.MushroomIslandShoreBiome.d.ts | 19 + ...level.biome.impl.ocean.DeepOceanBiome.d.ts | 19 + ...vel.biome.impl.ocean.FrozenOceanBiome.d.ts | 21 + ...kit.level.biome.impl.ocean.OceanBiome.d.ts | 21 + ...t.level.biome.impl.plains.PlainsBiome.d.ts | 19 + ...iome.impl.plains.SunflowerPlainsBiome.d.ts | 19 + ...vel.biome.impl.river.FrozenRiverBiome.d.ts | 21 + ...kit.level.biome.impl.river.RiverBiome.d.ts | 19 + ...e.impl.roofedforest.RoofedForestBiome.d.ts | 19 + ....impl.roofedforest.RoofedForestMBiome.d.ts | 19 + ...level.biome.impl.savanna.SavannaBiome.d.ts | 19 + ...evel.biome.impl.savanna.SavannaMBiome.d.ts | 21 + ...iome.impl.savanna.SavannaPlateauBiome.d.ts | 19 + ...ome.impl.savanna.SavannaPlateauMBiome.d.ts | 21 + ...kit.level.biome.impl.swamp.SwampBiome.d.ts | 19 + ...evel.biome.impl.swamp.SwamplandMBiome.d.ts | 19 + ...level.biome.impl.taiga.ColdTaigaBiome.d.ts | 23 + ....biome.impl.taiga.ColdTaigaHillsBiome.d.ts | 19 + ...evel.biome.impl.taiga.ColdTaigaMBiome.d.ts | 21 + ...biome.impl.taiga.MegaSpruceTaigaBiome.d.ts | 19 + ...level.biome.impl.taiga.MegaTaigaBiome.d.ts | 19 + ....biome.impl.taiga.MegaTaigaHillsBiome.d.ts | 19 + ...kit.level.biome.impl.taiga.TaigaBiome.d.ts | 19 + ...evel.biome.impl.taiga.TaigaHillsBiome.d.ts | 19 + ...it.level.biome.impl.taiga.TaigaMBiome.d.ts | 19 + ....nukkit.level.biome.type.CoveredBiome.d.ts | 70 + ...n.nukkit.level.biome.type.GrassyBiome.d.ts | 19 + ...cn.nukkit.level.biome.type.SandyBiome.d.ts | 23 + ...cn.nukkit.level.biome.type.SnowyBiome.d.ts | 17 + ...n.nukkit.level.biome.type.WateryBiome.d.ts | 23 + .../cn.nukkit.level.format.Chunk.Entry.d.ts | 19 + .../nukkit/cn.nukkit.level.format.Chunk.d.ts | 21 + .../cn.nukkit.level.format.ChunkSection.d.ts | 53 + .../cn.nukkit.level.format.FullChunk.d.ts | 147 ++ .../cn.nukkit.level.format.LevelProvider.d.ts | 111 ++ ...kit.level.format.LevelProviderManager.d.ts | 21 + .../cn.nukkit.level.format.anvil.Anvil.d.ts | 45 + .../cn.nukkit.level.format.anvil.Chunk.d.ts | 65 + ...ukkit.level.format.anvil.ChunkSection.d.ts | 71 + ...ukkit.level.format.anvil.RegionLoader.d.ts | 45 + ...vel.format.anvil.palette.BiomePalette.d.ts | 33 + ...evel.format.anvil.palette.BitArray256.d.ts | 37 + ...vel.format.anvil.palette.BitArray4096.d.ts | 35 + ...format.anvil.palette.BlockDataPalette.d.ts | 39 + ...evel.format.anvil.palette.BytePalette.d.ts | 25 + ...evel.format.anvil.palette.CharPalette.d.ts | 25 + ...level.format.anvil.palette.IntPalette.d.ts | 29 + ....level.format.anvil.util.BlockStorage.d.ts | 37 + ...t.level.format.anvil.util.NibbleArray.d.ts | 33 + ...nukkit.level.format.generic.BaseChunk.d.ts | 69 + ...it.level.format.generic.BaseFullChunk.d.ts | 171 ++ ...evel.format.generic.BaseLevelProvider.d.ts | 129 ++ ...level.format.generic.BaseRegionLoader.d.ts | 71 + ...t.level.format.generic.ChunkConverter.d.ts | 21 + ...evel.format.generic.EmptyChunkSection.d.ts | 63 + .../cn.nukkit.level.format.leveldb.Chunk.d.ts | 85 + ...n.nukkit.level.format.leveldb.LevelDB.d.ts | 143 ++ ...kkit.level.format.leveldb.key.BaseKey.d.ts | 33 + ....level.format.leveldb.key.EntitiesKey.d.ts | 19 + ...level.format.leveldb.key.ExtraDataKey.d.ts | 19 + ...kit.level.format.leveldb.key.FlagsKey.d.ts | 19 + ...t.level.format.leveldb.key.TerrainKey.d.ts | 19 + ...kit.level.format.leveldb.key.TicksKey.d.ts | 19 + ...kit.level.format.leveldb.key.TilesKey.d.ts | 19 + ...t.level.format.leveldb.key.VersionKey.d.ts | 19 + ...cn.nukkit.level.format.mcregion.Chunk.d.ts | 81 + ...nukkit.level.format.mcregion.McRegion.d.ts | 41 + ...it.level.format.mcregion.RegionLoader.d.ts | 45 + .../cn.nukkit.level.generator.Flat.d.ts | 33 + .../cn.nukkit.level.generator.Generator.d.ts | 51 + .../cn.nukkit.level.generator.Nether.d.ts | 35 + .../cn.nukkit.level.generator.Normal.d.ts | 39 + ...ukkit.level.generator.PopChunkManager.d.ts | 19 + ...it.level.generator.SimpleChunkManager.d.ts | 35 + ...it.level.generator.SingleChunkManager.d.ts | 19 + ...level.generator.noise.nukkit.d.NoiseD.d.ts | 61 + ...evel.generator.noise.nukkit.d.PerlinD.d.ts | 25 + ...vel.generator.noise.nukkit.d.SimplexD.d.ts | 59 + ...level.generator.noise.nukkit.f.NoiseF.d.ts | 61 + ...evel.generator.noise.nukkit.f.PerlinF.d.ts | 25 + ...vel.generator.noise.nukkit.f.SimplexF.d.ts | 59 + ...ise.vanilla.d.NoiseGeneratorImprovedD.d.ts | 35 + ...oise.vanilla.d.NoiseGeneratorOctavesD.d.ts | 23 + ...noise.vanilla.d.NoiseGeneratorPerlinD.d.ts | 25 + ...oise.vanilla.d.NoiseGeneratorSimplexD.d.ts | 33 + ...ise.vanilla.f.NoiseGeneratorImprovedF.d.ts | 35 + ...oise.vanilla.f.NoiseGeneratorOctavesF.d.ts | 23 + ...noise.vanilla.f.NoiseGeneratorPerlinF.d.ts | 25 + ...oise.vanilla.f.NoiseGeneratorSimplexF.d.ts | 33 + ...level.generator.object.BasicGenerator.d.ts | 25 + ...evel.generator.object.ObjectTallGrass.d.ts | 17 + ...generator.object.mushroom.BigMushroom.d.ts | 51 + ...it.level.generator.object.ore.OreType.d.ts | 33 + ...erator.object.tree.HugeTreesGenerator.d.ts | 33 + ...l.generator.object.tree.NewJungleTree.d.ts | 19 + ...rator.object.tree.ObjectBigSpruceTree.d.ts | 21 + ...generator.object.tree.ObjectBirchTree.d.ts | 29 + ...nerator.object.tree.ObjectDarkOakTree.d.ts | 19 + ...rator.object.tree.ObjectJungleBigTree.d.ts | 19 + ...enerator.object.tree.ObjectJungleTree.d.ts | 27 + ...l.generator.object.tree.ObjectOakTree.d.ts | 27 + ...nerator.object.tree.ObjectSavannaTree.d.ts | 19 + ...enerator.object.tree.ObjectSpruceTree.d.ts | 31 + ...generator.object.tree.ObjectSwampTree.d.ts | 19 + ...rator.object.tree.ObjectTallBirchTree.d.ts | 19 + ...evel.generator.object.tree.ObjectTree.d.ts | 37 + ...l.generator.object.tree.TreeGenerator.d.ts | 25 + ...enerator.populator.helper.EnsureBelow.d.ts | 17 + ...enerator.populator.helper.EnsureCover.d.ts | 17 + ...tor.populator.helper.EnsureGrassBelow.d.ts | 17 + ...tor.populator.helper.PopulatorHelpers.d.ts | 19 + ...ator.populator.impl.MushroomPopulator.d.ts | 23 + ...rator.populator.impl.PopulatorBedrock.d.ts | 19 + ...erator.populator.impl.PopulatorCactus.d.ts | 21 + ...nerator.populator.impl.PopulatorCaves.d.ts | 51 + ...ator.populator.impl.PopulatorDeadBush.d.ts | 21 + ...r.populator.impl.PopulatorDoublePlant.d.ts | 23 + ...erator.populator.impl.PopulatorFlower.d.ts | 27 + ...tor.populator.impl.PopulatorGlowStone.d.ts | 19 + ...nerator.populator.impl.PopulatorGrass.d.ts | 21 + ...r.populator.impl.PopulatorGroundCover.d.ts | 21 + ...or.populator.impl.PopulatorGroundFire.d.ts | 25 + ...enerator.populator.impl.PopulatorLava.d.ts | 23 + ...rator.populator.impl.PopulatorLilyPad.d.ts | 21 + ...nerator.populator.impl.PopulatorMelon.d.ts | 21 + ...tor.populator.impl.PopulatorMineshaft.d.ts | 19 + ...generator.populator.impl.PopulatorOre.d.ts | 23 + ...rator.populator.impl.PopulatorRavines.d.ts | 27 + ...populator.impl.PopulatorSmallMushroom.d.ts | 21 + ...tor.populator.impl.PopulatorSugarcane.d.ts | 21 + ...populator.impl.PopulatorTallSugarcane.d.ts | 19 + ...enerator.populator.impl.PopulatorTree.d.ts | 21 + ...ator.populator.impl.WaterIcePopulator.d.ts | 19 + ...ulator.impl.tree.DarkOakTreePopulator.d.ts | 27 + ...ator.impl.tree.JungleBigTreePopulator.d.ts | 27 + ...ulator.impl.tree.JungleFloorPopulator.d.ts | 27 + ...pulator.impl.tree.JungleTreePopulator.d.ts | 27 + ...ulator.impl.tree.SavannaTreePopulator.d.ts | 27 + ...ator.impl.tree.SpruceBigTreePopulator.d.ts | 25 + ...tor.impl.tree.SpruceMegaTreePopulator.d.ts | 25 + ...opulator.impl.tree.SwampTreePopulator.d.ts | 27 + ...el.generator.populator.type.Populator.d.ts | 21 + ...nerator.populator.type.PopulatorCount.d.ts | 25 + ....populator.type.PopulatorSurfaceBlock.d.ts | 27 + ...t.level.generator.task.GenerationTask.d.ts | 21 + ...el.generator.task.LightPopulationTask.d.ts | 23 + ...t.level.generator.task.PopulationTask.d.ts | 21 + ....level.particle.AngryVillagerParticle.d.ts | 13 + ...evel.particle.BlockForceFieldParticle.d.ts | 15 + ...ukkit.level.particle.BoneMealParticle.d.ts | 15 + ....nukkit.level.particle.BubbleParticle.d.ts | 13 + ...ukkit.level.particle.CriticalParticle.d.ts | 15 + ...t.level.particle.DestroyBlockParticle.d.ts | 17 + ...cn.nukkit.level.particle.DustParticle.d.ts | 17 + ...nukkit.level.particle.EnchantParticle.d.ts | 13 + ...vel.particle.EnchantmentTableParticle.d.ts | 13 + ...it.level.particle.EntityFlameParticle.d.ts | 13 + ...nukkit.level.particle.ExplodeParticle.d.ts | 13 + ...n.nukkit.level.particle.FlameParticle.d.ts | 13 + ...t.level.particle.FloatingTextParticle.d.ts | 47 + ...nukkit.level.particle.GenericParticle.d.ts | 21 + ....level.particle.HappyVillagerParticle.d.ts | 13 + ...n.nukkit.level.particle.HeartParticle.d.ts | 15 + ...it.level.particle.HugeExplodeParticle.d.ts | 13 + ...evel.particle.HugeExplodeSeedParticle.d.ts | 13 + .../cn.nukkit.level.particle.InkParticle.d.ts | 15 + ...level.particle.InstantEnchantParticle.d.ts | 13 + ...t.level.particle.InstantSpellParticle.d.ts | 21 + ...kkit.level.particle.ItemBreakParticle.d.ts | 13 + ...ukkit.level.particle.LavaDripParticle.d.ts | 13 + ...cn.nukkit.level.particle.LavaParticle.d.ts | 13 + ...ukkit.level.particle.MobSpawnParticle.d.ts | 19 + .../cn.nukkit.level.particle.Particle.d.ts | 147 ++ ....nukkit.level.particle.PortalParticle.d.ts | 13 + ...kit.level.particle.PunchBlockParticle.d.ts | 19 + ...kit.level.particle.RainSplashParticle.d.ts | 13 + ...ukkit.level.particle.RedstoneParticle.d.ts | 15 + ...n.nukkit.level.particle.SmokeParticle.d.ts | 15 + ...n.nukkit.level.particle.SpellParticle.d.ts | 25 + ....nukkit.level.particle.SplashParticle.d.ts | 13 + ...n.nukkit.level.particle.SporeParticle.d.ts | 13 + ...nukkit.level.particle.TerrainParticle.d.ts | 13 + ...kkit.level.particle.WaterDripParticle.d.ts | 13 + ...n.nukkit.level.particle.WaterParticle.d.ts | 13 + .../typings/nukkit/cn.nukkit.math.Angle.d.ts | 47 + ....nukkit.math.AxisAlignedBB.BBConsumer.d.ts | 15 + .../nukkit/cn.nukkit.math.AxisAlignedBB.d.ts | 75 + .../nukkit/cn.nukkit.math.BlockFace.Axis.d.ts | 33 + ...n.nukkit.math.BlockFace.AxisDirection.d.ts | 23 + .../cn.nukkit.math.BlockFace.Plane.d.ts | 25 + .../nukkit/cn.nukkit.math.BlockFace.d.ts | 114 ++ .../nukkit/cn.nukkit.math.BlockVector3.d.ts | 115 ++ .../nukkit/cn.nukkit.math.MathHelper.d.ts | 44 + .../nukkit/cn.nukkit.math.NukkitMath.d.ts | 35 + .../nukkit/cn.nukkit.math.NukkitRandom.d.ts | 39 + .../cn.nukkit.math.SimpleAxisAlignedBB.d.ts | 41 + .../nukkit/cn.nukkit.math.Vector2.d.ts | 73 + .../nukkit/cn.nukkit.math.Vector2f.d.ts | 73 + .../nukkit/cn.nukkit.math.Vector3.d.ts | 165 ++ .../nukkit/cn.nukkit.math.Vector3f.d.ts | 137 ++ .../nukkit/cn.nukkit.math.VectorMath.d.ts | 13 + ...cn.nukkit.metadata.BlockMetadataStore.d.ts | 21 + ...n.nukkit.metadata.EntityMetadataStore.d.ts | 13 + ...cn.nukkit.metadata.LevelMetadataStore.d.ts | 13 + .../cn.nukkit.metadata.MetadataStore.d.ts | 23 + .../cn.nukkit.metadata.MetadataValue.d.ts | 19 + .../cn.nukkit.metadata.Metadatable.d.ts | 17 + ...n.nukkit.metadata.PlayerMetadataStore.d.ts | 13 + .../typings/nukkit/cn.nukkit.nbt.NBTIO.d.ts | 103 ++ ...t.nbt.stream.BufferedRandomAccessFile.d.ts | 65 + ....nbt.stream.FastByteArrayOutputStream.d.ts | 57 + .../cn.nukkit.nbt.stream.NBTInputStream.d.ts | 55 + .../cn.nukkit.nbt.stream.NBTOutputStream.d.ts | 51 + .../cn.nukkit.nbt.stream.PGZIPBlock.d.ts | 25 + ...n.nukkit.nbt.stream.PGZIPOutputStream.d.ts | 46 + .../cn.nukkit.nbt.stream.PGZIPState.d.ts | 19 + ...cn.nukkit.nbt.stream.PGZIPThreadLocal.d.ts | 15 + .../cn.nukkit.nbt.tag.ByteArrayTag.d.ts | 29 + .../nukkit/cn.nukkit.nbt.tag.ByteTag.d.ts | 31 + .../nukkit/cn.nukkit.nbt.tag.CompoundTag.d.ts | 104 ++ .../nukkit/cn.nukkit.nbt.tag.DoubleTag.d.ts | 31 + .../nukkit/cn.nukkit.nbt.tag.EndTag.d.ts | 21 + .../nukkit/cn.nukkit.nbt.tag.FloatTag.d.ts | 31 + .../nukkit/cn.nukkit.nbt.tag.IntArrayTag.d.ts | 29 + .../nukkit/cn.nukkit.nbt.tag.IntTag.d.ts | 31 + .../nukkit/cn.nukkit.nbt.tag.ListTag.d.ts | 47 + .../nukkit/cn.nukkit.nbt.tag.LongTag.d.ts | 31 + .../nukkit/cn.nukkit.nbt.tag.NumberTag.d.ts | 17 + .../nukkit/cn.nukkit.nbt.tag.ShortTag.d.ts | 31 + .../nukkit/cn.nukkit.nbt.tag.StringTag.d.ts | 27 + .../typings/nukkit/cn.nukkit.nbt.tag.Tag.d.ts | 65 + ...ukkit.network.AdvancedSourceInterface.d.ts | 19 + ...ukkit.network.CacheEncapsulatedPacket.d.ts | 17 + ....nukkit.network.CompressBatchedPacket.d.ts | 29 + ...cn.nukkit.network.CompressBatchedTask.d.ts | 29 + .../nukkit/cn.nukkit.network.Network.d.ts | 77 + .../cn.nukkit.network.RakNetInterface.d.ts | 55 + .../cn.nukkit.network.SourceInterface.d.ts | 29 + ...etwork.protocol.AddBehaviorTreePacket.d.ts | 21 + ...kkit.network.protocol.AddEntityPacket.d.ts | 55 + ....network.protocol.AddItemEntityPacket.d.ts | 43 + ...it.network.protocol.AddPaintingPacket.d.ts | 35 + ...kkit.network.protocol.AddPlayerPacket.d.ts | 55 + ...work.protocol.AdventureSettingsPacket.d.ts | 79 + ...network.protocol.AnimatePacket.Action.d.ts | 35 + ...nukkit.network.protocol.AnimatePacket.d.ts | 27 + ...work.protocol.AvailableCommandsPacket.d.ts | 61 + ...ocol.AvailableEntityIdentifiersPacket.d.ts | 23 + ...n.nukkit.network.protocol.BatchPacket.d.ts | 25 + ...rk.protocol.BiomeDefinitionListPacket.d.ts | 23 + ...etwork.protocol.BlockEntityDataPacket.d.ts | 29 + ...kit.network.protocol.BlockEventPacket.d.ts | 31 + ...twork.protocol.BlockPickRequestPacket.d.ts | 31 + ...ukkit.network.protocol.BookEditPacket.d.ts | 19 + ...kkit.network.protocol.BossEventPacket.d.ts | 55 + ....nukkit.network.protocol.CameraPacket.d.ts | 23 + ...etwork.protocol.ChangeDimensionPacket.d.ts | 31 + ...ork.protocol.ChunkRadiusUpdatedPacket.d.ts | 23 + ...work.protocol.ClientCacheStatusPacket.d.ts | 23 + ...rotocol.ClientToServerHandshakePacket.d.ts | 19 + ...ntboundMapItemDataPacket.MapDecorator.d.ts | 27 + ...protocol.ClientboundMapItemDataPacket.d.ts | 51 + ...ork.protocol.CommandBlockUpdatePacket.d.ts | 43 + ...network.protocol.CommandRequestPacket.d.ts | 47 + ...ork.protocol.CompletedUsingItemPacket.d.ts | 57 + ...network.protocol.ContainerClosePacket.d.ts | 23 + ....network.protocol.ContainerOpenPacket.d.ts | 33 + ...twork.protocol.ContainerSetDataPacket.d.ts | 41 + ...t.network.protocol.CraftingDataPacket.d.ts | 49 + ....network.protocol.CraftingEventPacket.d.ts | 43 + ...cn.nukkit.network.protocol.DataPacket.d.ts | 43 + ...kit.network.protocol.DisconnectPacket.d.ts | 25 + ...it.network.protocol.EntityEventPacket.d.ts | 109 ++ ...kit.network.protocol.EntityFallPacket.d.ts | 27 + ...work.protocol.EntityPickRequestPacket.d.ts | 21 + ...n.nukkit.network.protocol.EventPacket.d.ts | 25 + ...etwork.protocol.GUIDataPickItemPacket.d.ts | 21 + ...twork.protocol.GameRulesChangedPacket.d.ts | 23 + ...kkit.network.protocol.HurtArmorPacket.d.ts | 23 + ...col.InitiateWebSocketConnectionPacket.d.ts | 19 + ...ukkit.network.protocol.InteractPacket.d.ts | 31 + ...twork.protocol.InventoryContentPacket.d.ts | 41 + ....network.protocol.InventorySlotPacket.d.ts | 27 + ...k.protocol.InventoryTransactionPacket.d.ts | 59 + ...work.protocol.ItemFrameDropItemPacket.d.ts | 27 + ....network.protocol.LecternUpdatePacket.d.ts | 29 + ...kit.network.protocol.LevelChunkPacket.d.ts | 33 + ...work.protocol.LevelEventGenericPacket.d.ts | 25 + ...kit.network.protocol.LevelEventPacket.d.ts | 161 ++ ...etwork.protocol.LevelSoundEventPacket.d.ts | 533 ++++++ ...work.protocol.LevelSoundEventPacketV1.d.ts | 37 + ...work.protocol.LevelSoundEventPacketV2.d.ts | 37 + ...n.nukkit.network.protocol.LoginPacket.d.ts | 33 + ...rk.protocol.MapCreateLockedCopyPacket.d.ts | 23 + ...network.protocol.MapInfoRequestPacket.d.ts | 21 + ...work.protocol.MobArmorEquipmentPacket.d.ts | 25 + ...kkit.network.protocol.MobEffectPacket.d.ts | 39 + ...t.network.protocol.MobEquipmentPacket.d.ts | 31 + ...twork.protocol.ModalFormRequestPacket.d.ts | 23 + ...work.protocol.ModalFormResponsePacket.d.ts | 23 + ...ork.protocol.MoveEntityAbsolutePacket.d.ts | 39 + ...etwork.protocol.MoveEntityDeltaPacket.d.ts | 47 + ...kit.network.protocol.MovePlayerPacket.d.ts | 53 + ...kit.network.protocol.NPCRequestPacket.d.ts | 19 + ...col.NetworkChunkPublisherUpdatePacket.d.ts | 23 + ...rk.protocol.NetworkStackLatencyPacket.d.ts | 23 + ...otocol.OnScreenTextureAnimationPacket.d.ts | 21 + ...kkit.network.protocol.PlaySoundPacket.d.ts | 33 + ...kit.network.protocol.PlayStatusPacket.d.ts | 39 + ...t.network.protocol.PlayerActionPacket.d.ts | 81 + ...t.network.protocol.PlayerHotbarPacket.d.ts | 25 + ...it.network.protocol.PlayerInputPacket.d.ts | 29 + ...twork.protocol.PlayerListPacket.Entry.d.ts | 37 + ...kit.network.protocol.PlayerListPacket.d.ts | 27 + ...kit.network.protocol.PlayerSkinPacket.d.ts | 27 + ....nukkit.network.protocol.ProtocolInfo.d.ts | 291 +++ ...t.network.protocol.RemoveEntityPacket.d.ts | 23 + ...ork.protocol.RequestChunkRadiusPacket.d.ts | 23 + ....protocol.ResourcePackChunkDataPacket.d.ts | 29 + ...otocol.ResourcePackChunkRequestPacket.d.ts | 25 + ...esourcePackClientResponsePacket.Entry.d.ts | 19 + ...ocol.ResourcePackClientResponsePacket.d.ts | 33 + ...k.protocol.ResourcePackDataInfoPacket.d.ts | 55 + ...work.protocol.ResourcePackStackPacket.d.ts | 31 + ...work.protocol.ResourcePacksInfoPacket.d.ts | 29 + ...nukkit.network.protocol.RespawnPacket.d.ts | 37 + ...kkit.network.protocol.RiderJumpPacket.d.ts | 23 + ...work.protocol.ScriptCustomEventPacket.d.ts | 23 + ....protocol.ServerSettingsRequestPacket.d.ts | 19 + ...protocol.ServerSettingsResponsePacket.d.ts | 23 + ...rotocol.ServerToClientHandshakePacket.d.ts | 25 + ...ork.protocol.SetCommandsEnabledPacket.d.ts | 23 + ....network.protocol.SetDifficultyPacket.d.ts | 23 + ....network.protocol.SetEntityDataPacket.d.ts | 25 + ....network.protocol.SetEntityLinkPacket.d.ts | 35 + ...etwork.protocol.SetEntityMotionPacket.d.ts | 29 + ...kkit.network.protocol.SetHealthPacket.d.ts | 23 + ....network.protocol.SetLastHurtByPacket.d.ts | 19 + ...col.SetLocalPlayerAsInitializedPacket.d.ts | 23 + ...work.protocol.SetPlayerGameTypePacket.d.ts | 23 + ...twork.protocol.SetSpawnPositionPacket.d.ts | 35 + ...nukkit.network.protocol.SetTimePacket.d.ts | 23 + ...ukkit.network.protocol.SetTitlePacket.d.ts | 43 + ...it.network.protocol.ShowCreditsPacket.d.ts | 29 + ...it.network.protocol.ShowProfilePacket.d.ts | 23 + ...it.network.protocol.SimpleEventPacket.d.ts | 21 + ...ork.protocol.SpawnExperienceOrbPacket.d.ts | 29 + ...rk.protocol.SpawnParticleEffectPacket.d.ts | 29 + ...kkit.network.protocol.StartGamePacket.d.ts | 131 ++ ...kkit.network.protocol.StopSoundPacket.d.ts | 25 + ...k.protocol.StructureBlockUpdatePacket.d.ts | 19 + ...network.protocol.SubClientLoginPacket.d.ts | 19 + ...network.protocol.TakeItemEntityPacket.d.ts | 25 + ...cn.nukkit.network.protocol.TextPacket.d.ts | 55 + ...ukkit.network.protocol.TransferPacket.d.ts | 25 + ...twork.protocol.UpdateAttributesPacket.d.ts | 23 + ...work.protocol.UpdateBlockPacket.Entry.d.ts | 27 + ...it.network.protocol.UpdateBlockPacket.d.ts | 47 + ...etwork.protocol.UpdateEquipmentPacket.d.ts | 29 + ...rk.protocol.UpdateSoftEnumPacket.Type.d.ts | 23 + ...network.protocol.UpdateSoftEnumPacket.d.ts | 23 + ...it.network.protocol.UpdateTradePacket.d.ts | 41 + ...ork.protocol.VideoStreamConnectPacket.d.ts | 31 + ...otocol.types.CommandOriginData.Origin.d.ts | 43 + ...work.protocol.types.CommandOriginData.d.ts | 23 + ...t.network.protocol.types.ContainerIds.d.ts | 33 + ...kit.network.protocol.types.EntityLink.d.ts | 29 + ...protocol.types.NetworkInventoryAction.d.ts | 77 + .../cn.nukkit.network.query.QueryHandler.d.ts | 27 + .../nukkit/cn.nukkit.network.rcon.RCON.d.ts | 17 + .../cn.nukkit.network.rcon.RCONCommand.d.ts | 19 + .../cn.nukkit.network.rcon.RCONPacket.d.ts | 23 + .../cn.nukkit.network.rcon.RCONServer.d.ts | 21 + .../nukkit/cn.nukkit.permission.BanEntry.d.ts | 41 + .../nukkit/cn.nukkit.permission.BanList.d.ts | 37 + ....nukkit.permission.DefaultPermissions.d.ts | 19 + .../cn.nukkit.permission.Permissible.d.ts | 29 + .../cn.nukkit.permission.PermissibleBase.d.ts | 37 + .../cn.nukkit.permission.Permission.d.ts | 59 + ...ukkit.permission.PermissionAttachment.d.ts | 35 + ...t.permission.PermissionAttachmentInfo.d.ts | 19 + ....permission.PermissionRemovedExecutor.d.ts | 11 + .../cn.nukkit.permission.ServerOperator.d.ts | 21 + .../cn.nukkit.plugin.EventExecutor.d.ts | 11 + .../cn.nukkit.plugin.JavaPluginLoader.d.ts | 25 + .../nukkit/cn.nukkit.plugin.Library.d.ts | 15 + ...cn.nukkit.plugin.LibraryLoadException.d.ts | 11 + .../cn.nukkit.plugin.LibraryLoader.d.ts | 17 + .../cn.nukkit.plugin.MethodEventExecutor.d.ts | 15 + .../nukkit/cn.nukkit.plugin.Plugin.d.ts | 181 ++ .../nukkit/cn.nukkit.plugin.PluginBase.d.ts | 105 ++ .../cn.nukkit.plugin.PluginClassLoader.d.ts | 15 + .../cn.nukkit.plugin.PluginDescription.d.ts | 126 ++ .../cn.nukkit.plugin.PluginLoadOrder.d.ts | 17 + .../nukkit/cn.nukkit.plugin.PluginLoader.d.ts | 84 + .../nukkit/cn.nukkit.plugin.PluginLogger.d.ts | 47 + .../cn.nukkit.plugin.PluginManager.d.ts | 97 + .../cn.nukkit.plugin.RegisteredListener.d.ts | 21 + ...ukkit.plugin.service.NKServiceManager.d.ts | 31 + ...gin.service.RegisteredServiceProvider.d.ts | 34 + ....nukkit.plugin.service.ServiceManager.d.ts | 42 + ...nukkit.plugin.service.ServicePriority.d.ts | 25 + .../nukkit/cn.nukkit.potion.Effect.d.ts | 133 ++ .../cn.nukkit.potion.InstantEffect.d.ts | 13 + .../nukkit/cn.nukkit.potion.Potion.d.ts | 139 ++ .../nukkit/cn.nukkit.raknet.RakNet.d.ts | 47 + ...kit.raknet.protocol.AcknowledgePacket.d.ts | 23 + .../cn.nukkit.raknet.protocol.DataPacket.d.ts | 27 + ...it.raknet.protocol.EncapsulatedPacket.d.ts | 53 + ....raknet.protocol.Packet.PacketFactory.d.ts | 18 + .../cn.nukkit.raknet.protocol.Packet.d.ts | 79 + ...it.raknet.protocol.packet.ACK.Factory.d.ts | 19 + .../cn.nukkit.raknet.protocol.packet.ACK.d.ts | 19 + ...tocol.packet.ADVERTISE_SYSTEM.Factory.d.ts | 19 + ...knet.protocol.packet.ADVERTISE_SYSTEM.d.ts | 19 + ...ket.CLIENT_CONNECT_DataPacket.Factory.d.ts | 19 + ...ocol.packet.CLIENT_CONNECT_DataPacket.d.ts | 29 + ....CLIENT_DISCONNECT_DataPacket.Factory.d.ts | 19 + ...l.packet.CLIENT_DISCONNECT_DataPacket.d.ts | 19 + ...t.CLIENT_HANDSHAKE_DataPacket.Factory.d.ts | 19 + ...ol.packet.CLIENT_HANDSHAKE_DataPacket.d.ts | 33 + ...protocol.packet.DATA_PACKET_0.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_0.d.ts | 19 + ...protocol.packet.DATA_PACKET_1.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_1.d.ts | 19 + ...protocol.packet.DATA_PACKET_2.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_2.d.ts | 19 + ...protocol.packet.DATA_PACKET_3.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_3.d.ts | 19 + ...protocol.packet.DATA_PACKET_4.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_4.d.ts | 19 + ...protocol.packet.DATA_PACKET_5.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_5.d.ts | 19 + ...protocol.packet.DATA_PACKET_6.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_6.d.ts | 19 + ...protocol.packet.DATA_PACKET_7.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_7.d.ts | 19 + ...protocol.packet.DATA_PACKET_8.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_8.d.ts | 19 + ...protocol.packet.DATA_PACKET_9.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_9.d.ts | 19 + ...protocol.packet.DATA_PACKET_A.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_A.d.ts | 19 + ...protocol.packet.DATA_PACKET_B.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_B.d.ts | 19 + ...protocol.packet.DATA_PACKET_C.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_C.d.ts | 19 + ...protocol.packet.DATA_PACKET_D.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_D.d.ts | 19 + ...protocol.packet.DATA_PACKET_E.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_E.d.ts | 19 + ...protocol.packet.DATA_PACKET_F.Factory.d.ts | 19 + ....raknet.protocol.packet.DATA_PACKET_F.d.ts | 19 + ...t.raknet.protocol.packet.NACK.Factory.d.ts | 19 + ...cn.nukkit.raknet.protocol.packet.NACK.d.ts | 19 + ...acket.OPEN_CONNECTION_REPLY_1.Factory.d.ts | 19 + ...otocol.packet.OPEN_CONNECTION_REPLY_1.d.ts | 27 + ...acket.OPEN_CONNECTION_REPLY_2.Factory.d.ts | 19 + ...otocol.packet.OPEN_CONNECTION_REPLY_2.d.ts | 31 + ...ket.OPEN_CONNECTION_REQUEST_1.Factory.d.ts | 19 + ...ocol.packet.OPEN_CONNECTION_REQUEST_1.d.ts | 27 + ...ket.OPEN_CONNECTION_REQUEST_2.Factory.d.ts | 19 + ...ocol.packet.OPEN_CONNECTION_REQUEST_2.d.ts | 31 + ...otocol.packet.PING_DataPacket.Factory.d.ts | 19 + ...aknet.protocol.packet.PING_DataPacket.d.ts | 25 + ...otocol.packet.PONG_DataPacket.Factory.d.ts | 19 + ...aknet.protocol.packet.PONG_DataPacket.d.ts | 25 + ...t.SERVER_HANDSHAKE_DataPacket.Factory.d.ts | 19 + ...ol.packet.SERVER_HANDSHAKE_DataPacket.d.ts | 31 + ...tocol.packet.UNCONNECTED_PING.Factory.d.ts | 19 + ...knet.protocol.packet.UNCONNECTED_PING.d.ts | 25 + ...NNECTED_PING_OPEN_CONNECTIONS.Factory.d.ts | 19 + ...ket.UNCONNECTED_PING_OPEN_CONNECTIONS.d.ts | 19 + ...tocol.packet.UNCONNECTED_PONG.Factory.d.ts | 19 + ...knet.protocol.packet.UNCONNECTED_PONG.d.ts | 29 + .../cn.nukkit.raknet.server.RakNetServer.d.ts | 49 + ...cn.nukkit.raknet.server.ServerHandler.d.ts | 39 + ...n.nukkit.raknet.server.ServerInstance.d.ts | 23 + .../cn.nukkit.raknet.server.Session.d.ts | 53 + ...n.nukkit.raknet.server.SessionManager.d.ts | 95 + ....nukkit.raknet.server.UDPServerSocket.d.ts | 41 + ...it.resourcepacks.AbstractResourcePack.d.ts | 21 + .../cn.nukkit.resourcepacks.ResourcePack.d.ts | 21 + ...kit.resourcepacks.ResourcePackManager.d.ts | 15 + ...kkit.resourcepacks.ZippedResourcePack.d.ts | 17 + .../nukkit/cn.nukkit.scheduler.AsyncPool.d.ts | 15 + .../nukkit/cn.nukkit.scheduler.AsyncTask.d.ts | 39 + .../cn.nukkit.scheduler.AsyncWorker.d.ts | 19 + ...nukkit.scheduler.BlockUpdateScheduler.d.ts | 25 + .../cn.nukkit.scheduler.FileWriteTask.d.ts | 23 + .../cn.nukkit.scheduler.NukkitRunnable.d.ts | 33 + .../cn.nukkit.scheduler.PluginTask.d.ts | 22 + .../cn.nukkit.scheduler.ServerScheduler.d.ts | 81 + .../nukkit/cn.nukkit.scheduler.Task.d.ts | 29 + .../cn.nukkit.scheduler.TaskHandler.d.ts | 51 + .../cn.nukkit.timings.JsonUtil.JSONPair.d.ts | 19 + .../nukkit/cn.nukkit.timings.JsonUtil.d.ts | 21 + .../cn.nukkit.timings.LevelTimings.d.ts | 37 + .../cn.nukkit.utils.BannerPattern.Type.d.ts | 95 + .../nukkit/cn.nukkit.utils.BannerPattern.d.ts | 17 + .../nukkit/cn.nukkit.utils.Binary.d.ts | 119 ++ .../nukkit/cn.nukkit.utils.BinaryStream.d.ts | 191 ++ .../nukkit/cn.nukkit.utils.BlockColor.d.ts | 149 ++ .../nukkit/cn.nukkit.utils.BlockIterator.d.ts | 19 + .../cn.nukkit.utils.BlockUpdateEntry.d.ts | 29 + .../cn.nukkit.utils.ChunkException.d.ts | 15 + .../cn.nukkit.utils.ClientChainData.d.ts | 55 + .../nukkit/cn.nukkit.utils.Config.d.ts | 179 ++ .../nukkit/cn.nukkit.utils.ConfigSection.d.ts | 248 +++ ...kit.utils.DefaultPlayerDataSerializer.d.ts | 15 + .../cn.nukkit.utils.DummyBossBar.Builder.d.ts | 23 + .../nukkit/cn.nukkit.utils.DummyBossBar.d.ts | 47 + .../nukkit/cn.nukkit.utils.DyeColor.d.ts | 59 + .../cn.nukkit.utils.EventException.d.ts | 34 + .../nukkit/cn.nukkit.utils.Faceable.d.ts | 11 + .../typings/nukkit/cn.nukkit.utils.Hash.d.ts | 19 + .../cn.nukkit.utils.HastebinUtility.d.ts | 21 + .../cn.nukkit.utils.IterableThreadLocal.d.ts | 27 + .../cn.nukkit.utils.LevelException.d.ts | 11 + .../nukkit/cn.nukkit.utils.LogLevel.d.ts | 39 + .../nukkit/cn.nukkit.utils.Logger.d.ts | 45 + .../cn.nukkit.utils.LoginChainData.d.ts | 43 + .../nukkit/cn.nukkit.utils.MainLogger.d.ts | 55 + .../nukkit/cn.nukkit.utils.MinecartType.d.ts | 49 + .../cn.nukkit.utils.PlayerDataSerializer.d.ts | 19 + .../cn.nukkit.utils.PluginException.d.ts | 13 + ...n.nukkit.utils.Rail.Orientation.State.d.ts | 23 + .../cn.nukkit.utils.Rail.Orientation.d.ts | 59 + .../typings/nukkit/cn.nukkit.utils.Rail.d.ts | 13 + .../cn.nukkit.utils.SerializedImage.d.ts | 21 + .../cn.nukkit.utils.ServerException.d.ts | 13 + .../nukkit/cn.nukkit.utils.ServerKiller.d.ts | 17 + .../cn.nukkit.utils.SimpleConfig.Path.d.ts | 13 + .../cn.nukkit.utils.SimpleConfig.Skip.d.ts | 15 + .../nukkit/cn.nukkit.utils.SimpleConfig.d.ts | 21 + .../nukkit/cn.nukkit.utils.SkinAnimation.d.ts | 17 + .../cn.nukkit.utils.TerracottaColor.d.ts | 59 + .../nukkit/cn.nukkit.utils.TextFormat.d.ts | 114 ++ .../nukkit/cn.nukkit.utils.ThreadCache.d.ts | 33 + .../nukkit/cn.nukkit.utils.ThreadStore.d.ts | 13 + .../cn.nukkit.utils.ThreadedLogger.d.ts | 11 + .../typings/nukkit/cn.nukkit.utils.Utils.d.ts | 59 + .../nukkit/cn.nukkit.utils.VarInt.d.ts | 49 + .../nukkit/cn.nukkit.utils.Watchdog.d.ts | 17 + .../typings/nukkit/cn.nukkit.utils.Zlib.d.ts | 25 + .../nukkit/cn.nukkit.utils.ZlibOriginal.d.ts | 17 + ...n.nukkit.utils.ZlibSingleThreadLowMem.d.ts | 17 + .../cn.nukkit.utils.ZlibThreadLocal.d.ts | 21 + ...it.utils.bugreport.BugReportGenerator.d.ts | 15 + ...kkit.utils.bugreport.ExceptionHandler.d.ts | 19 + packages/types/dist/typings/nukkit/index.d.ts | 1589 +++++++++++++++++ 1590 files changed, 53034 insertions(+) create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.Achievement.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.AdventureSettings.Type.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.AdventureSettings.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.IPlayer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.InterruptibleThread.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.Nukkit.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.OfflinePlayer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.Player.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.PlayerFood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.Server.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.api.API.Definition.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.api.API.Usage.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.api.API.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.Block.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockAir.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockAnvil.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBanner.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBeacon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBed.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBedrock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBedrockInvisible.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBeetroot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBookshelf.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBrewingStand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricks.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksEndStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksNether.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksRedNether.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButton.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButtonStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButtonWooden.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCactus.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCake.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCarpet.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCarrot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCauldron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChest.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChorusFlower.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChorusPlant.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockClay.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCoal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCobblestone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCobweb.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCocoa.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockConcrete.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockConcretePowder.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCraftingTable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCrops.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDandelion.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDaylightDetector.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDaylightDetectorInverted.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDeadBush.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDirt.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDispenser.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorAcacia.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorBirch.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorDarkOak.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorJungle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorSpruce.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoublePlant.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlab.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabRedSandstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDragonEgg.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEmerald.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEnchantingTable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndGateway.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndPortal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndPortalFrame.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndRod.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEnderChest.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFallable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFarmland.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFence.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGate.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateAcacia.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateBirch.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateDarkOak.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateJungle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateSpruce.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceNetherBrick.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFire.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlowable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlower.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlowerPot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFurnace.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFurnaceBurning.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlass.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassPane.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassPaneStained.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassStained.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlowstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGrass.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGrassPath.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGravel.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHayBale.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHopper.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHugeMushroomBrown.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHugeMushroomRed.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockID.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIce.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIcePacked.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIronBars.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockItemFrame.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockJukebox.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLadder.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLapis.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLava.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLavaStill.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLeaves.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLeaves2.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLever.LeverOrientation.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLever.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLiquid.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMagma.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMelon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMeta.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMobSpawner.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMonsterEgg.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMossStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroom.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroomBrown.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroomRed.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMycelium.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherBrick.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherPortal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherWart.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherWartBlock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherrack.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNoteblock.Instrument.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNoteblock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObserver.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObsidian.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObsidianGlowing.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreCoal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreEmerald.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreLapis.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreQuartz.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreRedstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreRedstoneGlowing.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPiston.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonBase.BlocksCalculator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonBase.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonHead.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonSticky.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPlanks.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPodzol.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPotato.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateBase.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPrismarine.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPumpkin.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPumpkinLit.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPurpur.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockQuartz.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRail.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailActivator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailDetector.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailPowered.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedSandstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparator.Mode.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparatorPowered.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparatorUnpowered.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneDiode.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneLamp.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneLampLit.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneRepeaterPowered.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneRepeaterUnpowered.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneTorch.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneTorchUnlit.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneWire.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSandstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSapling.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSeaLantern.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockShulkerBox.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSignPost.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSkull.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlab.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabRedSandstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlime.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSnow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSnowLayer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSolid.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSolidMeta.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSoulSand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSponge.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairs.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsAcacia.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsBirch.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsBrick.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsCobblestone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsDarkOak.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsJungle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsNetherBrick.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsPurpur.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsQuartz.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsRedSandstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsSandstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsSpruce.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsStoneBrick.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStemMelon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStemPumpkin.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStonecutter.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSugarcane.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTNT.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTallGrass.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracotta.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazed.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBlack.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBlue.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBrown.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedCyan.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedGray.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedGreen.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedLightBlue.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedLime.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedMagenta.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedOrange.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedPink.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedPurple.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedRed.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedSilver.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedWhite.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedYellow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaStained.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockThin.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTorch.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTransparent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTransparentMeta.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrapdoor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrapdoorIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrappedChest.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTripWire.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTripWireHook.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockUndyedShulkerBox.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockUnknown.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockVine.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWall.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWallBanner.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWallSign.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWater.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWaterLily.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWaterStill.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWeightedPressurePlateHeavy.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWeightedPressurePlateLight.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWheat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWood2.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWool.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntity.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBanner.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBeacon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBed.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBrewingStand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityCauldron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityChest.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityComparator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityContainer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityEnchantTable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityEnderChest.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityFlowerPot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityFurnace.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityHopper.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityItemFrame.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityJukebox.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityMovingBlock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityMusic.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityNameable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityPistonArm.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityShulkerBox.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySign.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySkull.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySpawnable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.Command.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.CommandExecutor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.CommandMap.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.CommandSender.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.ConsoleCommandSender.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.FormattedCommandAlias.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.PluginCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.PluginIdentifiableCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.RemoteConsoleCommandSender.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.SimpleCommandMap.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandArgs.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandDataVersions.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandEnum.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandInput.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandOutput.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandOverload.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandParamType.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandParameter.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArg.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArgBlockVector.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArgRules.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanIpCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanListCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DebugPasteCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DefaultGamemodeCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DeopCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DifficultyCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.EffectCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.EnchantCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GamemodeCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GameruleCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GarbageCollectorCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GiveCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.HelpCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.KickCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.KillCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ListCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.MeCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.OpCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PardonCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PardonIpCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ParticleCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PluginsCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ReloadCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveOffCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveOnCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SayCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SeedCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SetWorldSpawnCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SpawnpointCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.StatusCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.StopCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TeleportCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TellCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TimeCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TimingsCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TitleCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.VanillaCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.VersionCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.WeatherCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.WhitelistCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.XpCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Arguments.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Command.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.simple.CommandParameters.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.simple.CommandPermission.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.simple.ForbidConsole.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Parameter.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Parameters.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.command.simple.SimpleCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.console.NukkitConsole.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.console.NukkitConsoleCompleter.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.dispenser.BucketDispenseBehavior.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DefaultDispenseBehavior.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DispenseBehavior.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DispenseBehaviorRegister.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.dispenser.EmptyBucketDispenseBehavior.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.dispenser.ProjectileDispenseBehavior.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.Attribute.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.Entity.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityAgeable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityArthropod.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityCreature.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityDamageable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityExplosive.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHanging.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHuman.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHumanType.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityInteractable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityLiving.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityOwnable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityRideable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.EntitySmite.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.ByteEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.EntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.EntityMetadata.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.FloatEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.IntEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.IntPositionEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.LongEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.NBTEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.ShortEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.Skin.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.StringEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.data.Vector3fEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityBoat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityEndCrystal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityExpBottle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFallingBlock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFirework.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFishingHook.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityItem.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartAbstract.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartChest.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartEmpty.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartHopper.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartTNT.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPainting.Motive.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPainting.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPotion.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPrimedTNT.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityVehicle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityXPOrb.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityBlaze.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityCaveSpider.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityCreeper.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityDrowned.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityElderGuardian.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEnderDragon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEnderman.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEndermite.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEvoker.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityGhast.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityGuardian.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityHusk.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityMagmaCube.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityMob.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityPhantom.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityPillager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityRavager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityShulker.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySilverfish.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySkeleton.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySlime.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySpider.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityStray.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityVex.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityVindicator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWitch.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWither.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWitherSkeleton.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombie.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombiePigman.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombieVillager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombieVillagerV1.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityAnimal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityBat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityChicken.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCod.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityDolphin.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityDonkey.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityHorse.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityLlama.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityMooshroom.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityMule.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityNPC.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityOcelot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPanda.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityParrot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPig.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPolarBear.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPufferfish.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityRabbit.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySalmon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySheep.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySkeletonHorse.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySquid.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTameable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTropicalFish.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTurtle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityVillager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityVillagerV1.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWanderingTrader.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWaterAnimal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWolf.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityZombieHorse.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityArrow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityEgg.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityEnderPearl.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityProjectile.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntitySnowball.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityThrownTrident.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityLightning.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityLightningStrike.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityWeather.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.Cancellable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.Event.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.EventHandler.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.EventPriority.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.HandlerList.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.Listener.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockBreakEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockBurnEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFadeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFormEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFromToEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockGrowEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockIgniteEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockPistonChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockPlaceEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockRedstoneEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockSpreadEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockUpdateEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.DoorToggleEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.ItemFrameDropItemEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.LeavesDecayEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.LiquidFlowEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.block.SignChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreatureSpawnEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreeperPowerEvent.PowerCause.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreeperPowerEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityArmorChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityBlockChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustByBlockEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustByEntityEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByBlockEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByChildEntityEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByEntityEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.DamageCause.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.DamageModifier.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDeathEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDespawnEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityExplodeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityExplosionPrimeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityInteractEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityInventoryChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityLevelChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityMotionEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityPortalEnterEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityRegainHealthEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityShootBowEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntitySpawnEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityTeleportEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityVehicleEnterEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityVehicleExitEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ExplosionPrimeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ItemDespawnEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ItemSpawnEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ProjectileHitEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ProjectileLaunchEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.BrewEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.CraftItemEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.FurnaceBurnEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.FurnaceSmeltEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryClickEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryCloseEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryMoveItemEvent.Action.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryMoveItemEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryOpenEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryPickupArrowEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryPickupItemEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryTransactionEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.StartBrewEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkLoadEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkPopulateEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkUnloadEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelInitEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelLoadEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelSaveEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelUnloadEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.SpawnChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.ThunderChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.WeatherChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.level.WeatherEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAchievementAwardedEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAnimationEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAsyncPreLoginEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBedEnterEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBedLeaveEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBlockPickEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBucketEmptyEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBucketFillEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChangeSkinEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChatEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChunkRequestEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerCommandPreprocessEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerCreationEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerDeathEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerDropItemEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerEatFoodEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerFoodLevelChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerFormRespondedEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerGameModeChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerGlassBottleFillEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEntityEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEvent.Action.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInvalidMoveEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerItemConsumeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerItemHeldEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerJoinEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerKickEvent.Reason.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerKickEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerLoginEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMapInfoRequestEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMessageEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMouseOverEntityEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMoveEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerPreLoginEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerQuitEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerRespawnEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerServerSettingsRequestEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerSettingsRespondedEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerTeleportEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleFlightEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleGlideEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSneakEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSprintEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSwimEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginDisableEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginEnableEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionApplyEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionCollideEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.redstone.RedstoneUpdateEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.server.BatchPacketsEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.server.DataPacketReceiveEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.server.DataPacketSendEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.server.PlayerDataSerializeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.server.QueryRegenerateEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.server.RemoteServerCommandEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.server.ServerCommandEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.server.ServerEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.EntityEnterVehicleEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.EntityExitVehicleEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleCreateEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleDamageEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleDestroyEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleMoveEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleUpdateEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.weather.LightningStrikeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.weather.ThunderChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.weather.WeatherChangeEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.event.weather.WeatherEvent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.element.Element.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementButton.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementButtonImageData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementDropdown.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementInput.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementLabel.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementSlider.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementStepSlider.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementToggle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponse.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseCustom.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseModal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseSimple.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowCustom.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowModal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowSimple.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.AnvilInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.BaseInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.BeaconInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.BigCraftingGrid.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.BrewingInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.BrewingRecipe.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.ChestInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.ContainerInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.ContainerRecipe.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingGrid.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingManager.Entry.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingRecipe.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.CustomInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.DoubleChestInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.EnchantInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.FakeBlockMenu.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.FakeBlockUIComponent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.Fuel.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.FurnaceInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.FurnaceRecipe.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.HopperInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.Inventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.InventoryHolder.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.InventoryType.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.MixRecipe.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerCursorInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerEnderChestInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerOffhandInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerUIComponent.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerUIInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.Recipe.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.RecipeType.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapedRecipe.Entry.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapedRecipe.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapelessRecipe.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShulkerBoxInventory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.CraftingTransaction.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.InventoryTransaction.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CraftingTakeResultAction.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CraftingTransferMaterialAction.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CreativeInventoryAction.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.DropItemAction.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.InventoryAction.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.SlotChangeAction.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.ReleaseItemData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.TransactionData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.UseItemData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.UseItemOnEntityData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.Item.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemApple.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAppleGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAppleGoldEnchanted.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemArmor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemArrow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBanner.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBed.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeefRaw.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeetroot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeetrootSoup.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlazePowder.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlazeRod.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBoat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBook.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBookEnchanted.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBookWritten.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsChain.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsLeather.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBowl.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBread.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBrewingStand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBrick.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBucket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCake.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrotGolden.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrotOnAStick.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCauldron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateChain.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateLeather.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChickenCooked.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChickenRaw.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChorusFruit.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClay.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClownfish.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCoal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemColorArmor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCompass.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCookie.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorAcacia.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorBirch.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorDarkOak.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorJungle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorSpruce.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDriedKelp.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDurable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDye.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEdible.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEgg.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemElytra.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEmerald.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEndCrystal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEnderEye.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEnderPearl.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemExpBottle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFeather.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFireCharge.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.FireworkExplosion.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFish.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFishCooked.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFishingRod.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlint.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlintSteel.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlowerPot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGhastTear.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGlassBottle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGlowstoneDust.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGunpowder.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetChain.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetLeather.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHopper.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorLeather.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemID.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemIngotGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemIngotIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemItemFrame.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeather.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsChain.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsLeather.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMagmaCream.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMap.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMelon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMelonGlistering.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecart.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartChest.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartHopper.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartTNT.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMushroomStew.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMuttonCooked.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMuttonRaw.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherBrick.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherStar.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherWart.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNuggetGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPainting.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPaper.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPorkchopCooked.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPorkchopRaw.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotato.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotatoBaked.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotatoPoisonous.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotion.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotionLingering.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotionSplash.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPrismarineCrystals.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPrismarineShard.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPufferfish.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPumpkinPie.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemQuartz.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitCooked.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitFoot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitRaw.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitStew.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord11.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord13.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordBlocks.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordCat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordChirp.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordFar.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordMall.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordMellohi.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordStal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordStrad.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordWait.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordWard.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstoneComparator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstoneRepeater.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRottenFlesh.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSaddle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSalmon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSalmonCooked.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsBeetroot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsMelon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsPumpkin.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsWheat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShears.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShield.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSign.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSkull.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSlimeball.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSnowball.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpawnEgg.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpiderEye.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpiderEyeFermented.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSteak.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemStick.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemString.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSugar.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSugarcane.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSweetBerries.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordDiamond.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordGold.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordIron.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordWood.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTool.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTotem.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTrident.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTurtleShell.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ItemWheat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.ProjectileItem.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.Enchantment.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentBindingCurse.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentDurability.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentEfficiency.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentEntry.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentFireAspect.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentFrostWalker.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentKnockback.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentList.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentLure.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentMending.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentSilkTouch.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentThorns.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentType.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentVanishingCurse.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterBreath.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterWalker.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterWorker.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowFlame.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowInfinity.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowKnockback.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowPower.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamage.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageAll.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageArthropods.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageSmite.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLoot.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootDigging.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootFishing.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootWeapon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtection.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionAll.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionExplosion.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionFall.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionFire.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionProjectile.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTrident.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentChanneling.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentImpaling.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentLoyalty.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentRiptide.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.food.Food.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodChorusFruit.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodEffective.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodInBowl.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodMilk.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodNormal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.ConstantItemSelector.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.Fishing.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.RandomItem.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.Selector.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.lang.BaseLang.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.lang.TextContainer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.lang.TranslationContainer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkLoader.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkPosition.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.EnumLevel.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.Explosion.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.GameRule.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.Type.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.Value.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.GlobalBlockPalette.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.Level.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.Location.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.MovingObjectPosition.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.ParticleEffect.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.Position.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.Sound.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.Biome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.BiomeSelector.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.EnumBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.HellBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.beach.BeachBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.beach.ColdBeachBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertHillsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsEdgeBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsPlusBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsPlusMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.StoneBeachBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.FlowerForestBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.ForestBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.ForestHillsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.iceplains.IcePlainsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.iceplains.IcePlainsSpikesBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleEdgeBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleEdgeMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleHillsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaBryceBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauFBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauFMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mushroom.MushroomIslandBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mushroom.MushroomIslandShoreBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.DeepOceanBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.FrozenOceanBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.OceanBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.plains.PlainsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.plains.SunflowerPlainsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.river.FrozenRiverBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.river.RiverBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.roofedforest.RoofedForestBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.roofedforest.RoofedForestMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaPlateauBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaPlateauMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.swamp.SwampBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.swamp.SwamplandMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaHillsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaSpruceTaigaBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaTaigaBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaTaigaHillsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaHillsBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaMBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.CoveredBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.GrassyBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.SandyBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.SnowyBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.WateryBiome.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.Chunk.Entry.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.Chunk.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.ChunkSection.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.FullChunk.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.LevelProvider.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.LevelProviderManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.Anvil.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.Chunk.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.ChunkSection.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.RegionLoader.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BiomePalette.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BitArray256.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BitArray4096.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BlockDataPalette.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BytePalette.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.CharPalette.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.IntPalette.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.util.BlockStorage.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.util.NibbleArray.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseChunk.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseFullChunk.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseLevelProvider.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseRegionLoader.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.ChunkConverter.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.EmptyChunkSection.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.Chunk.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.LevelDB.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.BaseKey.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.EntitiesKey.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.ExtraDataKey.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.FlagsKey.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TerrainKey.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TicksKey.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TilesKey.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.VersionKey.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.Chunk.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.McRegion.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.RegionLoader.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Flat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Generator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Nether.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Normal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.PopChunkManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.SimpleChunkManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.SingleChunkManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.NoiseD.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.PerlinD.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.SimplexD.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.NoiseF.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.PerlinF.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.SimplexF.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorImprovedD.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorOctavesD.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorPerlinD.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorSimplexD.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorImprovedF.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorOctavesF.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorPerlinF.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorSimplexF.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.BasicGenerator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.ObjectTallGrass.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.mushroom.BigMushroom.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.ore.OreType.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.HugeTreesGenerator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.NewJungleTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectBigSpruceTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectBirchTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectDarkOakTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectJungleBigTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectJungleTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectOakTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSavannaTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSpruceTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSwampTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectTallBirchTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.TreeGenerator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureBelow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureCover.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureGrassBelow.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.PopulatorHelpers.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.MushroomPopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorBedrock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorCactus.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorCaves.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorDeadBush.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorDoublePlant.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorFlower.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGlowStone.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGrass.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGroundCover.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGroundFire.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorLava.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorLilyPad.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorMelon.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorMineshaft.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorOre.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorRavines.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorSmallMushroom.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorSugarcane.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorTallSugarcane.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorTree.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.WaterIcePopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.DarkOakTreePopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleBigTreePopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleFloorPopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleTreePopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SavannaTreePopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SpruceBigTreePopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SpruceMegaTreePopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SwampTreePopulator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.Populator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.PopulatorCount.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.GenerationTask.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.LightPopulationTask.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.PopulationTask.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.AngryVillagerParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BlockForceFieldParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BoneMealParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BubbleParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.CriticalParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.DestroyBlockParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.DustParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EnchantParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EnchantmentTableParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EntityFlameParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.ExplodeParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.FlameParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.FloatingTextParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.GenericParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HappyVillagerParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HeartParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HugeExplodeParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HugeExplodeSeedParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InkParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InstantEnchantParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InstantSpellParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.ItemBreakParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.LavaDripParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.LavaParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.MobSpawnParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.Particle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.PortalParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.PunchBlockParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.RainSplashParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.RedstoneParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SmokeParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SpellParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SplashParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SporeParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.TerrainParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.WaterDripParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.level.particle.WaterParticle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.Angle.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.AxisAlignedBB.BBConsumer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.AxisAlignedBB.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.Axis.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.AxisDirection.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.Plane.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.BlockVector3.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.MathHelper.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.NukkitMath.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.NukkitRandom.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.SimpleAxisAlignedBB.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.Vector2.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.Vector2f.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.Vector3.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.Vector3f.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.math.VectorMath.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.metadata.BlockMetadataStore.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.metadata.EntityMetadataStore.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.metadata.LevelMetadataStore.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.metadata.MetadataStore.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.metadata.MetadataValue.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.metadata.Metadatable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.metadata.PlayerMetadataStore.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.NBTIO.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.BufferedRandomAccessFile.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.FastByteArrayOutputStream.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.NBTInputStream.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.NBTOutputStream.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPBlock.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPOutputStream.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPState.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPThreadLocal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ByteArrayTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ByteTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.CompoundTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.DoubleTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.EndTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.FloatTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.IntArrayTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.IntTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ListTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.LongTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.NumberTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ShortTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.StringTag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.Tag.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.AdvancedSourceInterface.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.CacheEncapsulatedPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.CompressBatchedPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.CompressBatchedTask.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.Network.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.RakNetInterface.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.SourceInterface.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddBehaviorTreePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddEntityPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddItemEntityPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddPaintingPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddPlayerPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AdventureSettingsPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AnimatePacket.Action.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AnimatePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AvailableCommandsPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AvailableEntityIdentifiersPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BatchPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BiomeDefinitionListPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockEntityDataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockEventPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockPickRequestPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BookEditPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BossEventPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CameraPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ChangeDimensionPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ChunkRadiusUpdatedPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientCacheStatusPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientToServerHandshakePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientboundMapItemDataPacket.MapDecorator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientboundMapItemDataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CommandBlockUpdatePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CommandRequestPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CompletedUsingItemPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerClosePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerOpenPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerSetDataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CraftingDataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CraftingEventPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.DataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.DisconnectPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityEventPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityFallPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityPickRequestPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EventPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.GUIDataPickItemPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.GameRulesChangedPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.HurtArmorPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InitiateWebSocketConnectionPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InteractPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventoryContentPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventorySlotPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventoryTransactionPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ItemFrameDropItemPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LecternUpdatePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelChunkPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelEventGenericPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelEventPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacketV1.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacketV2.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LoginPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MapCreateLockedCopyPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MapInfoRequestPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobArmorEquipmentPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobEffectPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobEquipmentPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ModalFormRequestPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ModalFormResponsePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MoveEntityAbsolutePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MoveEntityDeltaPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MovePlayerPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NPCRequestPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NetworkChunkPublisherUpdatePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NetworkStackLatencyPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.OnScreenTextureAnimationPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlaySoundPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayStatusPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerActionPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerHotbarPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerInputPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerListPacket.Entry.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerListPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerSkinPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ProtocolInfo.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RemoveEntityPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RequestChunkRadiusPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackChunkDataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackChunkRequestPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackClientResponsePacket.Entry.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackClientResponsePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackDataInfoPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackStackPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePacksInfoPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RespawnPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RiderJumpPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ScriptCustomEventPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerSettingsRequestPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerSettingsResponsePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerToClientHandshakePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetCommandsEnabledPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetDifficultyPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityDataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityLinkPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityMotionPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetHealthPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetLastHurtByPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetLocalPlayerAsInitializedPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetPlayerGameTypePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetSpawnPositionPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetTimePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetTitlePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ShowCreditsPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ShowProfilePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SimpleEventPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SpawnExperienceOrbPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SpawnParticleEffectPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StartGamePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StopSoundPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StructureBlockUpdatePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SubClientLoginPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TakeItemEntityPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TextPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TransferPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateAttributesPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateBlockPacket.Entry.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateBlockPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateEquipmentPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateSoftEnumPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateTradePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.VideoStreamConnectPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.CommandOriginData.Origin.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.CommandOriginData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.ContainerIds.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.EntityLink.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.NetworkInventoryAction.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.query.QueryHandler.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCON.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONCommand.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONServer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.BanEntry.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.BanList.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.DefaultPermissions.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.Permissible.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissibleBase.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.Permission.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionAttachment.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionAttachmentInfo.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionRemovedExecutor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.permission.ServerOperator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.EventExecutor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.JavaPluginLoader.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.Library.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.LibraryLoadException.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.LibraryLoader.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.MethodEventExecutor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.Plugin.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginBase.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginClassLoader.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginDescription.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLoadOrder.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLoader.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLogger.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.RegisteredListener.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.NKServiceManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.RegisteredServiceProvider.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.ServiceManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.ServicePriority.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.potion.Effect.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.potion.InstantEffect.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.potion.Potion.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.RakNet.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.AcknowledgePacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.DataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.EncapsulatedPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.Packet.PacketFactory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.Packet.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ACK.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ACK.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ADVERTISE_SYSTEM.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ADVERTISE_SYSTEM.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_CONNECT_DataPacket.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_CONNECT_DataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_DISCONNECT_DataPacket.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_DISCONNECT_DataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_HANDSHAKE_DataPacket.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_HANDSHAKE_DataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_0.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_0.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_1.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_1.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_2.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_2.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_3.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_3.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_4.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_4.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_5.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_5.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_6.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_6.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_7.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_7.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_8.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_8.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_9.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_9.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_A.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_A.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_B.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_B.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_C.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_C.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_D.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_D.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_E.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_E.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_F.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_F.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.NACK.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.NACK.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_1.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_1.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_2.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_2.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_1.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_1.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_2.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_2.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PING_DataPacket.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PING_DataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PONG_DataPacket.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PONG_DataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.SERVER_HANDSHAKE_DataPacket.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.SERVER_HANDSHAKE_DataPacket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING_OPEN_CONNECTIONS.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING_OPEN_CONNECTIONS.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PONG.Factory.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PONG.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.RakNetServer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.ServerHandler.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.ServerInstance.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.Session.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.SessionManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.UDPServerSocket.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.AbstractResourcePack.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ResourcePack.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ResourcePackManager.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ZippedResourcePack.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncPool.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncTask.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncWorker.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.BlockUpdateScheduler.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.FileWriteTask.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.NukkitRunnable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.PluginTask.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.ServerScheduler.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.Task.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.scheduler.TaskHandler.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.timings.JsonUtil.JSONPair.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.timings.JsonUtil.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.timings.LevelTimings.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.BannerPattern.Type.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.BannerPattern.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Binary.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.BinaryStream.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockColor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockIterator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockUpdateEntry.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ChunkException.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ClientChainData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Config.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ConfigSection.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.DefaultPlayerDataSerializer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.DummyBossBar.Builder.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.DummyBossBar.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.DyeColor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.EventException.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Faceable.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Hash.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.HastebinUtility.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.IterableThreadLocal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.LevelException.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.LogLevel.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Logger.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.LoginChainData.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.MainLogger.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.MinecartType.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.PlayerDataSerializer.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.PluginException.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.Orientation.State.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.Orientation.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.SerializedImage.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ServerException.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ServerKiller.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.Path.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.Skip.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.SkinAnimation.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.TerracottaColor.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.TextFormat.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadCache.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadStore.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadedLogger.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Utils.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.VarInt.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Watchdog.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.Zlib.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibOriginal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibSingleThreadLowMem.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibThreadLocal.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.bugreport.BugReportGenerator.d.ts create mode 100644 packages/types/dist/typings/nukkit/cn.nukkit.utils.bugreport.ExceptionHandler.d.ts create mode 100644 packages/types/dist/typings/nukkit/index.d.ts diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.Achievement.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.Achievement.d.ts new file mode 100644 index 00000000..90de758f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.Achievement.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + // @ts-ignore + class Achievement extends java.lang.Object { + // @ts-ignore + constructor(message: string, requires: string) + // @ts-ignore + public static achievements: java.util.HashMap; + // @ts-ignore + public message: string; + // @ts-ignore + public requires: java.lang.String[]; + // @ts-ignore + public static broadcast(player: cn.nukkit.Player, achievementId: string): boolean; + // @ts-ignore + public static add(name: string, achievement: cn.nukkit.Achievement): boolean; + // @ts-ignore + public getMessage(): string; + // @ts-ignore + public broadcast(player: cn.nukkit.Player): void; + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.AdventureSettings.Type.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.AdventureSettings.Type.d.ts new file mode 100644 index 00000000..abb7fba8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.AdventureSettings.Type.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace AdventureSettings { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static WORLD_IMMUTABLE: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static AUTO_JUMP: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static ALLOW_FLIGHT: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static NO_CLIP: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static WORLD_BUILDER: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static FLYING: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static MUTED: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static BUILD_AND_MINE: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static DOORS_AND_SWITCHED: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static OPEN_CONTAINERS: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static ATTACK_PLAYERS: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static ATTACK_MOBS: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static OPERATOR: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static TELEPORT: cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public static values(): cn.nukkit.AdventureSettings.Type[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.AdventureSettings.Type; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getDefaultValue(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.AdventureSettings.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.AdventureSettings.d.ts new file mode 100644 index 00000000..ee559af7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.AdventureSettings.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + // @ts-ignore + class AdventureSettings extends java.lang.Object { + // @ts-ignore + constructor(player: cn.nukkit.Player) + // @ts-ignore + public static PERMISSION_NORMAL: number; + // @ts-ignore + public static PERMISSION_OPERATOR: number; + // @ts-ignore + public static PERMISSION_HOST: number; + // @ts-ignore + public static PERMISSION_AUTOMATION: number; + // @ts-ignore + public static PERMISSION_ADMIN: number; + // @ts-ignore + public clone(newPlayer: cn.nukkit.Player): cn.nukkit.AdventureSettings; + // @ts-ignore + public set(type: cn.nukkit.AdventureSettings.Type, value: boolean): cn.nukkit.AdventureSettings; + // @ts-ignore + public get(type: cn.nukkit.AdventureSettings.Type): boolean; + // @ts-ignore + public update(): void; + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.IPlayer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.IPlayer.d.ts new file mode 100644 index 00000000..06bc5db3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.IPlayer.d.ts @@ -0,0 +1,82 @@ +declare namespace cn { + namespace nukkit { + // @ts-ignore + interface IPlayer extends cn.nukkit.permission.ServerOperator, cn.nukkit.metadata.Metadatable { + /** + * 返回这个玩家是否在线。
+ * Returns if this player is online. + */ + // @ts-ignore + isOnline(): boolean; + /** + * 返回这个玩家的名称。
+ * Returns the name of this player. + *

如果是在线的玩家,这个函数只会返回登录名字。如果要返回显示的名字,参见{@link cn.nukkit.Player#getDisplayName}
+ * Notice that this will only return its login name. If you need its display name, turn to + * {@link cn.nukkit.Player#getDisplayName}

+ */ + // @ts-ignore + getName(): string; + // @ts-ignore + getUniqueId(): java.util.UUID; + /** + * 返回这个玩家是否被封禁(ban)。
+ * Returns if this player is banned. + */ + // @ts-ignore + isBanned(): boolean; + /** + * 设置这个玩家是否被封禁(ban)。
+ * Sets this player to be banned or to be pardoned. + */ + // @ts-ignore + setBanned(value: boolean): void; + /** + * 返回这个玩家是否已加入白名单。
+ * Returns if this player is pardoned by whitelist. + */ + // @ts-ignore + isWhitelisted(): boolean; + /** + * 把这个玩家加入白名单,或者取消这个玩家的白名单。
+ * Adds this player to the white list, or removes it from the whitelist. + */ + // @ts-ignore + setWhitelisted(value: boolean): void; + /** + * 得到这个接口的{@code Player}对象。
+ * Returns a {@code Player} object for this interface. + */ + // @ts-ignore + getPlayer(): cn.nukkit.Player; + /** + * 返回玩家所在的服务器。
+ * Returns the server carrying this player. + */ + // @ts-ignore + getServer(): cn.nukkit.Server; + /** + * 得到这个玩家第一次游戏的时间。
+ * Returns the time this player first played in this server. + */ + // @ts-ignore + getFirstPlayed(): java.lang.Long; + /** + * 得到这个玩家上次加入游戏的时间。
+ * Returns the time this player last joined in this server. + */ + // @ts-ignore + getLastPlayed(): java.lang.Long; + /** + * 返回这个玩家以前是否来过服务器。
+ * Returns if this player has played in this server before. + *

如果想得到这个玩家是不是第一次玩,可以使用:
+ * If you want to know if this player is the first time playing in this server, you can use:
+ *

+ *
if(!player.hasPlayerBefore()) {...}
+ */ + // @ts-ignore + hasPlayedBefore(): boolean; + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.InterruptibleThread.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.InterruptibleThread.d.ts new file mode 100644 index 00000000..7a44728d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.InterruptibleThread.d.ts @@ -0,0 +1,7 @@ +declare namespace cn { + namespace nukkit { + // @ts-ignore + interface InterruptibleThread { + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.Nukkit.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.Nukkit.d.ts new file mode 100644 index 00000000..5bdfc128 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.Nukkit.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + // @ts-ignore + class Nukkit extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static GIT_INFO: java.util.Properties; + // @ts-ignore + public static VERSION: string; + // @ts-ignore + public static API_VERSION: string; + // @ts-ignore + public static CODENAME: string; + // @ts-ignore + public static MINECRAFT_VERSION: string; + // @ts-ignore + public static MINECRAFT_VERSION_NETWORK: string; + // @ts-ignore + public static PATH: string; + // @ts-ignore + public static DATA_PATH: string; + // @ts-ignore + public static PLUGIN_PATH: string; + // @ts-ignore + public static START_TIME: number; + // @ts-ignore + public static ANSI: boolean; + // @ts-ignore + public static TITLE: boolean; + // @ts-ignore + public static shortTitle: boolean; + // @ts-ignore + public static DEBUG: number; + // @ts-ignore + public static main(args: string): void; + // @ts-ignore + public static setLogLevel(level: Level): void; + // @ts-ignore + public static getLogLevel(): Level; + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.OfflinePlayer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.OfflinePlayer.d.ts new file mode 100644 index 00000000..951d1642 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.OfflinePlayer.d.ts @@ -0,0 +1,53 @@ +declare namespace cn { + namespace nukkit { + // @ts-ignore + class OfflinePlayer extends java.lang.Object implements cn.nukkit.IPlayer { + /** + * 初始化这个{@code OfflinePlayer}对象。
+ * Initializes the object {@code OfflinePlayer}. + */ + // @ts-ignore + constructor(server: cn.nukkit.Server, uuid: java.util.UUID) + // @ts-ignore + constructor(server: cn.nukkit.Server, name: string) + // @ts-ignore + constructor(server: cn.nukkit.Server, uuid: java.util.UUID, name: string) + // @ts-ignore + public isOnline(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getUniqueId(): java.util.UUID; + // @ts-ignore + public getServer(): cn.nukkit.Server; + // @ts-ignore + public isOp(): boolean; + // @ts-ignore + public setOp(value: boolean): void; + // @ts-ignore + public isBanned(): boolean; + // @ts-ignore + public setBanned(value: boolean): void; + // @ts-ignore + public isWhitelisted(): boolean; + // @ts-ignore + public setWhitelisted(value: boolean): void; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public getFirstPlayed(): java.lang.Long; + // @ts-ignore + public getLastPlayed(): java.lang.Long; + // @ts-ignore + public hasPlayedBefore(): boolean; + // @ts-ignore + public setMetadata(metadataKey: string, newMetadataValue: cn.nukkit.metadata.MetadataValue): void; + // @ts-ignore + public getMetadata(metadataKey: string): java.util.List; + // @ts-ignore + public hasMetadata(metadataKey: string): boolean; + // @ts-ignore + public removeMetadata(metadataKey: string, owningPlugin: cn.nukkit.plugin.Plugin): void; + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.Player.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.Player.d.ts new file mode 100644 index 00000000..0ed1aec6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.Player.d.ts @@ -0,0 +1,731 @@ +declare namespace cn { + namespace nukkit { + // @ts-ignore + class Player extends cn.nukkit.entity.EntityHuman implements cn.nukkit.command.CommandSender, cn.nukkit.inventory.InventoryHolder, cn.nukkit.level.ChunkLoader, cn.nukkit.IPlayer { + // @ts-ignore + constructor(interfaz: cn.nukkit.network.SourceInterface, clientID: java.lang.Long, ip: string, port: number) + // @ts-ignore + public static SURVIVAL: number; + // @ts-ignore + public static CREATIVE: number; + // @ts-ignore + public static ADVENTURE: number; + // @ts-ignore + public static SPECTATOR: number; + // @ts-ignore + public static VIEW: number; + // @ts-ignore + public static SURVIVAL_SLOTS: number; + // @ts-ignore + public static CREATIVE_SLOTS: number; + // @ts-ignore + public static CRAFTING_SMALL: number; + // @ts-ignore + public static CRAFTING_BIG: number; + // @ts-ignore + public static CRAFTING_ANVIL: number; + // @ts-ignore + public static CRAFTING_ENCHANT: number; + // @ts-ignore + public static CRAFTING_BEACON: number; + // @ts-ignore + public static DEFAULT_SPEED: number; + // @ts-ignore + public static MAXIMUM_SPEED: number; + // @ts-ignore + public static PERMISSION_CUSTOM: number; + // @ts-ignore + public static PERMISSION_OPERATOR: number; + // @ts-ignore + public static PERMISSION_MEMBER: number; + // @ts-ignore + public static PERMISSION_VISITOR: number; + // @ts-ignore + public static ANVIL_WINDOW_ID: number; + // @ts-ignore + public static ENCHANT_WINDOW_ID: number; + // @ts-ignore + public static BEACON_WINDOW_ID: number; + // @ts-ignore + protected interfaz: cn.nukkit.network.SourceInterface; + // @ts-ignore + public playedBefore: boolean; + // @ts-ignore + public spawned: boolean; + // @ts-ignore + public loggedIn: boolean; + // @ts-ignore + public gamemode: number; + // @ts-ignore + public lastBreak: number; + // @ts-ignore + protected windowCnt: number; + // @ts-ignore + protected windows: any; + // @ts-ignore + protected windowIndex: any; + // @ts-ignore + protected permanentWindows: java.util.Set; + // @ts-ignore + protected messageCounter: number; + // @ts-ignore + public speed: cn.nukkit.math.Vector3; + // @ts-ignore + public achievements: java.util.HashSet; + // @ts-ignore + public craftingType: number; + // @ts-ignore + protected playerUIInventory: cn.nukkit.inventory.PlayerUIInventory; + // @ts-ignore + protected craftingGrid: cn.nukkit.inventory.CraftingGrid; + // @ts-ignore + protected craftingTransaction: cn.nukkit.inventory.transaction.CraftingTransaction; + // @ts-ignore + public creationTime: number; + // @ts-ignore + protected randomClientId: number; + // @ts-ignore + protected forceMovement: cn.nukkit.math.Vector3; + // @ts-ignore + protected teleportPosition: cn.nukkit.math.Vector3; + // @ts-ignore + protected connected: boolean; + // @ts-ignore + protected ip: string; + // @ts-ignore + protected removeFormat: boolean; + // @ts-ignore + protected port: number; + // @ts-ignore + protected username: string; + // @ts-ignore + protected iusername: string; + // @ts-ignore + protected displayName: string; + // @ts-ignore + protected sleeping: cn.nukkit.math.Vector3; + // @ts-ignore + protected clientID: java.lang.Long; + // @ts-ignore + protected stepHeight: number; + // @ts-ignore + public usedChunks: java.util.Map; + // @ts-ignore + protected chunkLoadCount: number; + // @ts-ignore + protected loadQueue: any; + // @ts-ignore + protected nextChunkOrderRun: number; + // @ts-ignore + protected hiddenPlayers: java.util.Map; + // @ts-ignore + protected newPosition: cn.nukkit.math.Vector3; + // @ts-ignore + protected chunkRadius: number; + // @ts-ignore + protected viewDistance: number; + // @ts-ignore + protected chunksPerTick: number; + // @ts-ignore + protected spawnThreshold: number; + // @ts-ignore + protected spawnPosition: cn.nukkit.level.Position; + // @ts-ignore + protected inAirTicks: number; + // @ts-ignore + protected startAirTicks: number; + // @ts-ignore + protected adventureSettings: cn.nukkit.AdventureSettings; + // @ts-ignore + protected checkMovement: boolean; + // @ts-ignore + protected foodData: cn.nukkit.PlayerFood; + // @ts-ignore + protected enableClientCommand: boolean; + // @ts-ignore + protected lastEnderPearl: number; + // @ts-ignore + protected lastChorusFruitTeleport: number; + // @ts-ignore + public breakingBlock: cn.nukkit.block.Block; + // @ts-ignore + public pickedXPOrb: number; + // @ts-ignore + protected formWindowCount: number; + // @ts-ignore + protected formWindows: java.util.Map; + // @ts-ignore + protected serverSettings: java.util.Map; + // @ts-ignore + protected dummyBossBars: java.util.Map; + // @ts-ignore + protected shouldLogin: boolean; + // @ts-ignore + public fishing: cn.nukkit.entity.item.EntityFishingHook; + // @ts-ignore + public lastSkinChange: number; + // @ts-ignore + protected lastRightClickTime: number; + // @ts-ignore + protected lastRightClickPos: cn.nukkit.math.Vector3; + // @ts-ignore + public getStartActionTick(): number; + // @ts-ignore + public startAction(): void; + // @ts-ignore + public stopAction(): void; + // @ts-ignore + public getLastEnderPearlThrowingTick(): number; + // @ts-ignore + public onThrowEnderPearl(): void; + // @ts-ignore + public getLastChorusFruitTeleport(): number; + // @ts-ignore + public onChorusFruitTeleport(): void; + // @ts-ignore + public getViewingEnderChest(): cn.nukkit.block.BlockEnderChest; + // @ts-ignore + public setViewingEnderChest(chest: cn.nukkit.block.BlockEnderChest): void; + // @ts-ignore + public getLeaveMessage(): cn.nukkit.lang.TranslationContainer; + // @ts-ignore + public getClientSecret(): string; + /** + * This might disappear in the future. + * Please use getUniqueId() instead (IP + clientId + name combo, in the future it'll change to real UUID for online auth) + */ + // @ts-ignore + public getClientId(): java.lang.Long; + // @ts-ignore + public isBanned(): boolean; + // @ts-ignore + public setBanned(value: boolean): void; + // @ts-ignore + public isWhitelisted(): boolean; + // @ts-ignore + public setWhitelisted(value: boolean): void; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public getFirstPlayed(): java.lang.Long; + // @ts-ignore + public getLastPlayed(): java.lang.Long; + // @ts-ignore + public hasPlayedBefore(): boolean; + // @ts-ignore + public getAdventureSettings(): cn.nukkit.AdventureSettings; + // @ts-ignore + public setAdventureSettings(adventureSettings: cn.nukkit.AdventureSettings): void; + // @ts-ignore + public resetInAirTicks(): void; + // @ts-ignore + public setAllowFlight(value: boolean): void; + // @ts-ignore + public getAllowFlight(): boolean; + // @ts-ignore + public setAllowModifyWorld(value: boolean): void; + // @ts-ignore + public setAllowInteract(value: boolean): void; + // @ts-ignore + public setAllowInteract(value: boolean, containers: boolean): void; + // @ts-ignore + public setAutoJump(value: boolean): void; + // @ts-ignore + public hasAutoJump(): boolean; + // @ts-ignore + public spawnTo(player: cn.nukkit.Player): void; + // @ts-ignore + public getServer(): cn.nukkit.Server; + // @ts-ignore + public getRemoveFormat(): boolean; + // @ts-ignore + public setRemoveFormat(): void; + // @ts-ignore + public setRemoveFormat(remove: boolean): void; + // @ts-ignore + public canSee(player: cn.nukkit.Player): boolean; + // @ts-ignore + public hidePlayer(player: cn.nukkit.Player): void; + // @ts-ignore + public showPlayer(player: cn.nukkit.Player): void; + // @ts-ignore + public canCollideWith(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public resetFallDistance(): void; + // @ts-ignore + public isOnline(): boolean; + // @ts-ignore + public isOp(): boolean; + // @ts-ignore + public setOp(value: boolean): void; + // @ts-ignore + public isPermissionSet(name: string): boolean; + // @ts-ignore + public isPermissionSet(permission: cn.nukkit.permission.Permission): boolean; + // @ts-ignore + public hasPermission(name: string): boolean; + // @ts-ignore + public hasPermission(permission: cn.nukkit.permission.Permission): boolean; + // @ts-ignore + public addAttachment(plugin: cn.nukkit.plugin.Plugin): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public addAttachment(plugin: cn.nukkit.plugin.Plugin, name: string): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public addAttachment(plugin: cn.nukkit.plugin.Plugin, name: string, value: java.lang.Boolean): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public removeAttachment(attachment: cn.nukkit.permission.PermissionAttachment): void; + // @ts-ignore + public recalculatePermissions(): void; + // @ts-ignore + public isEnableClientCommand(): boolean; + // @ts-ignore + public setEnableClientCommand(enable: boolean): void; + // @ts-ignore + public sendCommandData(): void; + // @ts-ignore + public getEffectivePermissions(): java.util.Map; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public isPlayer(): boolean; + // @ts-ignore + public removeAchievement(achievementId: string): void; + // @ts-ignore + public hasAchievement(achievementId: string): boolean; + // @ts-ignore + public isConnected(): boolean; + // @ts-ignore + public getDisplayName(): string; + // @ts-ignore + public setDisplayName(displayName: string): void; + // @ts-ignore + public setSkin(skin: cn.nukkit.entity.data.Skin): void; + // @ts-ignore + public getAddress(): string; + // @ts-ignore + public getPort(): number; + // @ts-ignore + public getNextPosition(): cn.nukkit.level.Position; + // @ts-ignore + public isSleeping(): boolean; + // @ts-ignore + public getInAirTicks(): number; + /** + * Returns whether the player is currently using an item (right-click and hold). + */ + // @ts-ignore + public isUsingItem(): boolean; + // @ts-ignore + public setUsingItem(value: boolean): void; + // @ts-ignore + public getButtonText(): string; + // @ts-ignore + public setButtonText(text: string): void; + // @ts-ignore + public unloadChunk(x: number, z: number): void; + // @ts-ignore + public unloadChunk(x: number, z: number, level: cn.nukkit.level.Level): void; + // @ts-ignore + public getSpawn(): cn.nukkit.level.Position; + // @ts-ignore + public sendChunk(x: number, z: number, packet: cn.nukkit.network.protocol.DataPacket): void; + // @ts-ignore + public sendChunk(x: number, z: number, subChunkCount: number, payload: number): void; + // @ts-ignore + protected sendNextChunk(): void; + // @ts-ignore + protected doFirstSpawn(): void; + // @ts-ignore + protected orderChunks(): boolean; + // @ts-ignore + public batchDataPacket(packet: cn.nukkit.network.protocol.DataPacket): boolean; + /** + * 0 is true + * -1 is false + * other is identifer + */ + // @ts-ignore + public dataPacket(packet: cn.nukkit.network.protocol.DataPacket): boolean; + // @ts-ignore + public dataPacket(packet: cn.nukkit.network.protocol.DataPacket, needACK: boolean): number; + /** + * 0 is true + * -1 is false + * other is identifer + */ + // @ts-ignore + public directDataPacket(packet: cn.nukkit.network.protocol.DataPacket): boolean; + // @ts-ignore + public directDataPacket(packet: cn.nukkit.network.protocol.DataPacket, needACK: boolean): number; + // @ts-ignore + public getPing(): number; + // @ts-ignore + public sleepOn(pos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public setSpawn(pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + public stopSleep(): void; + // @ts-ignore + public awardAchievement(achievementId: string): boolean; + // @ts-ignore + public getGamemode(): number; + // @ts-ignore + public setGamemode(gamemode: number): boolean; + // @ts-ignore + public setGamemode(gamemode: number, clientSide: boolean): boolean; + // @ts-ignore + public setGamemode(gamemode: number, clientSide: boolean, newSettings: cn.nukkit.AdventureSettings): boolean; + // @ts-ignore + public sendSettings(): void; + // @ts-ignore + public isSurvival(): boolean; + // @ts-ignore + public isCreative(): boolean; + // @ts-ignore + public isSpectator(): boolean; + // @ts-ignore + public isAdventure(): boolean; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public setDataProperty(data: cn.nukkit.entity.data.EntityData): boolean; + // @ts-ignore + public setDataProperty(data: cn.nukkit.entity.data.EntityData, send: boolean): boolean; + // @ts-ignore + protected checkGroundState(movX: number, movY: number, movZ: number, dx: number, dy: number, dz: number): void; + // @ts-ignore + protected checkBlockCollision(): void; + // @ts-ignore + protected checkNearEntities(): void; + // @ts-ignore + protected processMovement(tickDiff: number): void; + // @ts-ignore + public addMovement(x: number, y: number, z: number, yaw: number, pitch: number, headYaw: number): void; + // @ts-ignore + public setMotion(motion: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public sendAttributes(): void; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public checkInteractNearby(): void; + /** + * Returns the Entity the player is looking at currently + */ + // @ts-ignore + public getEntityPlayerLookingAt(maxDistance: number): cn.nukkit.entity.EntityInteractable; + // @ts-ignore + public checkNetwork(): void; + // @ts-ignore + public canInteract(pos: cn.nukkit.math.Vector3, maxDistance: number): boolean; + // @ts-ignore + public canInteract(pos: cn.nukkit.math.Vector3, maxDistance: number, maxDiff: number): boolean; + // @ts-ignore + protected processLogin(): void; + // @ts-ignore + protected completeLoginSequence(): void; + // @ts-ignore + public handleDataPacket(packet: cn.nukkit.network.protocol.DataPacket): void; + /** + * Sends a chat message as this player. If the message begins with a / (forward-slash) it will be treated + * as a command. + */ + // @ts-ignore + public chat(message: string): boolean; + // @ts-ignore + public kick(): boolean; + // @ts-ignore + public kick(reason: string, isAdmin: boolean): boolean; + // @ts-ignore + public kick(reason: string): boolean; + // @ts-ignore + public kick(reason: cn.nukkit.event.player.PlayerKickEvent.Reason): boolean; + // @ts-ignore + public kick(reason: cn.nukkit.event.player.PlayerKickEvent.Reason, reasonString: string): boolean; + // @ts-ignore + public kick(reason: cn.nukkit.event.player.PlayerKickEvent.Reason, isAdmin: boolean): boolean; + // @ts-ignore + public kick(reason: cn.nukkit.event.player.PlayerKickEvent.Reason, reasonString: string, isAdmin: boolean): boolean; + // @ts-ignore + public setViewDistance(distance: number): void; + // @ts-ignore + public getViewDistance(): number; + // @ts-ignore + public sendMessage(message: string): void; + // @ts-ignore + public sendMessage(message: cn.nukkit.lang.TextContainer): void; + // @ts-ignore + public sendTranslation(message: string): void; + // @ts-ignore + public sendTranslation(message: string, parameters: string): void; + // @ts-ignore + public sendChat(message: string): void; + // @ts-ignore + public sendChat(source: string, message: string): void; + // @ts-ignore + public sendPopup(message: string): void; + // @ts-ignore + public sendPopup(message: string, subtitle: string): void; + // @ts-ignore + public sendTip(message: string): void; + // @ts-ignore + public clearTitle(): void; + /** + * Resets both title animation times and subtitle for the next shown title + */ + // @ts-ignore + public resetTitleSettings(): void; + // @ts-ignore + public setSubtitle(subtitle: string): void; + // @ts-ignore + public setTitleAnimationTimes(fadein: number, duration: number, fadeout: number): void; + // @ts-ignore + public sendTitle(title: string): void; + // @ts-ignore + public sendTitle(title: string, subtitle: string): void; + // @ts-ignore + public sendTitle(title: string, subtitle: string, fadeIn: number, stay: number, fadeOut: number): void; + // @ts-ignore + public sendActionBar(title: string): void; + // @ts-ignore + public sendActionBar(title: string, fadein: number, duration: number, fadeout: number): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public close(message: string): void; + // @ts-ignore + public close(message: string, reason: string): void; + // @ts-ignore + public close(message: string, reason: string, notify: boolean): void; + // @ts-ignore + public close(message: cn.nukkit.lang.TextContainer): void; + // @ts-ignore + public close(message: cn.nukkit.lang.TextContainer, reason: string): void; + // @ts-ignore + public close(message: cn.nukkit.lang.TextContainer, reason: string, notify: boolean): void; + // @ts-ignore + public save(): void; + // @ts-ignore + public save(async: boolean): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public kill(): void; + // @ts-ignore + protected respawn(): void; + // @ts-ignore + public setHealth(health: number): void; + // @ts-ignore + public setMaxHealth(maxHealth: number): void; + // @ts-ignore + public getExperience(): number; + // @ts-ignore + public getExperienceLevel(): number; + // @ts-ignore + public addExperience(add: number): void; + // @ts-ignore + public static calculateRequireExperience(level: number): number; + // @ts-ignore + public setExperience(exp: number): void; + // @ts-ignore + public setExperience(exp: number, level: number): void; + // @ts-ignore + public sendExperience(): void; + // @ts-ignore + public sendExperience(exp: number): void; + // @ts-ignore + public sendExperienceLevel(): void; + // @ts-ignore + public sendExperienceLevel(level: number): void; + // @ts-ignore + public setAttribute(attribute: cn.nukkit.entity.Attribute): void; + // @ts-ignore + public setMovementSpeed(speed: number): void; + // @ts-ignore + public setMovementSpeed(speed: number, send: boolean): void; + // @ts-ignore + public getKiller(): cn.nukkit.entity.Entity; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + /** + * Drops an item on the ground in front of the player. Returns if the item drop was successful. + */ + // @ts-ignore + public dropItem(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public sendPosition(pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + public sendPosition(pos: cn.nukkit.math.Vector3, yaw: number): void; + // @ts-ignore + public sendPosition(pos: cn.nukkit.math.Vector3, yaw: number, pitch: number): void; + // @ts-ignore + public sendPosition(pos: cn.nukkit.math.Vector3, yaw: number, pitch: number, mode: number): void; + // @ts-ignore + public sendPosition(pos: cn.nukkit.math.Vector3, yaw: number, pitch: number, mode: number, targets: cn.nukkit.Player): void; + // @ts-ignore + protected checkChunks(): void; + // @ts-ignore + protected checkTeleportPosition(): boolean; + // @ts-ignore + protected sendPlayStatus(status: number): void; + // @ts-ignore + protected sendPlayStatus(status: number, immediate: boolean): void; + // @ts-ignore + public teleport(location: cn.nukkit.level.Location, cause: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean; + // @ts-ignore + protected forceSendEmptyChunks(): void; + // @ts-ignore + public teleportImmediate(location: cn.nukkit.level.Location): void; + // @ts-ignore + public teleportImmediate(location: cn.nukkit.level.Location, cause: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause): void; + /** + * Shows a new FormWindow to the player + * You can find out FormWindow result by listening to PlayerFormRespondedEvent + */ + // @ts-ignore + public showFormWindow(window: cn.nukkit.form.window.FormWindow): number; + /** + * Shows a new FormWindow to the player + * You can find out FormWindow result by listening to PlayerFormRespondedEvent + */ + // @ts-ignore + public showFormWindow(window: cn.nukkit.form.window.FormWindow, id: number): number; + /** + * Shows a new setting page in game settings + * You can find out settings result by listening to PlayerFormRespondedEvent + */ + // @ts-ignore + public addServerSettings(window: cn.nukkit.form.window.FormWindow): number; + /** + * Creates and sends a BossBar to the player + */ + // @ts-ignore + public createBossBar(text: string, length: number): number; + /** + * Creates and sends a BossBar to the player + */ + // @ts-ignore + public createBossBar(dummyBossBar: cn.nukkit.utils.DummyBossBar): number; + /** + * Get a DummyBossBar object + */ + // @ts-ignore + public getDummyBossBar(bossBarId: number): cn.nukkit.utils.DummyBossBar; + /** + * Get all DummyBossBar objects + */ + // @ts-ignore + public getDummyBossBars(): java.util.Map; + /** + * Updates a BossBar + */ + // @ts-ignore + public updateBossBar(text: string, length: number, bossBarId: number): void; + /** + * Removes a BossBar + */ + // @ts-ignore + public removeBossBar(bossBarId: number): void; + // @ts-ignore + public getWindowId(inventory: cn.nukkit.inventory.Inventory): number; + // @ts-ignore + public getWindowById(id: number): cn.nukkit.inventory.Inventory; + // @ts-ignore + public addWindow(inventory: cn.nukkit.inventory.Inventory): number; + // @ts-ignore + public addWindow(inventory: cn.nukkit.inventory.Inventory, forceId: java.lang.Integer): number; + // @ts-ignore + public addWindow(inventory: cn.nukkit.inventory.Inventory, forceId: java.lang.Integer, isPermanent: boolean): number; + // @ts-ignore + public getTopWindow(): java.util.Optional; + // @ts-ignore + public removeWindow(inventory: cn.nukkit.inventory.Inventory): void; + // @ts-ignore + public sendAllInventories(): void; + // @ts-ignore + protected addDefaultWindows(): void; + // @ts-ignore + public getUIInventory(): cn.nukkit.inventory.PlayerUIInventory; + // @ts-ignore + public getCursorInventory(): cn.nukkit.inventory.PlayerCursorInventory; + // @ts-ignore + public getCraftingGrid(): cn.nukkit.inventory.CraftingGrid; + // @ts-ignore + public setCraftingGrid(grid: cn.nukkit.inventory.CraftingGrid): void; + // @ts-ignore + public resetCraftingGridType(): void; + // @ts-ignore + public removeAllWindows(): void; + // @ts-ignore + public removeAllWindows(permanent: boolean): void; + // @ts-ignore + public setMetadata(metadataKey: string, newMetadataValue: cn.nukkit.metadata.MetadataValue): void; + // @ts-ignore + public getMetadata(metadataKey: string): java.util.List; + // @ts-ignore + public hasMetadata(metadataKey: string): boolean; + // @ts-ignore + public removeMetadata(metadataKey: string, owningPlugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public onChunkChanged(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public onChunkLoaded(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public onChunkPopulated(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public onChunkUnloaded(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public onBlockChanged(block: cn.nukkit.math.Vector3): void; + // @ts-ignore + public getLoaderId(): number; + // @ts-ignore + public isLoaderActive(): boolean; + // @ts-ignore + public static getChunkCacheFromData(chunkX: number, chunkZ: number, subChunkCount: number, payload: number): cn.nukkit.network.protocol.BatchPacket; + // @ts-ignore + public isFoodEnabled(): boolean; + // @ts-ignore + public setFoodEnabled(foodEnabled: boolean): void; + // @ts-ignore + public getFoodData(): cn.nukkit.PlayerFood; + // @ts-ignore + public switchLevel(level: cn.nukkit.level.Level): boolean; + // @ts-ignore + public setCheckMovement(checkMovement: boolean): void; + // @ts-ignore + public setLocale(locale: java.util.Locale): void; + // @ts-ignore + public getLocale(): java.util.Locale; + // @ts-ignore + public setSprinting(value: boolean): void; + // @ts-ignore + public transfer(address: java.net.InetSocketAddress): void; + // @ts-ignore + public getLoginChainData(): cn.nukkit.utils.LoginChainData; + // @ts-ignore + public pickupEntity(entity: cn.nukkit.entity.Entity, near: boolean): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Notifies an ACK response from the client + */ + // @ts-ignore + public notifyACK(identification: number): void; + // @ts-ignore + public isBreakingBlock(): boolean; + /** + * Show a window of a XBOX account's profile + */ + // @ts-ignore + public showXboxProfile(xuid: string): void; + // @ts-ignore + public startFishing(fishingRod: cn.nukkit.item.Item): void; + // @ts-ignore + public stopFishing(click: boolean): void; + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.PlayerFood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.PlayerFood.d.ts new file mode 100644 index 00000000..eee094c9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.PlayerFood.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + // @ts-ignore + class PlayerFood extends java.lang.Object { + // @ts-ignore + constructor(player: cn.nukkit.Player, foodLevel: number, foodSaturationLevel: number) + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public getLevel(): number; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public setLevel(foodLevel: number): void; + // @ts-ignore + public setLevel(foodLevel: number, saturationLevel: number): void; + // @ts-ignore + public getFoodSaturationLevel(): number; + // @ts-ignore + public setFoodSaturationLevel(fsl: number): void; + // @ts-ignore + public useHunger(): void; + // @ts-ignore + public useHunger(amount: number): void; + // @ts-ignore + public addFoodLevel(food: cn.nukkit.item.food.Food): void; + // @ts-ignore + public addFoodLevel(foodLevel: number, fsl: number): void; + // @ts-ignore + public sendFoodLevel(): void; + // @ts-ignore + public reset(): void; + // @ts-ignore + public sendFoodLevel(foodLevel: number): void; + // @ts-ignore + public update(tickDiff: number): void; + // @ts-ignore + public updateFoodExpLevel(use: number): void; + // @ts-ignore + public setFoodLevel(foodLevel: number): void; + // @ts-ignore + public setFoodLevel(foodLevel: number, saturationLevel: number): void; + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.Server.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.Server.d.ts new file mode 100644 index 00000000..0cfa2dd8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.Server.d.ts @@ -0,0 +1,348 @@ +declare namespace cn { + namespace nukkit { + // @ts-ignore + class Server extends java.lang.Object { + // @ts-ignore + public static BROADCAST_CHANNEL_ADMINISTRATIVE: string; + // @ts-ignore + public static BROADCAST_CHANNEL_USERS: string; + // @ts-ignore + public networkCompressionLevel: number; + // @ts-ignore + public broadcastMessage(message: string): number; + // @ts-ignore + public broadcastMessage(message: cn.nukkit.lang.TextContainer): number; + // @ts-ignore + public broadcastMessage(message: string, recipients: cn.nukkit.command.CommandSender): number; + // @ts-ignore + public broadcastMessage(message: string, recipients: java.util.Collection): number; + // @ts-ignore + public broadcastMessage(message: cn.nukkit.lang.TextContainer, recipients: java.util.Collection): number; + // @ts-ignore + public broadcast(message: string, permissions: string): number; + // @ts-ignore + public broadcast(message: cn.nukkit.lang.TextContainer, permissions: string): number; + // @ts-ignore + public static broadcastPacket(players: java.util.Collection, packet: cn.nukkit.network.protocol.DataPacket): void; + // @ts-ignore + public static broadcastPacket(players: cn.nukkit.Player, packet: cn.nukkit.network.protocol.DataPacket): void; + // @ts-ignore + public batchPackets(players: cn.nukkit.Player, packets: cn.nukkit.network.protocol.DataPacket): void; + // @ts-ignore + public batchPackets(players: cn.nukkit.Player, packets: cn.nukkit.network.protocol.DataPacket, forceSync: boolean): void; + // @ts-ignore + public broadcastPacketsCallback(data: number, identifiers: java.util.List): void; + // @ts-ignore + public enablePlugins(type: cn.nukkit.plugin.PluginLoadOrder): void; + // @ts-ignore + public enablePlugin(plugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public disablePlugins(): void; + // @ts-ignore + public dispatchCommand(sender: cn.nukkit.command.CommandSender, commandLine: string): boolean; + // @ts-ignore + public getConsoleSender(): cn.nukkit.command.ConsoleCommandSender; + // @ts-ignore + public reload(): void; + // @ts-ignore + public shutdown(): void; + // @ts-ignore + public forceShutdown(): void; + // @ts-ignore + public start(): void; + // @ts-ignore + public handlePacket(address: string, port: number, payload: number): void; + // @ts-ignore + public tickProcessor(): void; + // @ts-ignore + public onPlayerCompleteLoginSequence(player: cn.nukkit.Player): void; + // @ts-ignore + public onPlayerLogin(player: cn.nukkit.Player): void; + // @ts-ignore + public addPlayer(identifier: string, player: cn.nukkit.Player): void; + // @ts-ignore + public addOnlinePlayer(player: cn.nukkit.Player): void; + // @ts-ignore + public removeOnlinePlayer(player: cn.nukkit.Player): void; + // @ts-ignore + public updatePlayerListData(uuid: java.util.UUID, entityId: number, name: string, skin: cn.nukkit.entity.data.Skin): void; + // @ts-ignore + public updatePlayerListData(uuid: java.util.UUID, entityId: number, name: string, skin: cn.nukkit.entity.data.Skin, xboxUserId: string): void; + // @ts-ignore + public updatePlayerListData(uuid: java.util.UUID, entityId: number, name: string, skin: cn.nukkit.entity.data.Skin, players: cn.nukkit.Player): void; + // @ts-ignore + public updatePlayerListData(uuid: java.util.UUID, entityId: number, name: string, skin: cn.nukkit.entity.data.Skin, xboxUserId: string, players: cn.nukkit.Player): void; + // @ts-ignore + public updatePlayerListData(uuid: java.util.UUID, entityId: number, name: string, skin: cn.nukkit.entity.data.Skin, xboxUserId: string, players: java.util.Collection): void; + // @ts-ignore + public removePlayerListData(uuid: java.util.UUID): void; + // @ts-ignore + public removePlayerListData(uuid: java.util.UUID, players: cn.nukkit.Player): void; + // @ts-ignore + public removePlayerListData(uuid: java.util.UUID, players: java.util.Collection): void; + // @ts-ignore + public sendFullPlayerListData(player: cn.nukkit.Player): void; + // @ts-ignore + public sendRecipeList(player: cn.nukkit.Player): void; + // @ts-ignore + public doAutoSave(): void; + // @ts-ignore + public getNextTick(): number; + // @ts-ignore + public titleTick(): void; + // @ts-ignore + public getQueryInformation(): cn.nukkit.event.server.QueryRegenerateEvent; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isRunning(): boolean; + // @ts-ignore + public getNukkitVersion(): string; + // @ts-ignore + public getCodename(): string; + // @ts-ignore + public getVersion(): string; + // @ts-ignore + public getApiVersion(): string; + // @ts-ignore + public getFilePath(): string; + // @ts-ignore + public getDataPath(): string; + // @ts-ignore + public getPluginPath(): string; + // @ts-ignore + public getMaxPlayers(): number; + // @ts-ignore + public setMaxPlayers(maxPlayers: number): void; + // @ts-ignore + public getPort(): number; + // @ts-ignore + public getViewDistance(): number; + // @ts-ignore + public getIp(): string; + // @ts-ignore + public getServerUniqueId(): java.util.UUID; + // @ts-ignore + public getAutoSave(): boolean; + // @ts-ignore + public setAutoSave(autoSave: boolean): void; + // @ts-ignore + public getLevelType(): string; + // @ts-ignore + public getGenerateStructures(): boolean; + // @ts-ignore + public getGamemode(): number; + // @ts-ignore + public getForceGamemode(): boolean; + // @ts-ignore + public static getGamemodeString(mode: number): string; + // @ts-ignore + public static getGamemodeString(mode: number, direct: boolean): string; + // @ts-ignore + public static getGamemodeFromString(str: string): number; + // @ts-ignore + public static getDifficultyFromString(str: string): number; + // @ts-ignore + public getDifficulty(): number; + // @ts-ignore + public hasWhitelist(): boolean; + // @ts-ignore + public getSpawnRadius(): number; + // @ts-ignore + public getAllowFlight(): boolean; + // @ts-ignore + public isHardcore(): boolean; + // @ts-ignore + public getDefaultGamemode(): number; + // @ts-ignore + public getMotd(): string; + // @ts-ignore + public getSubMotd(): string; + // @ts-ignore + public getForceResources(): boolean; + // @ts-ignore + public getLogger(): cn.nukkit.utils.MainLogger; + // @ts-ignore + public getEntityMetadata(): cn.nukkit.metadata.EntityMetadataStore; + // @ts-ignore + public getPlayerMetadata(): cn.nukkit.metadata.PlayerMetadataStore; + // @ts-ignore + public getLevelMetadata(): cn.nukkit.metadata.LevelMetadataStore; + // @ts-ignore + public getPluginManager(): cn.nukkit.plugin.PluginManager; + // @ts-ignore + public getCraftingManager(): cn.nukkit.inventory.CraftingManager; + // @ts-ignore + public getResourcePackManager(): cn.nukkit.resourcepacks.ResourcePackManager; + // @ts-ignore + public getScheduler(): cn.nukkit.scheduler.ServerScheduler; + // @ts-ignore + public getTick(): number; + // @ts-ignore + public getTicksPerSecond(): number; + // @ts-ignore + public getTicksPerSecondAverage(): number; + // @ts-ignore + public getTickUsage(): number; + // @ts-ignore + public getTickUsageAverage(): number; + // @ts-ignore + public getCommandMap(): cn.nukkit.command.SimpleCommandMap; + // @ts-ignore + public getOnlinePlayers(): java.util.Map; + // @ts-ignore + public addRecipe(recipe: cn.nukkit.inventory.Recipe): void; + // @ts-ignore + public getPlayer(uuid: java.util.UUID): java.util.Optional; + // @ts-ignore + public lookupName(name: string): java.util.Optional; + // @ts-ignore + public getOfflinePlayer(name: string): cn.nukkit.IPlayer; + // @ts-ignore + public getOfflinePlayer(uuid: java.util.UUID): cn.nukkit.IPlayer; + // @ts-ignore + public getOfflinePlayerData(uuid: java.util.UUID): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getOfflinePlayerData(uuid: java.util.UUID, create: boolean): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getOfflinePlayerData(name: string): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getOfflinePlayerData(name: string, create: boolean): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public saveOfflinePlayerData(uuid: java.util.UUID, tag: cn.nukkit.nbt.tag.CompoundTag): void; + // @ts-ignore + public saveOfflinePlayerData(name: string, tag: cn.nukkit.nbt.tag.CompoundTag): void; + // @ts-ignore + public saveOfflinePlayerData(uuid: java.util.UUID, tag: cn.nukkit.nbt.tag.CompoundTag, async: boolean): void; + // @ts-ignore + public saveOfflinePlayerData(name: string, tag: cn.nukkit.nbt.tag.CompoundTag, async: boolean): void; + // @ts-ignore + public getPlayer(name: string): cn.nukkit.Player; + // @ts-ignore + public getPlayerExact(name: string): cn.nukkit.Player; + // @ts-ignore + public matchPlayer(partialName: string): cn.nukkit.Player[]; + // @ts-ignore + public removePlayer(player: cn.nukkit.Player): void; + // @ts-ignore + public getLevels(): java.util.Map; + // @ts-ignore + public getDefaultLevel(): cn.nukkit.level.Level; + // @ts-ignore + public setDefaultLevel(defaultLevel: cn.nukkit.level.Level): void; + // @ts-ignore + public isLevelLoaded(name: string): boolean; + // @ts-ignore + public getLevel(levelId: number): cn.nukkit.level.Level; + // @ts-ignore + public getLevelByName(name: string): cn.nukkit.level.Level; + // @ts-ignore + public unloadLevel(level: cn.nukkit.level.Level): boolean; + // @ts-ignore + public unloadLevel(level: cn.nukkit.level.Level, forceUnload: boolean): boolean; + // @ts-ignore + public loadLevel(name: string): boolean; + // @ts-ignore + public generateLevel(name: string): boolean; + // @ts-ignore + public generateLevel(name: string, seed: number): boolean; + // @ts-ignore + public generateLevel(name: string, seed: number, generator: java.lang.Class): boolean; + // @ts-ignore + public generateLevel(name: string, seed: number, generator: java.lang.Class, options: java.util.Map): boolean; + // @ts-ignore + public generateLevel(name: string, seed: number, generator: java.lang.Class, options: java.util.Map, provider: java.lang.Class): boolean; + // @ts-ignore + public isLevelGenerated(name: string): boolean; + // @ts-ignore + public getLanguage(): cn.nukkit.lang.BaseLang; + // @ts-ignore + public isLanguageForced(): boolean; + // @ts-ignore + public getNetwork(): cn.nukkit.network.Network; + // @ts-ignore + public getConfig(): cn.nukkit.utils.Config; + // @ts-ignore + public getConfig(variable: string): java.lang.Object; + // @ts-ignore + public getConfig(variable: string, defaultValue: java.lang.Object): java.lang.Object; + // @ts-ignore + public getProperties(): cn.nukkit.utils.Config; + // @ts-ignore + public getProperty(variable: string): java.lang.Object; + // @ts-ignore + public getProperty(variable: string, defaultValue: java.lang.Object): java.lang.Object; + // @ts-ignore + public setPropertyString(variable: string, value: string): void; + // @ts-ignore + public getPropertyString(variable: string): string; + // @ts-ignore + public getPropertyString(variable: string, defaultValue: string): string; + // @ts-ignore + public getPropertyInt(variable: string): number; + // @ts-ignore + public getPropertyInt(variable: string, defaultValue: java.lang.Integer): number; + // @ts-ignore + public setPropertyInt(variable: string, value: number): void; + // @ts-ignore + public getPropertyBoolean(variable: string): boolean; + // @ts-ignore + public getPropertyBoolean(variable: string, defaultValue: java.lang.Object): boolean; + // @ts-ignore + public setPropertyBoolean(variable: string, value: boolean): void; + // @ts-ignore + public getPluginCommand(name: string): cn.nukkit.command.PluginIdentifiableCommand; + // @ts-ignore + public getNameBans(): cn.nukkit.permission.BanList; + // @ts-ignore + public getIPBans(): cn.nukkit.permission.BanList; + // @ts-ignore + public addOp(name: string): void; + // @ts-ignore + public removeOp(name: string): void; + // @ts-ignore + public addWhitelist(name: string): void; + // @ts-ignore + public removeWhitelist(name: string): void; + // @ts-ignore + public isWhitelisted(name: string): boolean; + // @ts-ignore + public isOp(name: string): boolean; + // @ts-ignore + public getWhitelist(): cn.nukkit.utils.Config; + // @ts-ignore + public getOps(): cn.nukkit.utils.Config; + // @ts-ignore + public reloadWhitelist(): void; + // @ts-ignore + public getServiceManager(): cn.nukkit.plugin.service.ServiceManager; + // @ts-ignore + public getCommandAliases(): java.util.Map; + // @ts-ignore + public shouldSavePlayerData(): boolean; + // @ts-ignore + public getPlayerSkinChangeCooldown(): 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 isPrimaryThread(): boolean; + // @ts-ignore + public getPrimaryThread(): java.lang.Thread; + // @ts-ignore + public isNetherAllowed(): boolean; + // @ts-ignore + public getPlayerDataSerializer(): cn.nukkit.utils.PlayerDataSerializer; + // @ts-ignore + public setPlayerDataSerializer(playerDataSerializer: cn.nukkit.utils.PlayerDataSerializer): void; + // @ts-ignore + public static getInstance(): cn.nukkit.Server; + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.api.API.Definition.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.api.API.Definition.d.ts new file mode 100644 index 00000000..94fd0791 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.api.API.Definition.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace api { + namespace API { + // @ts-ignore + class Definition extends java.lang.Enum { + // @ts-ignore + public static INTERNAL: cn.nukkit.api.API.Definition; + // @ts-ignore + public static PLATFORM_NATIVE: cn.nukkit.api.API.Definition; + // @ts-ignore + public static UNIVERSAL: cn.nukkit.api.API.Definition; + // @ts-ignore + public static values(): cn.nukkit.api.API.Definition[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.api.API.Definition; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.api.API.Usage.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.api.API.Usage.d.ts new file mode 100644 index 00000000..fc21d6d6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.api.API.Usage.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace api { + namespace API { + // @ts-ignore + class Usage extends java.lang.Enum { + // @ts-ignore + public static DEPRECATED: cn.nukkit.api.API.Usage; + // @ts-ignore + public static INCUBATING: cn.nukkit.api.API.Usage; + // @ts-ignore + public static BLEEDING: cn.nukkit.api.API.Usage; + // @ts-ignore + public static EXPERIMENTAL: cn.nukkit.api.API.Usage; + // @ts-ignore + public static MAINTAINED: cn.nukkit.api.API.Usage; + // @ts-ignore + public static STABLE: cn.nukkit.api.API.Usage; + // @ts-ignore + public static values(): cn.nukkit.api.API.Usage[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.api.API.Usage; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.api.API.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.api.API.d.ts new file mode 100644 index 00000000..79d02cc3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.api.API.d.ts @@ -0,0 +1,20 @@ +declare namespace cn { + namespace nukkit { + namespace api { + // @ts-ignore + interface API { + /** + * Indicates the level of stability of an API element. + * The stability also describes when to use this API element. + */ + // @ts-ignore + usage(): cn.nukkit.api.API.Usage; + /** + * Indicates definition or the platforms this API element supports. + */ + // @ts-ignore + definition(): cn.nukkit.api.API.Definition; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.Block.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.Block.d.ts new file mode 100644 index 00000000..29e30f70 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.Block.d.ts @@ -0,0 +1,212 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class Block extends cn.nukkit.level.Position implements cn.nukkit.metadata.Metadatable, cn.nukkit.math.AxisAlignedBB, cn.nukkit.block.BlockID { + // @ts-ignore + constructor() + // @ts-ignore + public static list: java.lang.Class[]; + // @ts-ignore + public static fullList: cn.nukkit.block.Block[]; + // @ts-ignore + public static light: number[]; + // @ts-ignore + public static lightFilter: number[]; + // @ts-ignore + public static solid: boolean[]; + // @ts-ignore + public static hardness: number[]; + // @ts-ignore + public static transparent: boolean[]; + // @ts-ignore + public static hasMeta: boolean[]; + // @ts-ignore + public static init(): void; + // @ts-ignore + public static get(id: number): cn.nukkit.block.Block; + // @ts-ignore + public static get(id: number, meta: java.lang.Integer): cn.nukkit.block.Block; + // @ts-ignore + public static get(id: number, meta: java.lang.Integer, pos: cn.nukkit.level.Position): cn.nukkit.block.Block; + // @ts-ignore + public static get(id: number, data: number): cn.nukkit.block.Block; + // @ts-ignore + public static get(fullId: number, level: cn.nukkit.level.Level, x: number, y: number, z: number): cn.nukkit.block.Block; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public tickRate(): number; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getFrictionFactor(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public canBePlaced(): boolean; + // @ts-ignore + public canBeReplaced(): boolean; + // @ts-ignore + public isTransparent(): boolean; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public canBeFlowedInto(): boolean; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public hasComparatorInputOverride(): boolean; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public canBeClimbed(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public abstract getName(): string; + // @ts-ignore + public abstract getId(): number; + /** + * The full id is a combination of the id and data. + */ + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public addVelocityToEntity(entity: cn.nukkit.entity.Entity, vector: cn.nukkit.math.Vector3): void; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public setDamage(meta: java.lang.Integer): void; + // @ts-ignore + public position(v: cn.nukkit.level.Position): void; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getBreakTime(item: cn.nukkit.item.Item, player: cn.nukkit.Player): number; + // @ts-ignore + public getBreakTime(item: cn.nukkit.item.Item): number; + // @ts-ignore + public canBeBrokenWith(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getSide(face: cn.nukkit.math.BlockFace): cn.nukkit.block.Block; + // @ts-ignore + public getSide(face: cn.nukkit.math.BlockFace, step: number): cn.nukkit.block.Block; + // @ts-ignore + public up(): cn.nukkit.block.Block; + // @ts-ignore + public up(step: number): cn.nukkit.block.Block; + // @ts-ignore + public down(): cn.nukkit.block.Block; + // @ts-ignore + public down(step: number): cn.nukkit.block.Block; + // @ts-ignore + public north(): cn.nukkit.block.Block; + // @ts-ignore + public north(step: number): cn.nukkit.block.Block; + // @ts-ignore + public south(): cn.nukkit.block.Block; + // @ts-ignore + public south(step: number): cn.nukkit.block.Block; + // @ts-ignore + public east(): cn.nukkit.block.Block; + // @ts-ignore + public east(step: number): cn.nukkit.block.Block; + // @ts-ignore + public west(): cn.nukkit.block.Block; + // @ts-ignore + public west(step: number): cn.nukkit.block.Block; + // @ts-ignore + public toString(): string; + // @ts-ignore + public collidesWithBB(bb: cn.nukkit.math.AxisAlignedBB): boolean; + // @ts-ignore + public collidesWithBB(bb: cn.nukkit.math.AxisAlignedBB, collisionBB: boolean): boolean; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public getBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getCollisionBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + protected recalculateCollisionBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public calculateIntercept(pos1: cn.nukkit.math.Vector3, pos2: cn.nukkit.math.Vector3): cn.nukkit.level.MovingObjectPosition; + // @ts-ignore + public getSaveId(): string; + // @ts-ignore + public setMetadata(metadataKey: string, newMetadataValue: cn.nukkit.metadata.MetadataValue): void; + // @ts-ignore + public getMetadata(metadataKey: string): java.util.List; + // @ts-ignore + public hasMetadata(metadataKey: string): boolean; + // @ts-ignore + public removeMetadata(metadataKey: string, owningPlugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public clone(): cn.nukkit.block.Block; + // @ts-ignore + public getWeakPower(face: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public isPowerSource(): boolean; + // @ts-ignore + public getLocationHash(): string; + // @ts-ignore + public getDropExp(): number; + // @ts-ignore + public isNormalBlock(): boolean; + // @ts-ignore + public static equals(b1: cn.nukkit.block.Block, b2: cn.nukkit.block.Block): boolean; + // @ts-ignore + public static equals(b1: cn.nukkit.block.Block, b2: cn.nukkit.block.Block, checkDamage: boolean): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockAir.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockAir.d.ts new file mode 100644 index 00000000..927420a9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockAir.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockAir extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public canBeFlowedInto(): boolean; + // @ts-ignore + public canBePlaced(): boolean; + // @ts-ignore + public canBeReplaced(): boolean; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public getBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockAnvil.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockAnvil.d.ts new file mode 100644 index 00000000..14ca0b45 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockAnvil.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockAnvil extends cn.nukkit.block.BlockFallable implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public isTransparent(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBanner.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBanner.d.ts new file mode 100644 index 00000000..a82387fd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBanner.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBanner extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBeacon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBeacon.d.ts new file mode 100644 index 00000000..61ac38be --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBeacon.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBeacon extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBed.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBed.d.ts new file mode 100644 index 00000000..2aef91df --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBed.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBed extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBedrock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBedrock.d.ts new file mode 100644 index 00000000..1d98cec8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBedrock.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBedrock extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBedrockInvisible.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBedrockInvisible.d.ts new file mode 100644 index 00000000..ce42c7e1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBedrockInvisible.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBedrockInvisible extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBeetroot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBeetroot.d.ts new file mode 100644 index 00000000..67a07677 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBeetroot.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBeetroot extends cn.nukkit.block.BlockCrops { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBone.d.ts new file mode 100644 index 00000000..ef648d9b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBone.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBone extends cn.nukkit.block.BlockSolidMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBookshelf.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBookshelf.d.ts new file mode 100644 index 00000000..2a25c195 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBookshelf.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBookshelf extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBrewingStand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBrewingStand.d.ts new file mode 100644 index 00000000..0d043b94 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBrewingStand.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBrewingStand extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public hasComparatorInputOverride(): boolean; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricks.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricks.d.ts new file mode 100644 index 00000000..1e5af6cf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricks.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBricks extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksEndStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksEndStone.d.ts new file mode 100644 index 00000000..35f0c4c2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksEndStone.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBricksEndStone extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksNether.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksNether.d.ts new file mode 100644 index 00000000..17556b86 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksNether.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBricksNether extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksRedNether.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksRedNether.d.ts new file mode 100644 index 00000000..32267450 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksRedNether.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBricksRedNether extends cn.nukkit.block.BlockNetherBrick { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksStone.d.ts new file mode 100644 index 00000000..f0f927ba --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockBricksStone.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockBricksStone extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static NORMAL: number; + // @ts-ignore + public static MOSSY: number; + // @ts-ignore + public static CRACKED: number; + // @ts-ignore + public static CHISELED: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButton.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButton.d.ts new file mode 100644 index 00000000..ef6c5f62 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButton.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockButton extends cn.nukkit.block.BlockFlowable implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public isActivated(): boolean; + // @ts-ignore + public isPowerSource(): boolean; + // @ts-ignore + public getWeakPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButtonStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButtonStone.d.ts new file mode 100644 index 00000000..d07dfc67 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButtonStone.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockButtonStone extends cn.nukkit.block.BlockButton { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButtonWooden.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButtonWooden.d.ts new file mode 100644 index 00000000..74859507 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockButtonWooden.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockButtonWooden extends cn.nukkit.block.BlockButton { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCactus.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCactus.d.ts new file mode 100644 index 00000000..994656de --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCactus.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCactus extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + protected recalculateCollisionBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCake.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCake.d.ts new file mode 100644 index 00000000..a129ce93 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCake.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCake extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public hasComparatorInputOverride(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCarpet.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCarpet.d.ts new file mode 100644 index 00000000..ed52228a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCarpet.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCarpet extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor(dyeColor: cn.nukkit.utils.DyeColor) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCarrot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCarrot.d.ts new file mode 100644 index 00000000..0603e093 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCarrot.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCarrot extends cn.nukkit.block.BlockCrops { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCauldron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCauldron.d.ts new file mode 100644 index 00000000..daf265fa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCauldron.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCauldron extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public isFull(): boolean; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + protected replaceBucket(oldBucket: cn.nukkit.item.Item, player: cn.nukkit.Player, newBucket: cn.nukkit.item.Item): void; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public hasComparatorInputOverride(): boolean; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChest.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChest.d.ts new file mode 100644 index 00000000..870bf256 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChest.d.ts @@ -0,0 +1,53 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockChest extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public hasComparatorInputOverride(): boolean; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChorusFlower.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChorusFlower.d.ts new file mode 100644 index 00000000..1e241c18 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChorusFlower.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockChorusFlower extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChorusPlant.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChorusPlant.d.ts new file mode 100644 index 00000000..2ae465e2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockChorusPlant.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockChorusPlant extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockClay.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockClay.d.ts new file mode 100644 index 00000000..554c272e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockClay.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockClay extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCoal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCoal.d.ts new file mode 100644 index 00000000..843b95e1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCoal.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCoal extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCobblestone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCobblestone.d.ts new file mode 100644 index 00000000..9e70eaeb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCobblestone.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCobblestone extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCobweb.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCobweb.d.ts new file mode 100644 index 00000000..24b6533f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCobweb.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCobweb extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCocoa.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCocoa.d.ts new file mode 100644 index 00000000..63c32d17 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCocoa.d.ts @@ -0,0 +1,61 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCocoa extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + protected static EAST: cn.nukkit.math.AxisAlignedBB[]; + // @ts-ignore + protected static WEST: cn.nukkit.math.AxisAlignedBB[]; + // @ts-ignore + protected static NORTH: cn.nukkit.math.AxisAlignedBB[]; + // @ts-ignore + protected static SOUTH: cn.nukkit.math.AxisAlignedBB[]; + // @ts-ignore + protected static ALL: cn.nukkit.math.AxisAlignedBB[]; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockConcrete.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockConcrete.d.ts new file mode 100644 index 00000000..f5fe5130 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockConcrete.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockConcrete extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockConcretePowder.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockConcretePowder.d.ts new file mode 100644 index 00000000..21114e53 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockConcretePowder.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockConcretePowder extends cn.nukkit.block.BlockFallable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, b: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCraftingTable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCraftingTable.d.ts new file mode 100644 index 00000000..80d0dac7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCraftingTable.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockCraftingTable extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCrops.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCrops.d.ts new file mode 100644 index 00000000..3a4ae51e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockCrops.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockCrops extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDandelion.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDandelion.d.ts new file mode 100644 index 00000000..91945d9a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDandelion.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDandelion extends cn.nukkit.block.BlockFlower { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + protected getUncommonFlower(): cn.nukkit.block.Block; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDaylightDetector.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDaylightDetector.d.ts new file mode 100644 index 00000000..6a59f063 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDaylightDetector.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDaylightDetector extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + protected invertDetect(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDaylightDetectorInverted.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDaylightDetectorInverted.d.ts new file mode 100644 index 00000000..a9fed43f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDaylightDetectorInverted.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDaylightDetectorInverted extends cn.nukkit.block.BlockDaylightDetector { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + protected invertDetect(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDeadBush.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDeadBush.d.ts new file mode 100644 index 00000000..9462e90c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDeadBush.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDeadBush extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeReplaced(): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDiamond.d.ts new file mode 100644 index 00000000..170beb34 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDiamond.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDiamond extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDirt.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDirt.d.ts new file mode 100644 index 00000000..a40ab0fd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDirt.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDirt extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDispenser.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDispenser.d.ts new file mode 100644 index 00000000..20c7ead0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDispenser.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDispenser extends cn.nukkit.block.BlockSolidMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public hasComparatorInputOverride(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public isTriggered(): boolean; + // @ts-ignore + public setTriggered(value: boolean): void; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getDispensePosition(): cn.nukkit.math.Vector3; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoor.d.ts new file mode 100644 index 00000000..74eb6fec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoor.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockDoor extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static DOOR_OPEN_BIT: number; + // @ts-ignore + public static DOOR_TOP_BIT: number; + // @ts-ignore + public static DOOR_HINGE_BIT: number; + // @ts-ignore + public static DOOR_POWERED_BIT: number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public getFullDamage(): number; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toggle(player: cn.nukkit.Player): boolean; + // @ts-ignore + public isOpen(): boolean; + // @ts-ignore + public isTop(): boolean; + // @ts-ignore + public isTop(meta: number): boolean; + // @ts-ignore + public isRightHinged(): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorAcacia.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorAcacia.d.ts new file mode 100644 index 00000000..065f7308 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorAcacia.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoorAcacia extends cn.nukkit.block.BlockDoorWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorBirch.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorBirch.d.ts new file mode 100644 index 00000000..c8220683 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorBirch.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoorBirch extends cn.nukkit.block.BlockDoorWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorDarkOak.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorDarkOak.d.ts new file mode 100644 index 00000000..30283eb7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorDarkOak.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoorDarkOak extends cn.nukkit.block.BlockDoorWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorIron.d.ts new file mode 100644 index 00000000..6417dace --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorIron.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoorIron extends cn.nukkit.block.BlockDoor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorJungle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorJungle.d.ts new file mode 100644 index 00000000..1b822ac8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorJungle.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoorJungle extends cn.nukkit.block.BlockDoorWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorSpruce.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorSpruce.d.ts new file mode 100644 index 00000000..a901e9a3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorSpruce.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoorSpruce extends cn.nukkit.block.BlockDoorWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorWood.d.ts new file mode 100644 index 00000000..722db147 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoorWood.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoorWood extends cn.nukkit.block.BlockDoor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoublePlant.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoublePlant.d.ts new file mode 100644 index 00000000..01c04d55 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoublePlant.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoublePlant extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static SUNFLOWER: number; + // @ts-ignore + public static LILAC: number; + // @ts-ignore + public static TALL_GRASS: number; + // @ts-ignore + public static LARGE_FERN: number; + // @ts-ignore + public static ROSE_BUSH: number; + // @ts-ignore + public static PEONY: number; + // @ts-ignore + public static TOP_HALF_BITMASK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeReplaced(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlab.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlab.d.ts new file mode 100644 index 00000000..94ddbd94 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlab.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoubleSlab extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static STONE: number; + // @ts-ignore + public static SANDSTONE: number; + // @ts-ignore + public static WOODEN: number; + // @ts-ignore + public static COBBLESTONE: number; + // @ts-ignore + public static BRICK: number; + // @ts-ignore + public static STONE_BRICK: number; + // @ts-ignore + public static QUARTZ: number; + // @ts-ignore + public static NETHER_BRICK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabRedSandstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabRedSandstone.d.ts new file mode 100644 index 00000000..67183c75 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabRedSandstone.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoubleSlabRedSandstone extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabStone.d.ts new file mode 100644 index 00000000..d4d11aa1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabStone.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoubleSlabStone extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static STONE: number; + // @ts-ignore + public static SANDSTONE: number; + // @ts-ignore + public static WOODEN: number; + // @ts-ignore + public static COBBLESTONE: number; + // @ts-ignore + public static BRICK: number; + // @ts-ignore + public static STONE_BRICK: number; + // @ts-ignore + public static QUARTZ: number; + // @ts-ignore + public static NETHER_BRICK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabWood.d.ts new file mode 100644 index 00000000..6579a146 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDoubleSlabWood.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDoubleSlabWood extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDragonEgg.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDragonEgg.d.ts new file mode 100644 index 00000000..6debf3c7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockDragonEgg.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockDragonEgg extends cn.nukkit.block.BlockFallable { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public isTransparent(): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public teleport(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEmerald.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEmerald.d.ts new file mode 100644 index 00000000..b87dabc3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEmerald.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockEmerald extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEnchantingTable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEnchantingTable.d.ts new file mode 100644 index 00000000..f2ab753e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEnchantingTable.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockEnchantingTable extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndGateway.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndGateway.d.ts new file mode 100644 index 00000000..e0169fa0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndGateway.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockEndGateway extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndPortal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndPortal.d.ts new file mode 100644 index 00000000..074064c5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndPortal.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockEndPortal extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndPortalFrame.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndPortalFrame.d.ts new file mode 100644 index 00000000..7851cd5a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndPortalFrame.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockEndPortalFrame extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public hasComparatorInputOverride(): boolean; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndRod.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndRod.d.ts new file mode 100644 index 00000000..e757ac4a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndRod.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockEndRod extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndStone.d.ts new file mode 100644 index 00000000..4fbbe0f5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEndStone.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockEndStone extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEnderChest.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEnderChest.d.ts new file mode 100644 index 00000000..563fba20 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockEnderChest.d.ts @@ -0,0 +1,57 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockEnderChest extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getViewers(): java.util.Set; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFallable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFallable.d.ts new file mode 100644 index 00000000..6b675314 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFallable.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockFallable extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public onUpdate(type: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFarmland.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFarmland.d.ts new file mode 100644 index 00000000..fc121137 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFarmland.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFarmland extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFence.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFence.d.ts new file mode 100644 index 00000000..6ce37c22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFence.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFence extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static FENCE_OAK: number; + // @ts-ignore + public static FENCE_SPRUCE: number; + // @ts-ignore + public static FENCE_BIRCH: number; + // @ts-ignore + public static FENCE_JUNGLE: number; + // @ts-ignore + public static FENCE_ACACIA: number; + // @ts-ignore + public static FENCE_DARK_OAK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public canConnect(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGate.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGate.d.ts new file mode 100644 index 00000000..85e6eb1f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGate.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFenceGate extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public toggle(player: cn.nukkit.Player): boolean; + // @ts-ignore + public isOpen(): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateAcacia.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateAcacia.d.ts new file mode 100644 index 00000000..b957592f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateAcacia.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFenceGateAcacia extends cn.nukkit.block.BlockFenceGate { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateBirch.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateBirch.d.ts new file mode 100644 index 00000000..16ad1b0e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateBirch.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFenceGateBirch extends cn.nukkit.block.BlockFenceGate { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateDarkOak.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateDarkOak.d.ts new file mode 100644 index 00000000..0ff68ef8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateDarkOak.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFenceGateDarkOak extends cn.nukkit.block.BlockFenceGate { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateJungle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateJungle.d.ts new file mode 100644 index 00000000..b9b2d052 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateJungle.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFenceGateJungle extends cn.nukkit.block.BlockFenceGate { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateSpruce.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateSpruce.d.ts new file mode 100644 index 00000000..9ea8f94e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceGateSpruce.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFenceGateSpruce extends cn.nukkit.block.BlockFenceGate { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceNetherBrick.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceNetherBrick.d.ts new file mode 100644 index 00000000..4bb13bc0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFenceNetherBrick.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFenceNetherBrick extends cn.nukkit.block.BlockFence { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canConnect(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFire.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFire.d.ts new file mode 100644 index 00000000..0ef26ce8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFire.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFire extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public canBeReplaced(): boolean; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public canNeighborBurn(): boolean; + // @ts-ignore + public isBlockTopFacingSurfaceSolid(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public tickRate(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + protected recalculateCollisionBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlowable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlowable.d.ts new file mode 100644 index 00000000..98f03d84 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlowable.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockFlowable extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public canBeFlowedInto(): boolean; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlower.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlower.d.ts new file mode 100644 index 00000000..764dad04 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlower.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFlower extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static TYPE_POPPY: number; + // @ts-ignore + public static TYPE_BLUE_ORCHID: number; + // @ts-ignore + public static TYPE_ALLIUM: number; + // @ts-ignore + public static TYPE_AZURE_BLUET: number; + // @ts-ignore + public static TYPE_RED_TULIP: number; + // @ts-ignore + public static TYPE_ORANGE_TULIP: number; + // @ts-ignore + public static TYPE_WHITE_TULIP: number; + // @ts-ignore + public static TYPE_PINK_TULIP: number; + // @ts-ignore + public static TYPE_OXEYE_DAISY: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + protected getUncommonFlower(): cn.nukkit.block.Block; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlowerPot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlowerPot.d.ts new file mode 100644 index 00000000..3cb28ef9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFlowerPot.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFlowerPot extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + protected static canPlaceIntoFlowerPot(id: number): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFurnace.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFurnace.d.ts new file mode 100644 index 00000000..8a70dcf2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFurnace.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFurnace extends cn.nukkit.block.BlockFurnaceBurning { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFurnaceBurning.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFurnaceBurning.d.ts new file mode 100644 index 00000000..17c65cfc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockFurnaceBurning.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockFurnaceBurning extends cn.nukkit.block.BlockSolidMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public hasComparatorInputOverride(): boolean; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlass.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlass.d.ts new file mode 100644 index 00000000..fed58346 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlass.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockGlass extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassPane.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassPane.d.ts new file mode 100644 index 00000000..66685556 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassPane.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockGlassPane extends cn.nukkit.block.BlockThin { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassPaneStained.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassPaneStained.d.ts new file mode 100644 index 00000000..2e746382 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassPaneStained.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockGlassPaneStained extends cn.nukkit.block.BlockGlassPane { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassStained.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassStained.d.ts new file mode 100644 index 00000000..5f391f81 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlassStained.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockGlassStained extends cn.nukkit.block.BlockGlass { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlowstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlowstone.d.ts new file mode 100644 index 00000000..176b68cb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGlowstone.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockGlowstone extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGold.d.ts new file mode 100644 index 00000000..b160c326 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGold.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockGold extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGrass.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGrass.d.ts new file mode 100644 index 00000000..3e2b6ada --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGrass.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockGrass extends cn.nukkit.block.BlockDirt { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public setDamage(meta: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGrassPath.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGrassPath.d.ts new file mode 100644 index 00000000..6b5993f9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGrassPath.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockGrassPath extends cn.nukkit.block.BlockGrass { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGravel.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGravel.d.ts new file mode 100644 index 00000000..781e8ce5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockGravel.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockGravel extends cn.nukkit.block.BlockFallable { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHayBale.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHayBale.d.ts new file mode 100644 index 00000000..af17d25f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHayBale.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockHayBale extends cn.nukkit.block.BlockSolidMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHopper.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHopper.d.ts new file mode 100644 index 00000000..65562d0d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHopper.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockHopper extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public hasComparatorInputOverride(): boolean; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public isEnabled(): boolean; + // @ts-ignore + public setEnabled(enabled: boolean): void; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHugeMushroomBrown.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHugeMushroomBrown.d.ts new file mode 100644 index 00000000..6a2292ca --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHugeMushroomBrown.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockHugeMushroomBrown extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHugeMushroomRed.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHugeMushroomRed.d.ts new file mode 100644 index 00000000..714523a5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockHugeMushroomRed.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockHugeMushroomRed extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockID.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockID.d.ts new file mode 100644 index 00000000..df3f7b20 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockID.d.ts @@ -0,0 +1,591 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + interface BlockID { + // @ts-ignore + AIR: number; + // @ts-ignore + STONE: number; + // @ts-ignore + GRASS: number; + // @ts-ignore + DIRT: number; + // @ts-ignore + COBBLESTONE: number; + // @ts-ignore + COBBLE: number; + // @ts-ignore + PLANK: number; + // @ts-ignore + PLANKS: number; + // @ts-ignore + WOODEN_PLANK: number; + // @ts-ignore + WOODEN_PLANKS: number; + // @ts-ignore + SAPLING: number; + // @ts-ignore + SAPLINGS: number; + // @ts-ignore + BEDROCK: number; + // @ts-ignore + WATER: number; + // @ts-ignore + STILL_WATER: number; + // @ts-ignore + LAVA: number; + // @ts-ignore + STILL_LAVA: number; + // @ts-ignore + SAND: number; + // @ts-ignore + GRAVEL: number; + // @ts-ignore + GOLD_ORE: number; + // @ts-ignore + IRON_ORE: number; + // @ts-ignore + COAL_ORE: number; + // @ts-ignore + LOG: number; + // @ts-ignore + WOOD: number; + // @ts-ignore + TRUNK: number; + // @ts-ignore + LEAVES: number; + // @ts-ignore + LEAVE: number; + // @ts-ignore + SPONGE: number; + // @ts-ignore + GLASS: number; + // @ts-ignore + LAPIS_ORE: number; + // @ts-ignore + LAPIS_BLOCK: number; + // @ts-ignore + DISPENSER: number; + // @ts-ignore + SANDSTONE: number; + // @ts-ignore + NOTEBLOCK: number; + // @ts-ignore + BED_BLOCK: number; + // @ts-ignore + POWERED_RAIL: number; + // @ts-ignore + DETECTOR_RAIL: number; + // @ts-ignore + STICKY_PISTON: number; + // @ts-ignore + COBWEB: number; + // @ts-ignore + TALL_GRASS: number; + // @ts-ignore + BUSH: number; + // @ts-ignore + DEAD_BUSH: number; + // @ts-ignore + PISTON: number; + // @ts-ignore + PISTON_HEAD: number; + // @ts-ignore + WOOL: number; + // @ts-ignore + DANDELION: number; + // @ts-ignore + POPPY: number; + // @ts-ignore + ROSE: number; + // @ts-ignore + FLOWER: number; + // @ts-ignore + RED_FLOWER: number; + // @ts-ignore + BROWN_MUSHROOM: number; + // @ts-ignore + RED_MUSHROOM: number; + // @ts-ignore + GOLD_BLOCK: number; + // @ts-ignore + IRON_BLOCK: number; + // @ts-ignore + DOUBLE_SLAB: number; + // @ts-ignore + DOUBLE_STONE_SLAB: number; + // @ts-ignore + DOUBLE_SLABS: number; + // @ts-ignore + SLAB: number; + // @ts-ignore + STONE_SLAB: number; + // @ts-ignore + SLABS: number; + // @ts-ignore + BRICKS: number; + // @ts-ignore + BRICKS_BLOCK: number; + // @ts-ignore + TNT: number; + // @ts-ignore + BOOKSHELF: number; + // @ts-ignore + MOSS_STONE: number; + // @ts-ignore + MOSSY_STONE: number; + // @ts-ignore + OBSIDIAN: number; + // @ts-ignore + TORCH: number; + // @ts-ignore + FIRE: number; + // @ts-ignore + MONSTER_SPAWNER: number; + // @ts-ignore + WOOD_STAIRS: number; + // @ts-ignore + WOODEN_STAIRS: number; + // @ts-ignore + OAK_WOOD_STAIRS: number; + // @ts-ignore + OAK_WOODEN_STAIRS: number; + // @ts-ignore + CHEST: number; + // @ts-ignore + REDSTONE_WIRE: number; + // @ts-ignore + DIAMOND_ORE: number; + // @ts-ignore + DIAMOND_BLOCK: number; + // @ts-ignore + CRAFTING_TABLE: number; + // @ts-ignore + WORKBENCH: number; + // @ts-ignore + WHEAT_BLOCK: number; + // @ts-ignore + FARMLAND: number; + // @ts-ignore + FURNACE: number; + // @ts-ignore + BURNING_FURNACE: number; + // @ts-ignore + LIT_FURNACE: number; + // @ts-ignore + SIGN_POST: number; + // @ts-ignore + DOOR_BLOCK: number; + // @ts-ignore + WOODEN_DOOR_BLOCK: number; + // @ts-ignore + WOOD_DOOR_BLOCK: number; + // @ts-ignore + LADDER: number; + // @ts-ignore + RAIL: number; + // @ts-ignore + COBBLE_STAIRS: number; + // @ts-ignore + COBBLESTONE_STAIRS: number; + // @ts-ignore + WALL_SIGN: number; + // @ts-ignore + LEVER: number; + // @ts-ignore + STONE_PRESSURE_PLATE: number; + // @ts-ignore + IRON_DOOR_BLOCK: number; + // @ts-ignore + WOODEN_PRESSURE_PLATE: number; + // @ts-ignore + REDSTONE_ORE: number; + // @ts-ignore + GLOWING_REDSTONE_ORE: number; + // @ts-ignore + LIT_REDSTONE_ORE: number; + // @ts-ignore + UNLIT_REDSTONE_TORCH: number; + // @ts-ignore + REDSTONE_TORCH: number; + // @ts-ignore + STONE_BUTTON: number; + // @ts-ignore + SNOW: number; + // @ts-ignore + SNOW_LAYER: number; + // @ts-ignore + ICE: number; + // @ts-ignore + SNOW_BLOCK: number; + // @ts-ignore + CACTUS: number; + // @ts-ignore + CLAY_BLOCK: number; + // @ts-ignore + REEDS: number; + // @ts-ignore + SUGARCANE_BLOCK: number; + // @ts-ignore + JUKEBOX: number; + // @ts-ignore + FENCE: number; + // @ts-ignore + PUMPKIN: number; + // @ts-ignore + NETHERRACK: number; + // @ts-ignore + SOUL_SAND: number; + // @ts-ignore + GLOWSTONE: number; + // @ts-ignore + GLOWSTONE_BLOCK: number; + // @ts-ignore + NETHER_PORTAL: number; + // @ts-ignore + LIT_PUMPKIN: number; + // @ts-ignore + JACK_O_LANTERN: number; + // @ts-ignore + CAKE_BLOCK: number; + // @ts-ignore + UNPOWERED_REPEATER: number; + // @ts-ignore + POWERED_REPEATER: number; + // @ts-ignore + INVISIBLE_BEDROCK: number; + // @ts-ignore + TRAPDOOR: number; + // @ts-ignore + MONSTER_EGG: number; + // @ts-ignore + STONE_BRICKS: number; + // @ts-ignore + STONE_BRICK: number; + // @ts-ignore + BROWN_MUSHROOM_BLOCK: number; + // @ts-ignore + RED_MUSHROOM_BLOCK: number; + // @ts-ignore + IRON_BAR: number; + // @ts-ignore + IRON_BARS: number; + // @ts-ignore + GLASS_PANE: number; + // @ts-ignore + GLASS_PANEL: number; + // @ts-ignore + MELON_BLOCK: number; + // @ts-ignore + PUMPKIN_STEM: number; + // @ts-ignore + MELON_STEM: number; + // @ts-ignore + VINE: number; + // @ts-ignore + VINES: number; + // @ts-ignore + FENCE_GATE: number; + // @ts-ignore + FENCE_GATE_OAK: number; + // @ts-ignore + BRICK_STAIRS: number; + // @ts-ignore + STONE_BRICK_STAIRS: number; + // @ts-ignore + MYCELIUM: number; + // @ts-ignore + WATER_LILY: number; + // @ts-ignore + LILY_PAD: number; + // @ts-ignore + NETHER_BRICKS: number; + // @ts-ignore + NETHER_BRICK_BLOCK: number; + // @ts-ignore + NETHER_BRICK_FENCE: number; + // @ts-ignore + NETHER_BRICKS_STAIRS: number; + // @ts-ignore + NETHER_WART_BLOCK: number; + // @ts-ignore + ENCHANTING_TABLE: number; + // @ts-ignore + ENCHANT_TABLE: number; + // @ts-ignore + ENCHANTMENT_TABLE: number; + // @ts-ignore + BREWING_STAND_BLOCK: number; + // @ts-ignore + BREWING_BLOCK: number; + // @ts-ignore + CAULDRON_BLOCK: number; + // @ts-ignore + END_PORTAL: number; + // @ts-ignore + END_PORTAL_FRAME: number; + // @ts-ignore + END_STONE: number; + // @ts-ignore + DRAGON_EGG: number; + // @ts-ignore + REDSTONE_LAMP: number; + // @ts-ignore + LIT_REDSTONE_LAMP: number; + // @ts-ignore + DROPPER: number; + // @ts-ignore + ACTIVATOR_RAIL: number; + // @ts-ignore + COCOA: number; + // @ts-ignore + COCOA_BLOCK: number; + // @ts-ignore + SANDSTONE_STAIRS: number; + // @ts-ignore + EMERALD_ORE: number; + // @ts-ignore + ENDER_CHEST: number; + // @ts-ignore + TRIPWIRE_HOOK: number; + // @ts-ignore + TRIPWIRE: number; + // @ts-ignore + EMERALD_BLOCK: number; + // @ts-ignore + SPRUCE_WOOD_STAIRS: number; + // @ts-ignore + SPRUCE_WOODEN_STAIRS: number; + // @ts-ignore + BIRCH_WOOD_STAIRS: number; + // @ts-ignore + BIRCH_WOODEN_STAIRS: number; + // @ts-ignore + JUNGLE_WOOD_STAIRS: number; + // @ts-ignore + JUNGLE_WOODEN_STAIRS: number; + // @ts-ignore + BEACON: number; + // @ts-ignore + COBBLE_WALL: number; + // @ts-ignore + STONE_WALL: number; + // @ts-ignore + COBBLESTONE_WALL: number; + // @ts-ignore + FLOWER_POT_BLOCK: number; + // @ts-ignore + CARROT_BLOCK: number; + // @ts-ignore + POTATO_BLOCK: number; + // @ts-ignore + WOODEN_BUTTON: number; + // @ts-ignore + SKULL_BLOCK: number; + // @ts-ignore + ANVIL: number; + // @ts-ignore + TRAPPED_CHEST: number; + // @ts-ignore + LIGHT_WEIGHTED_PRESSURE_PLATE: number; + // @ts-ignore + HEAVY_WEIGHTED_PRESSURE_PLATE: number; + // @ts-ignore + UNPOWERED_COMPARATOR: number; + // @ts-ignore + POWERED_COMPARATOR: number; + // @ts-ignore + DAYLIGHT_DETECTOR: number; + // @ts-ignore + REDSTONE_BLOCK: number; + // @ts-ignore + QUARTZ_ORE: number; + // @ts-ignore + HOPPER_BLOCK: number; + // @ts-ignore + QUARTZ_BLOCK: number; + // @ts-ignore + QUARTZ_STAIRS: number; + // @ts-ignore + DOUBLE_WOOD_SLAB: number; + // @ts-ignore + DOUBLE_WOODEN_SLAB: number; + // @ts-ignore + DOUBLE_WOOD_SLABS: number; + // @ts-ignore + DOUBLE_WOODEN_SLABS: number; + // @ts-ignore + WOOD_SLAB: number; + // @ts-ignore + WOODEN_SLAB: number; + // @ts-ignore + WOOD_SLABS: number; + // @ts-ignore + WOODEN_SLABS: number; + // @ts-ignore + STAINED_TERRACOTTA: number; + // @ts-ignore + STAINED_HARDENED_CLAY: number; + // @ts-ignore + STAINED_GLASS_PANE: number; + // @ts-ignore + LEAVES2: number; + // @ts-ignore + LEAVE2: number; + // @ts-ignore + WOOD2: number; + // @ts-ignore + TRUNK2: number; + // @ts-ignore + LOG2: number; + // @ts-ignore + ACACIA_WOOD_STAIRS: number; + // @ts-ignore + ACACIA_WOODEN_STAIRS: number; + // @ts-ignore + DARK_OAK_WOOD_STAIRS: number; + // @ts-ignore + DARK_OAK_WOODEN_STAIRS: number; + // @ts-ignore + SLIME_BLOCK: number; + // @ts-ignore + IRON_TRAPDOOR: number; + // @ts-ignore + PRISMARINE: number; + // @ts-ignore + SEA_LANTERN: number; + // @ts-ignore + HAY_BALE: number; + // @ts-ignore + CARPET: number; + // @ts-ignore + TERRACOTTA: number; + // @ts-ignore + COAL_BLOCK: number; + // @ts-ignore + PACKED_ICE: number; + // @ts-ignore + DOUBLE_PLANT: number; + // @ts-ignore + STANDING_BANNER: number; + // @ts-ignore + WALL_BANNER: number; + // @ts-ignore + DAYLIGHT_DETECTOR_INVERTED: number; + // @ts-ignore + RED_SANDSTONE: number; + // @ts-ignore + RED_SANDSTONE_STAIRS: number; + // @ts-ignore + DOUBLE_RED_SANDSTONE_SLAB: number; + // @ts-ignore + RED_SANDSTONE_SLAB: number; + // @ts-ignore + FENCE_GATE_SPRUCE: number; + // @ts-ignore + FENCE_GATE_BIRCH: number; + // @ts-ignore + FENCE_GATE_JUNGLE: number; + // @ts-ignore + FENCE_GATE_DARK_OAK: number; + // @ts-ignore + FENCE_GATE_ACACIA: number; + // @ts-ignore + SPRUCE_DOOR_BLOCK: number; + // @ts-ignore + BIRCH_DOOR_BLOCK: number; + // @ts-ignore + JUNGLE_DOOR_BLOCK: number; + // @ts-ignore + ACACIA_DOOR_BLOCK: number; + // @ts-ignore + DARK_OAK_DOOR_BLOCK: number; + // @ts-ignore + GRASS_PATH: number; + // @ts-ignore + ITEM_FRAME_BLOCK: number; + // @ts-ignore + CHORUS_FLOWER: number; + // @ts-ignore + PURPUR_BLOCK: number; + // @ts-ignore + PURPUR_STAIRS: number; + // @ts-ignore + UNDYED_SHULKER_BOX: number; + // @ts-ignore + END_BRICKS: number; + // @ts-ignore + ICE_FROSTED: number; + // @ts-ignore + END_ROD: number; + // @ts-ignore + END_GATEWAY: number; + // @ts-ignore + MAGMA: number; + // @ts-ignore + BLOCK_NETHER_WART_BLOCK: number; + // @ts-ignore + RED_NETHER_BRICK: number; + // @ts-ignore + BONE_BLOCK: number; + // @ts-ignore + SHULKER_BOX: number; + // @ts-ignore + PURPLE_GLAZED_TERRACOTTA: number; + // @ts-ignore + WHITE_GLAZED_TERRACOTTA: number; + // @ts-ignore + ORANGE_GLAZED_TERRACOTTA: number; + // @ts-ignore + MAGENTA_GLAZED_TERRACOTTA: number; + // @ts-ignore + LIGHT_BLUE_GLAZED_TERRACOTTA: number; + // @ts-ignore + YELLOW_GLAZED_TERRACOTTA: number; + // @ts-ignore + LIME_GLAZED_TERRACOTTA: number; + // @ts-ignore + PINK_GLAZED_TERRACOTTA: number; + // @ts-ignore + GRAY_GLAZED_TERRACOTTA: number; + // @ts-ignore + SILVER_GLAZED_TERRACOTTA: number; + // @ts-ignore + CYAN_GLAZED_TERRACOTTA: number; + // @ts-ignore + BLUE_GLAZED_TERRACOTTA: number; + // @ts-ignore + BROWN_GLAZED_TERRACOTTA: number; + // @ts-ignore + GREEN_GLAZED_TERRACOTTA: number; + // @ts-ignore + RED_GLAZED_TERRACOTTA: number; + // @ts-ignore + BLACK_GLAZED_TERRACOTTA: number; + // @ts-ignore + CONCRETE: number; + // @ts-ignore + CONCRETE_POWDER: number; + // @ts-ignore + CHORUS_PLANT: number; + // @ts-ignore + STAINED_GLASS: number; + // @ts-ignore + PODZOL: number; + // @ts-ignore + BEETROOT_BLOCK: number; + // @ts-ignore + STONECUTTER: number; + // @ts-ignore + GLOWING_OBSIDIAN: number; + // @ts-ignore + NETHER_REACTOR: number; + // @ts-ignore + PISTON_EXTENSION: number; + // @ts-ignore + OBSERVER: number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIce.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIce.d.ts new file mode 100644 index 00000000..7f4d23ef --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIce.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockIce extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getFrictionFactor(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIcePacked.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIcePacked.d.ts new file mode 100644 index 00000000..71c15f57 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIcePacked.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockIcePacked extends cn.nukkit.block.BlockIce { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIron.d.ts new file mode 100644 index 00000000..c9595b8d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIron.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockIron extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIronBars.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIronBars.d.ts new file mode 100644 index 00000000..ccf8a835 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockIronBars.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockIronBars extends cn.nukkit.block.BlockThin { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockItemFrame.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockItemFrame.d.ts new file mode 100644 index 00000000..7010c502 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockItemFrame.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockItemFrame extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public hasComparatorInputOverride(): boolean; + // @ts-ignore + public getComparatorInputOverride(): number; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public getHardness(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockJukebox.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockJukebox.d.ts new file mode 100644 index 00000000..4c883184 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockJukebox.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockJukebox extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLadder.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLadder.d.ts new file mode 100644 index 00000000..d53fe7f8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLadder.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockLadder extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public canBeClimbed(): boolean; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + protected recalculateCollisionBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLapis.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLapis.d.ts new file mode 100644 index 00000000..55cc0eb3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLapis.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockLapis extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLava.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLava.d.ts new file mode 100644 index 00000000..8d18bac3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLava.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockLava extends cn.nukkit.block.BlockLiquid { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + protected isSurroundingBlockFlammable(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getBlock(meta: number): cn.nukkit.block.BlockLiquid; + // @ts-ignore + public tickRate(): number; + // @ts-ignore + public getFlowDecayPerBlock(): number; + // @ts-ignore + protected checkForHarden(): void; + // @ts-ignore + protected flowIntoBlock(block: cn.nukkit.block.Block, newFlowDecay: number): void; + // @ts-ignore + public addVelocityToEntity(entity: cn.nukkit.entity.Entity, vector: cn.nukkit.math.Vector3): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLavaStill.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLavaStill.d.ts new file mode 100644 index 00000000..f9403714 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLavaStill.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockLavaStill extends cn.nukkit.block.BlockLava { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getBlock(meta: number): cn.nukkit.block.BlockLiquid; + // @ts-ignore + public onUpdate(type: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLeaves.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLeaves.d.ts new file mode 100644 index 00000000..984d56f2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLeaves.d.ts @@ -0,0 +1,57 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockLeaves extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static OAK: number; + // @ts-ignore + public static SPRUCE: number; + // @ts-ignore + public static BIRCH: number; + // @ts-ignore + public static JUNGLE: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public isCheckDecay(): boolean; + // @ts-ignore + public setCheckDecay(checkDecay: boolean): void; + // @ts-ignore + public isPersistent(): boolean; + // @ts-ignore + public setPersistent(persistent: boolean): void; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + protected canDropApple(): boolean; + // @ts-ignore + protected getSapling(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLeaves2.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLeaves2.d.ts new file mode 100644 index 00000000..f7d6efe4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLeaves2.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockLeaves2 extends cn.nukkit.block.BlockLeaves { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static ACACIA: number; + // @ts-ignore + public static DARK_OAK: number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + protected canDropApple(): boolean; + // @ts-ignore + protected getSapling(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLever.LeverOrientation.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLever.LeverOrientation.d.ts new file mode 100644 index 00000000..2cd0ec9c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLever.LeverOrientation.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace block { + namespace BlockLever { + // @ts-ignore + class LeverOrientation extends java.lang.Enum { + // @ts-ignore + public static DOWN_X: cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public static EAST: cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public static WEST: cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public static SOUTH: cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public static NORTH: cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public static UP_Z: cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public static UP_X: cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public static DOWN_Z: cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public static values(): cn.nukkit.block.BlockLever.LeverOrientation[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public getMetadata(): number; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public static byMetadata(meta: number): cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public static forFacings(clickedSide: cn.nukkit.math.BlockFace, playerDirection: cn.nukkit.math.BlockFace): cn.nukkit.block.BlockLever.LeverOrientation; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLever.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLever.d.ts new file mode 100644 index 00000000..87462da5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLever.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockLever extends cn.nukkit.block.BlockFlowable implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public isPowerOn(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getWeakPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public isPowerSource(): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLiquid.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLiquid.d.ts new file mode 100644 index 00000000..bce1d53a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockLiquid.d.ts @@ -0,0 +1,75 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockLiquid extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public adjacentSources: number; + // @ts-ignore + protected flowVector: cn.nukkit.math.Vector3; + // @ts-ignore + public canBeFlowedInto(): boolean; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public canBeReplaced(): boolean; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + protected recalculateCollisionBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getFluidHeightPercent(): number; + // @ts-ignore + protected getFlowDecay(block: cn.nukkit.block.Block): number; + // @ts-ignore + protected getEffectiveFlowDecay(block: cn.nukkit.block.Block): number; + // @ts-ignore + public clearCaches(): void; + // @ts-ignore + public getFlowVector(): cn.nukkit.math.Vector3; + // @ts-ignore + public addVelocityToEntity(entity: cn.nukkit.entity.Entity, vector: cn.nukkit.math.Vector3): void; + // @ts-ignore + public getFlowDecayPerBlock(): number; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + protected flowIntoBlock(block: cn.nukkit.block.Block, newFlowDecay: number): void; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + protected checkForHarden(): void; + // @ts-ignore + protected triggerLavaMixEffects(pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + public abstract getBlock(meta: number): cn.nukkit.block.BlockLiquid; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + protected liquidCollide(cause: cn.nukkit.block.Block, result: cn.nukkit.block.Block): boolean; + // @ts-ignore + protected canFlowInto(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMagma.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMagma.d.ts new file mode 100644 index 00000000..41fa59e7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMagma.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockMagma extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMelon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMelon.d.ts new file mode 100644 index 00000000..5232fd4c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMelon.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockMelon extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMeta.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMeta.d.ts new file mode 100644 index 00000000..0fb9b4f4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMeta.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockMeta extends cn.nukkit.block.Block { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMobSpawner.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMobSpawner.d.ts new file mode 100644 index 00000000..057baa75 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMobSpawner.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockMobSpawner extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMonsterEgg.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMonsterEgg.d.ts new file mode 100644 index 00000000..ea532f36 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMonsterEgg.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockMonsterEgg extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static STONE: number; + // @ts-ignore + public static COBBLESTONE: number; + // @ts-ignore + public static STONE_BRICK: number; + // @ts-ignore + public static MOSSY_BRICK: number; + // @ts-ignore + public static CRACKED_BRICK: number; + // @ts-ignore + public static CHISELED_BRICK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMossStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMossStone.d.ts new file mode 100644 index 00000000..373df09c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMossStone.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockMossStone extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroom.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroom.d.ts new file mode 100644 index 00000000..2355b7ae --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroom.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockMushroom extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public grow(): boolean; + // @ts-ignore + public canStay(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + protected abstract getType(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroomBrown.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroomBrown.d.ts new file mode 100644 index 00000000..210ab3b8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroomBrown.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockMushroomBrown extends cn.nukkit.block.BlockMushroom { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + protected getType(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroomRed.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroomRed.d.ts new file mode 100644 index 00000000..564cd946 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMushroomRed.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockMushroomRed extends cn.nukkit.block.BlockMushroom { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + protected getType(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMycelium.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMycelium.d.ts new file mode 100644 index 00000000..472c7581 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockMycelium.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockMycelium extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherBrick.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherBrick.d.ts new file mode 100644 index 00000000..32209a0d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherBrick.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockNetherBrick extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherPortal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherPortal.d.ts new file mode 100644 index 00000000..c41dc95d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherPortal.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockNetherPortal extends cn.nukkit.block.BlockFlowable implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public isBreakable(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public static spawnPortal(pos: cn.nukkit.level.Position): void; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherWart.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherWart.d.ts new file mode 100644 index 00000000..b881579b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherWart.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockNetherWart extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherWartBlock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherWartBlock.d.ts new file mode 100644 index 00000000..e0896545 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherWartBlock.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockNetherWartBlock extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherrack.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherrack.d.ts new file mode 100644 index 00000000..cca6223d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNetherrack.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockNetherrack extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNoteblock.Instrument.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNoteblock.Instrument.d.ts new file mode 100644 index 00000000..c403bcf6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNoteblock.Instrument.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace block { + namespace BlockNoteblock { + // @ts-ignore + class Instrument extends java.lang.Enum { + // @ts-ignore + public static PIANO: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static BASS_DRUM: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static DRUM: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static STICKS: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static BASS: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static GLOCKENSPIEL: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static FLUTE: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static CHIME: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static GUITAR: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static XYLOPHONE: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static VIBRAPHONE: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static COW_BELL: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static DIDGERIDOO: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static SQUARE_WAVE: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static BANJO: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static ELECTRIC_PIANO: cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public static values(): cn.nukkit.block.BlockNoteblock.Instrument[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public getSound(): cn.nukkit.level.Sound; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNoteblock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNoteblock.d.ts new file mode 100644 index 00000000..f9fd41be --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockNoteblock.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockNoteblock extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getStrength(): number; + // @ts-ignore + public increaseStrength(): void; + // @ts-ignore + public getInstrument(): cn.nukkit.block.BlockNoteblock.Instrument; + // @ts-ignore + public emitSound(): void; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObserver.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObserver.d.ts new file mode 100644 index 00000000..66484438 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObserver.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockObserver extends cn.nukkit.block.BlockSolidMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObsidian.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObsidian.d.ts new file mode 100644 index 00000000..17a88f4d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObsidian.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockObsidian extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObsidianGlowing.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObsidianGlowing.d.ts new file mode 100644 index 00000000..4f04fc05 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockObsidianGlowing.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockObsidianGlowing extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreCoal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreCoal.d.ts new file mode 100644 index 00000000..a7a7c24d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreCoal.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockOreCoal extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getDropExp(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreDiamond.d.ts new file mode 100644 index 00000000..d2f170b7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreDiamond.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockOreDiamond extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getDropExp(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreEmerald.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreEmerald.d.ts new file mode 100644 index 00000000..79e26b64 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreEmerald.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockOreEmerald extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getDropExp(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreGold.d.ts new file mode 100644 index 00000000..c5baedb0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreGold.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockOreGold extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreIron.d.ts new file mode 100644 index 00000000..8947761d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreIron.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockOreIron extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreLapis.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreLapis.d.ts new file mode 100644 index 00000000..8be0fb4c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreLapis.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockOreLapis extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getDropExp(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreQuartz.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreQuartz.d.ts new file mode 100644 index 00000000..d59c9f50 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreQuartz.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockOreQuartz extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getDropExp(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreRedstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreRedstone.d.ts new file mode 100644 index 00000000..fe56014b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreRedstone.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockOreRedstone extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getDropExp(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreRedstoneGlowing.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreRedstoneGlowing.d.ts new file mode 100644 index 00000000..2f697a0f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockOreRedstoneGlowing.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockOreRedstoneGlowing extends cn.nukkit.block.BlockOreRedstone { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPiston.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPiston.d.ts new file mode 100644 index 00000000..5236959f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPiston.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPiston extends cn.nukkit.block.BlockPistonBase { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonBase.BlocksCalculator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonBase.BlocksCalculator.d.ts new file mode 100644 index 00000000..3cead6f4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonBase.BlocksCalculator.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + namespace BlockPistonBase { + // @ts-ignore + class BlocksCalculator extends java.lang.Object { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, pos: cn.nukkit.block.Block, facing: cn.nukkit.math.BlockFace, extending: boolean) + // @ts-ignore + public canMove(): boolean; + // @ts-ignore + public getBlocksToMove(): java.util.List; + // @ts-ignore + public getBlocksToDestroy(): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonBase.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonBase.d.ts new file mode 100644 index 00000000..6a856c1e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonBase.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockPistonBase extends cn.nukkit.block.BlockSolidMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public sticky: boolean; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public isExtended(): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public static canPush(block: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, destroyBlocks: boolean): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonHead.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonHead.d.ts new file mode 100644 index 00000000..a00f7ad8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonHead.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPistonHead extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonSticky.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonSticky.d.ts new file mode 100644 index 00000000..0a15e4b7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPistonSticky.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPistonSticky extends cn.nukkit.block.BlockPistonBase { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPlanks.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPlanks.d.ts new file mode 100644 index 00000000..3ab80dbc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPlanks.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPlanks extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static OAK: number; + // @ts-ignore + public static SPRUCE: number; + // @ts-ignore + public static BIRCH: number; + // @ts-ignore + public static JUNGLE: number; + // @ts-ignore + public static ACACIA: number; + // @ts-ignore + public static DARK_OAK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPodzol.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPodzol.d.ts new file mode 100644 index 00000000..1cc94087 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPodzol.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPodzol extends cn.nukkit.block.BlockDirt { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public canSilkTouch(): boolean; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPotato.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPotato.d.ts new file mode 100644 index 00000000..28b8a75b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPotato.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPotato extends cn.nukkit.block.BlockCrops { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateBase.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateBase.d.ts new file mode 100644 index 00000000..6c310e4c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateBase.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockPressurePlateBase extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + protected onPitch: number; + // @ts-ignore + protected offPitch: number; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public isPowerSource(): boolean; + // @ts-ignore + public isActivated(): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + protected recalculateCollisionBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + protected updateState(oldStrength: number): void; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getWeakPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getRedstonePower(): number; + // @ts-ignore + public setRedstonePower(power: number): void; + // @ts-ignore + protected playOnSound(): void; + // @ts-ignore + protected playOffSound(): void; + // @ts-ignore + protected abstract computeRedstoneStrength(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateStone.d.ts new file mode 100644 index 00000000..22cb2d12 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateStone.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPressurePlateStone extends cn.nukkit.block.BlockPressurePlateBase { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + protected computeRedstoneStrength(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateWood.d.ts new file mode 100644 index 00000000..44e0ba59 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPressurePlateWood.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPressurePlateWood extends cn.nukkit.block.BlockPressurePlateBase { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + protected computeRedstoneStrength(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPrismarine.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPrismarine.d.ts new file mode 100644 index 00000000..3ed28012 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPrismarine.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPrismarine extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static NORMAL: number; + // @ts-ignore + public static BRICKS: number; + // @ts-ignore + public static DARK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPumpkin.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPumpkin.d.ts new file mode 100644 index 00000000..0aa853d7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPumpkin.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPumpkin extends cn.nukkit.block.BlockSolidMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canBePushed(): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPumpkinLit.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPumpkinLit.d.ts new file mode 100644 index 00000000..85d22bf3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPumpkinLit.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPumpkinLit extends cn.nukkit.block.BlockPumpkin { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPurpur.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPurpur.d.ts new file mode 100644 index 00000000..4dba4b6b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockPurpur.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockPurpur extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static PURPUR_NORMAL: number; + // @ts-ignore + public static PURPUR_PILLAR: number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockQuartz.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockQuartz.d.ts new file mode 100644 index 00000000..f6c75d85 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockQuartz.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockQuartz extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static QUARTZ_NORMAL: number; + // @ts-ignore + public static QUARTZ_CHISELED: number; + // @ts-ignore + public static QUARTZ_PILLAR: number; + // @ts-ignore + public static QUARTZ_PILLAR2: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRail.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRail.d.ts new file mode 100644 index 00000000..1f71b8b5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRail.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRail extends cn.nukkit.block.BlockFlowable implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + protected canBePowered: boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + protected checkRailsConnected(): java.util.Map; + // @ts-ignore + public isAbstract(): boolean; + // @ts-ignore + public canPowered(): boolean; + // @ts-ignore + public getOrientation(): cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public setOrientation(o: cn.nukkit.utils.Rail.Orientation): void; + // @ts-ignore + public getRealMeta(): number; + // @ts-ignore + public isActive(): boolean; + // @ts-ignore + public setActive(active: boolean): void; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailActivator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailActivator.d.ts new file mode 100644 index 00000000..fda72081 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailActivator.d.ts @@ -0,0 +1,28 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRailActivator extends cn.nukkit.block.BlockRail { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public onUpdate(type: number): number; + /** + * Check the surrounding of the rail + */ + // @ts-ignore + protected checkSurrounding(pos: cn.nukkit.math.Vector3, relative: boolean, power: number): boolean; + // @ts-ignore + protected canPowered(pos: cn.nukkit.math.Vector3, state: cn.nukkit.utils.Rail.Orientation, power: number, relative: boolean): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailDetector.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailDetector.d.ts new file mode 100644 index 00000000..853e52aa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailDetector.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRailDetector extends cn.nukkit.block.BlockRail { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isPowerSource(): boolean; + // @ts-ignore + public getWeakPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + protected updateState(): void; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailPowered.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailPowered.d.ts new file mode 100644 index 00000000..7ae71ec9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRailPowered.d.ts @@ -0,0 +1,28 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRailPowered extends cn.nukkit.block.BlockRail { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onUpdate(type: number): number; + /** + * Check the surrounding of the rail + */ + // @ts-ignore + protected checkSurrounding(pos: cn.nukkit.math.Vector3, relative: boolean, power: number): boolean; + // @ts-ignore + protected canPowered(pos: cn.nukkit.math.Vector3, state: cn.nukkit.utils.Rail.Orientation, power: number, relative: boolean): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedSandstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedSandstone.d.ts new file mode 100644 index 00000000..050d1091 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedSandstone.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedSandstone extends cn.nukkit.block.BlockSandstone { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstone.d.ts new file mode 100644 index 00000000..0863799d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstone.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstone extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public isPowerSource(): boolean; + // @ts-ignore + public getWeakPower(face: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparator.Mode.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparator.Mode.d.ts new file mode 100644 index 00000000..89f2433e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparator.Mode.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + namespace BlockRedstoneComparator { + // @ts-ignore + class Mode extends java.lang.Enum { + // @ts-ignore + public static COMPARE: cn.nukkit.block.BlockRedstoneComparator.Mode; + // @ts-ignore + public static SUBTRACT: cn.nukkit.block.BlockRedstoneComparator.Mode; + // @ts-ignore + public static values(): cn.nukkit.block.BlockRedstoneComparator.Mode[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.block.BlockRedstoneComparator.Mode; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparator.d.ts new file mode 100644 index 00000000..2ecd2041 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparator.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockRedstoneComparator extends cn.nukkit.block.BlockRedstoneDiode { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + protected getDelay(): number; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public getMode(): cn.nukkit.block.BlockRedstoneComparator.Mode; + // @ts-ignore + protected getUnpowered(): cn.nukkit.block.BlockRedstoneComparator; + // @ts-ignore + protected getPowered(): cn.nukkit.block.BlockRedstoneComparator; + // @ts-ignore + protected getRedstoneSignal(): number; + // @ts-ignore + public updateState(): void; + // @ts-ignore + protected calculateInputStrength(): number; + // @ts-ignore + protected shouldBePowered(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public isPowered(): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparatorPowered.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparatorPowered.d.ts new file mode 100644 index 00000000..3d5b2228 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparatorPowered.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstoneComparatorPowered extends cn.nukkit.block.BlockRedstoneComparator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + protected getPowered(): cn.nukkit.block.BlockRedstoneComparator; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparatorUnpowered.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparatorUnpowered.d.ts new file mode 100644 index 00000000..2ca3d126 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneComparatorUnpowered.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstoneComparatorUnpowered extends cn.nukkit.block.BlockRedstoneComparator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + protected getUnpowered(): cn.nukkit.block.BlockRedstoneComparator; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneDiode.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneDiode.d.ts new file mode 100644 index 00000000..ea1901d3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneDiode.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockRedstoneDiode extends cn.nukkit.block.BlockFlowable implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public updateState(): void; + // @ts-ignore + public isLocked(): boolean; + // @ts-ignore + protected calculateInputStrength(): number; + // @ts-ignore + protected getPowerOnSides(): number; + // @ts-ignore + protected getPowerOnSide(pos: cn.nukkit.math.Vector3, side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public isPowerSource(): boolean; + // @ts-ignore + protected shouldBePowered(): boolean; + // @ts-ignore + public abstract getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + protected abstract getDelay(): number; + // @ts-ignore + protected abstract getUnpowered(): cn.nukkit.block.Block; + // @ts-ignore + protected abstract getPowered(): cn.nukkit.block.Block; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + protected isAlternateInput(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public static isDiode(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + protected getRedstoneSignal(): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getWeakPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public isPowered(): boolean; + // @ts-ignore + public isFacingTowardsRepeater(): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneLamp.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneLamp.d.ts new file mode 100644 index 00000000..cce1e0e1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneLamp.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstoneLamp extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneLampLit.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneLampLit.d.ts new file mode 100644 index 00000000..b90af624 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneLampLit.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstoneLampLit extends cn.nukkit.block.BlockRedstoneLamp { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public onUpdate(type: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneRepeaterPowered.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneRepeaterPowered.d.ts new file mode 100644 index 00000000..716ade78 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneRepeaterPowered.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstoneRepeaterPowered extends cn.nukkit.block.BlockRedstoneDiode { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + protected isAlternateInput(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + protected getDelay(): number; + // @ts-ignore + protected getPowered(): cn.nukkit.block.Block; + // @ts-ignore + protected getUnpowered(): cn.nukkit.block.Block; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public isLocked(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneRepeaterUnpowered.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneRepeaterUnpowered.d.ts new file mode 100644 index 00000000..236339a4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneRepeaterUnpowered.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstoneRepeaterUnpowered extends cn.nukkit.block.BlockRedstoneDiode { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + protected isAlternateInput(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + protected getDelay(): number; + // @ts-ignore + protected getPowered(): cn.nukkit.block.Block; + // @ts-ignore + protected getUnpowered(): cn.nukkit.block.Block; + // @ts-ignore + public isLocked(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneTorch.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneTorch.d.ts new file mode 100644 index 00000000..99414dec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneTorch.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstoneTorch extends cn.nukkit.block.BlockTorch { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getWeakPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + protected checkState(): boolean; + // @ts-ignore + protected isPoweredFromSide(): boolean; + // @ts-ignore + public tickRate(): number; + // @ts-ignore + public isPowerSource(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneTorchUnlit.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneTorchUnlit.d.ts new file mode 100644 index 00000000..6fe662a1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneTorchUnlit.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstoneTorchUnlit extends cn.nukkit.block.BlockTorch { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public getWeakPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + protected checkState(): boolean; + // @ts-ignore + public tickRate(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneWire.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneWire.d.ts new file mode 100644 index 00000000..25850517 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockRedstoneWire.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockRedstoneWire extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public canBePlacedOn(v: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getWeakPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + protected static canConnectUpwardsTo(level: cn.nukkit.level.Level, pos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + protected static canConnectUpwardsTo(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + protected static canConnectTo(block: cn.nukkit.block.Block, side: cn.nukkit.math.BlockFace): boolean; + // @ts-ignore + public isPowerSource(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSand.d.ts new file mode 100644 index 00000000..bf8ee6b1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSand.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSand extends cn.nukkit.block.BlockFallable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static DEFAULT: number; + // @ts-ignore + public static RED: number; + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSandstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSandstone.d.ts new file mode 100644 index 00000000..226d4fc0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSandstone.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSandstone extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static NORMAL: number; + // @ts-ignore + public static CHISELED: number; + // @ts-ignore + public static SMOOTH: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSapling.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSapling.d.ts new file mode 100644 index 00000000..ce390348 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSapling.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSapling extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static OAK: number; + // @ts-ignore + public static SPRUCE: number; + // @ts-ignore + public static BIRCH: number; + // @ts-ignore + public static BIRCH_TALL: number; + // @ts-ignore + public static JUNGLE: number; + // @ts-ignore + public static ACACIA: number; + // @ts-ignore + public static DARK_OAK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public isSameType(pos: cn.nukkit.math.Vector3, type: number): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSeaLantern.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSeaLantern.d.ts new file mode 100644 index 00000000..509c7ab0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSeaLantern.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSeaLantern extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockShulkerBox.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockShulkerBox.d.ts new file mode 100644 index 00000000..678a8954 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockShulkerBox.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockShulkerBox extends cn.nukkit.block.BlockUndyedShulkerBox { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSignPost.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSignPost.d.ts new file mode 100644 index 00000000..41138b14 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSignPost.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSignPost extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSkull.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSkull.d.ts new file mode 100644 index 00000000..fd403794 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSkull.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSkull extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlab.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlab.d.ts new file mode 100644 index 00000000..47e014c3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlab.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockSlab extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor(meta: number, doubleSlab: number) + // @ts-ignore + protected doubleSlab: number; + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabRedSandstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabRedSandstone.d.ts new file mode 100644 index 00000000..14b95582 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabRedSandstone.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSlabRedSandstone extends cn.nukkit.block.BlockSlab { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static RED_SANDSTONE: number; + // @ts-ignore + public static PURPUR: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabStone.d.ts new file mode 100644 index 00000000..9e873f22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabStone.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSlabStone extends cn.nukkit.block.BlockSlab { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static STONE: number; + // @ts-ignore + public static SANDSTONE: number; + // @ts-ignore + public static WOODEN: number; + // @ts-ignore + public static COBBLESTONE: number; + // @ts-ignore + public static BRICK: number; + // @ts-ignore + public static STONE_BRICK: number; + // @ts-ignore + public static QUARTZ: number; + // @ts-ignore + public static NETHER_BRICK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabWood.d.ts new file mode 100644 index 00000000..e5410ca1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlabWood.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSlabWood extends cn.nukkit.block.BlockSlab { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlime.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlime.d.ts new file mode 100644 index 00000000..2a2847a0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSlime.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSlime extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSnow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSnow.d.ts new file mode 100644 index 00000000..24c28f9b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSnow.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSnow extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSnowLayer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSnowLayer.d.ts new file mode 100644 index 00000000..0ee0d0ec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSnowLayer.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSnowLayer extends cn.nukkit.block.BlockFallable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: number): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public canBeReplaced(): boolean; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public isTransparent(): boolean; + // @ts-ignore + public canBeFlowedInto(): boolean; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSolid.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSolid.d.ts new file mode 100644 index 00000000..4312ee5c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSolid.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockSolid extends cn.nukkit.block.Block { + // @ts-ignore + constructor() + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSolidMeta.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSolidMeta.d.ts new file mode 100644 index 00000000..7feb90b7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSolidMeta.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockSolidMeta extends cn.nukkit.block.BlockMeta { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSoulSand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSoulSand.d.ts new file mode 100644 index 00000000..91842569 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSoulSand.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSoulSand extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSponge.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSponge.d.ts new file mode 100644 index 00000000..52b2565b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSponge.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSponge extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static DRY: number; + // @ts-ignore + public static WET: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairs.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairs.d.ts new file mode 100644 index 00000000..0842e3c5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairs.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockStairs extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public collidesWithBB(bb: cn.nukkit.math.AxisAlignedBB): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsAcacia.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsAcacia.d.ts new file mode 100644 index 00000000..5249da8e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsAcacia.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsAcacia extends cn.nukkit.block.BlockStairsWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsBirch.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsBirch.d.ts new file mode 100644 index 00000000..d2dae435 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsBirch.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsBirch extends cn.nukkit.block.BlockStairsWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsBrick.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsBrick.d.ts new file mode 100644 index 00000000..5235dbb1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsBrick.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsBrick extends cn.nukkit.block.BlockStairs { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsCobblestone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsCobblestone.d.ts new file mode 100644 index 00000000..88913bf6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsCobblestone.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsCobblestone extends cn.nukkit.block.BlockStairs { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsDarkOak.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsDarkOak.d.ts new file mode 100644 index 00000000..1b5c28df --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsDarkOak.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsDarkOak extends cn.nukkit.block.BlockStairsWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsJungle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsJungle.d.ts new file mode 100644 index 00000000..8eb514b9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsJungle.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsJungle extends cn.nukkit.block.BlockStairsWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsNetherBrick.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsNetherBrick.d.ts new file mode 100644 index 00000000..dab7398f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsNetherBrick.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsNetherBrick extends cn.nukkit.block.BlockStairs { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsPurpur.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsPurpur.d.ts new file mode 100644 index 00000000..029ae72b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsPurpur.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsPurpur extends cn.nukkit.block.BlockStairs { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsQuartz.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsQuartz.d.ts new file mode 100644 index 00000000..82a612fc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsQuartz.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsQuartz extends cn.nukkit.block.BlockStairs { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsRedSandstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsRedSandstone.d.ts new file mode 100644 index 00000000..0c5c8f70 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsRedSandstone.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsRedSandstone extends cn.nukkit.block.BlockStairs { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsSandstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsSandstone.d.ts new file mode 100644 index 00000000..155e1516 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsSandstone.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsSandstone extends cn.nukkit.block.BlockStairs { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsSpruce.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsSpruce.d.ts new file mode 100644 index 00000000..6b907bf6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsSpruce.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsSpruce extends cn.nukkit.block.BlockStairsWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsStoneBrick.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsStoneBrick.d.ts new file mode 100644 index 00000000..e1393aa3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsStoneBrick.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsStoneBrick extends cn.nukkit.block.BlockStairs { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsWood.d.ts new file mode 100644 index 00000000..465d8d56 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStairsWood.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStairsWood extends cn.nukkit.block.BlockStairs { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStemMelon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStemMelon.d.ts new file mode 100644 index 00000000..2e9af83b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStemMelon.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStemMelon extends cn.nukkit.block.BlockCrops { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStemPumpkin.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStemPumpkin.d.ts new file mode 100644 index 00000000..8079ddb1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStemPumpkin.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStemPumpkin extends cn.nukkit.block.BlockCrops { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStone.d.ts new file mode 100644 index 00000000..33648ec6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStone.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStone extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static NORMAL: number; + // @ts-ignore + public static GRANITE: number; + // @ts-ignore + public static POLISHED_GRANITE: number; + // @ts-ignore + public static DIORITE: number; + // @ts-ignore + public static POLISHED_DIORITE: number; + // @ts-ignore + public static ANDESITE: number; + // @ts-ignore + public static POLISHED_ANDESITE: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public canSilkTouch(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStonecutter.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStonecutter.d.ts new file mode 100644 index 00000000..c42da651 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockStonecutter.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockStonecutter extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSugarcane.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSugarcane.d.ts new file mode 100644 index 00000000..37fe6531 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockSugarcane.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockSugarcane extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTNT.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTNT.d.ts new file mode 100644 index 00000000..ca32bd39 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTNT.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTNT extends cn.nukkit.block.BlockSolid { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public prime(): void; + // @ts-ignore + public prime(fuse: number): void; + // @ts-ignore + public prime(fuse: number, source: cn.nukkit.entity.Entity): void; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTallGrass.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTallGrass.d.ts new file mode 100644 index 00000000..b441f7fb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTallGrass.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTallGrass extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public canBeReplaced(): boolean; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracotta.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracotta.d.ts new file mode 100644 index 00000000..9d516d63 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracotta.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracotta extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor(dyeColor: cn.nukkit.utils.TerracottaColor) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.TerracottaColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazed.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazed.d.ts new file mode 100644 index 00000000..41210098 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazed.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockTerracottaGlazed extends cn.nukkit.block.BlockSolidMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBlack.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBlack.d.ts new file mode 100644 index 00000000..3bd02cbe --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBlack.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedBlack extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBlue.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBlue.d.ts new file mode 100644 index 00000000..2a7db531 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBlue.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedBlue extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBrown.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBrown.d.ts new file mode 100644 index 00000000..86b27d35 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedBrown.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedBrown extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedCyan.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedCyan.d.ts new file mode 100644 index 00000000..88b46ff1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedCyan.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedCyan extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedGray.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedGray.d.ts new file mode 100644 index 00000000..5f9e712f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedGray.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedGray extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedGreen.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedGreen.d.ts new file mode 100644 index 00000000..5ec273ba --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedGreen.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedGreen extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedLightBlue.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedLightBlue.d.ts new file mode 100644 index 00000000..c68cd6ee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedLightBlue.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedLightBlue extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedLime.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedLime.d.ts new file mode 100644 index 00000000..ce7d2265 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedLime.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedLime extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedMagenta.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedMagenta.d.ts new file mode 100644 index 00000000..30e75335 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedMagenta.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedMagenta extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedOrange.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedOrange.d.ts new file mode 100644 index 00000000..9c655b33 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedOrange.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedOrange extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedPink.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedPink.d.ts new file mode 100644 index 00000000..20fae2bb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedPink.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedPink extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedPurple.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedPurple.d.ts new file mode 100644 index 00000000..bde9962a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedPurple.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedPurple extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedRed.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedRed.d.ts new file mode 100644 index 00000000..339ea6bb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedRed.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedRed extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedSilver.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedSilver.d.ts new file mode 100644 index 00000000..b162d02f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedSilver.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedSilver extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedWhite.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedWhite.d.ts new file mode 100644 index 00000000..ce81f9fc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedWhite.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedWhite extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedYellow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedYellow.d.ts new file mode 100644 index 00000000..f7c50bed --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaGlazedYellow.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaGlazedYellow extends cn.nukkit.block.BlockTerracottaGlazed { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaStained.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaStained.d.ts new file mode 100644 index 00000000..efb262a7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTerracottaStained.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTerracottaStained extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor(dyeColor: cn.nukkit.utils.DyeColor) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockThin.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockThin.d.ts new file mode 100644 index 00000000..c97337c8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockThin.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockThin extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public canConnect(block: cn.nukkit.block.Block): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTorch.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTorch.d.ts new file mode 100644 index 00000000..f8390162 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTorch.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTorch extends cn.nukkit.block.BlockFlowable implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLightLevel(): number; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + // @ts-ignore + public getBlockFace(meta: number): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTransparent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTransparent.d.ts new file mode 100644 index 00000000..e5e5ea9e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTransparent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockTransparent extends cn.nukkit.block.Block { + // @ts-ignore + constructor() + // @ts-ignore + public isTransparent(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTransparentMeta.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTransparentMeta.d.ts new file mode 100644 index 00000000..80681891 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTransparentMeta.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + abstract class BlockTransparentMeta extends cn.nukkit.block.BlockMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public isTransparent(): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrapdoor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrapdoor.d.ts new file mode 100644 index 00000000..83c65e56 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrapdoor.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTrapdoor extends cn.nukkit.block.BlockTransparentMeta implements cn.nukkit.utils.Faceable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static TRAPDOOR_OPEN_BIT: number; + // @ts-ignore + public static TRAPDOOR_TOP_BIT: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toggle(player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public isOpen(): boolean; + // @ts-ignore + public isTop(): boolean; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrapdoorIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrapdoorIron.d.ts new file mode 100644 index 00000000..29816ca5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrapdoorIron.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTrapdoorIron extends cn.nukkit.block.BlockTrapdoor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrappedChest.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrappedChest.d.ts new file mode 100644 index 00000000..c56335a2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTrappedChest.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTrappedChest extends cn.nukkit.block.BlockChest { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getWeakPower(face: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public isPowerSource(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTripWire.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTripWire.d.ts new file mode 100644 index 00000000..ebdc89e6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTripWire.d.ts @@ -0,0 +1,53 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTripWire extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public isPowered(): boolean; + // @ts-ignore + public isAttached(): boolean; + // @ts-ignore + public isDisarmed(): boolean; + // @ts-ignore + public setPowered(value: boolean): void; + // @ts-ignore + public setAttached(value: boolean): void; + // @ts-ignore + public setDisarmed(value: boolean): void; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public updateHook(scheduleUpdate: boolean): void; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + protected recalculateCollisionBoundingBox(): cn.nukkit.math.AxisAlignedBB; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTripWireHook.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTripWireHook.d.ts new file mode 100644 index 00000000..108403e7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockTripWireHook.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockTripWireHook extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onBreak(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public calculateState(onBreak: boolean, updateAround: boolean, pos: number, block: cn.nukkit.block.Block): void; + // @ts-ignore + public isAttached(): boolean; + // @ts-ignore + public isPowered(): boolean; + // @ts-ignore + public setPowered(value: boolean): void; + // @ts-ignore + public setAttached(value: boolean): void; + // @ts-ignore + public setFace(face: cn.nukkit.math.BlockFace): void; + // @ts-ignore + public isPowerSource(): boolean; + // @ts-ignore + public getWeakPower(face: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(side: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockUndyedShulkerBox.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockUndyedShulkerBox.d.ts new file mode 100644 index 00000000..d0ce5413 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockUndyedShulkerBox.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockUndyedShulkerBox extends cn.nukkit.block.BlockTransparent { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public canHarvestWithHand(): boolean; + // @ts-ignore + public onActivate(item: cn.nukkit.item.Item, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockUnknown.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockUnknown.d.ts new file mode 100644 index 00000000..ce66d534 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockUnknown.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockUnknown extends cn.nukkit.block.BlockMeta { + // @ts-ignore + constructor(id: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockVine.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockVine.d.ts new file mode 100644 index 00000000..d006672e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockVine.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockVine extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public hasEntityCollision(): boolean; + // @ts-ignore + public canBeReplaced(): boolean; + // @ts-ignore + public canBeClimbed(): boolean; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWall.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWall.d.ts new file mode 100644 index 00000000..9fe636d2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWall.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWall extends cn.nukkit.block.BlockTransparentMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static NONE_MOSSY_WALL: number; + // @ts-ignore + public static MOSSY_WALL: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public isSolid(): boolean; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public canConnect(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public canHarvestWithHand(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWallBanner.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWallBanner.d.ts new file mode 100644 index 00000000..9ecefcd7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWallBanner.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWallBanner extends cn.nukkit.block.BlockBanner { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onUpdate(type: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWallSign.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWallSign.d.ts new file mode 100644 index 00000000..6a773e7b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWallSign.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWallSign extends cn.nukkit.block.BlockSignPost { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public onUpdate(type: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWater.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWater.d.ts new file mode 100644 index 00000000..b5eba7d8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWater.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWater extends cn.nukkit.block.BlockLiquid { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getBlock(meta: number): cn.nukkit.block.BlockLiquid; + // @ts-ignore + public onEntityCollide(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public tickRate(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWaterLily.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWaterLily.d.ts new file mode 100644 index 00000000..f3c73927 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWaterLily.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWaterLily extends cn.nukkit.block.BlockFlowable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + protected recalculateBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public onUpdate(type: number): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public getFullId(): number; + // @ts-ignore + public setDamage(meta: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWaterStill.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWaterStill.d.ts new file mode 100644 index 00000000..c2c55ff3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWaterStill.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWaterStill extends cn.nukkit.block.BlockWater { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getBlock(meta: number): cn.nukkit.block.BlockLiquid; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWeightedPressurePlateHeavy.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWeightedPressurePlateHeavy.d.ts new file mode 100644 index 00000000..b00d5c03 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWeightedPressurePlateHeavy.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWeightedPressurePlateHeavy extends cn.nukkit.block.BlockPressurePlateBase { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + protected computeRedstoneStrength(): number; + // @ts-ignore + public getMaxWeight(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWeightedPressurePlateLight.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWeightedPressurePlateLight.d.ts new file mode 100644 index 00000000..29572c54 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWeightedPressurePlateLight.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWeightedPressurePlateLight extends cn.nukkit.block.BlockPressurePlateBase { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + protected computeRedstoneStrength(): number; + // @ts-ignore + public getMaxWeight(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWheat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWheat.d.ts new file mode 100644 index 00000000..dce87fa1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWheat.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWheat extends cn.nukkit.block.BlockCrops { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getDrops(item: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWood.d.ts new file mode 100644 index 00000000..c17ec5d2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWood.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWood extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static OAK: number; + // @ts-ignore + public static SPRUCE: number; + // @ts-ignore + public static BIRCH: number; + // @ts-ignore + public static JUNGLE: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public place(item: cn.nukkit.item.Item, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): boolean; + // @ts-ignore + public toItem(): cn.nukkit.item.Item; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWood2.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWood2.d.ts new file mode 100644 index 00000000..f6a4f036 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWood2.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWood2 extends cn.nukkit.block.BlockWood { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + public static ACACIA: number; + // @ts-ignore + public static DARK_OAK: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWool.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWool.d.ts new file mode 100644 index 00000000..d7efdb89 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.block.BlockWool.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace block { + // @ts-ignore + class BlockWool extends cn.nukkit.block.BlockSolidMeta { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: number) + // @ts-ignore + constructor(dyeColor: cn.nukkit.utils.DyeColor) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getToolType(): number; + // @ts-ignore + public getHardness(): number; + // @ts-ignore + public getResistance(): number; + // @ts-ignore + public getBurnChance(): number; + // @ts-ignore + public getBurnAbility(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntity.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntity.d.ts new file mode 100644 index 00000000..24022c98 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntity.d.ts @@ -0,0 +1,109 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + abstract class BlockEntity extends cn.nukkit.level.Position { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static CHEST: string; + // @ts-ignore + public static ENDER_CHEST: string; + // @ts-ignore + public static FURNACE: string; + // @ts-ignore + public static SIGN: string; + // @ts-ignore + public static MOB_SPAWNER: string; + // @ts-ignore + public static ENCHANT_TABLE: string; + // @ts-ignore + public static SKULL: string; + // @ts-ignore + public static FLOWER_POT: string; + // @ts-ignore + public static BREWING_STAND: string; + // @ts-ignore + public static DAYLIGHT_DETECTOR: string; + // @ts-ignore + public static MUSIC: string; + // @ts-ignore + public static ITEM_FRAME: string; + // @ts-ignore + public static CAULDRON: string; + // @ts-ignore + public static BEACON: string; + // @ts-ignore + public static PISTON_ARM: string; + // @ts-ignore + public static MOVING_BLOCK: string; + // @ts-ignore + public static COMPARATOR: string; + // @ts-ignore + public static HOPPER: string; + // @ts-ignore + public static BED: string; + // @ts-ignore + public static JUKEBOX: string; + // @ts-ignore + public static SHULKER_BOX: string; + // @ts-ignore + public static BANNER: string; + // @ts-ignore + public static count: number; + // @ts-ignore + public chunk: cn.nukkit.level.format.FullChunk; + // @ts-ignore + public name: string; + // @ts-ignore + public id: number; + // @ts-ignore + public movable: boolean; + // @ts-ignore + public closed: boolean; + // @ts-ignore + public namedTag: cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + protected lastUpdate: number; + // @ts-ignore + protected server: cn.nukkit.Server; + // @ts-ignore + protected timing: any /*co.aikar.timings.Timing*/; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public static createBlockEntity(type: string, chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, args: java.lang.Object): cn.nukkit.blockentity.BlockEntity; + // @ts-ignore + public static registerBlockEntity(name: string, c: java.lang.Class): boolean; + // @ts-ignore + public getSaveId(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getCleanedNBT(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getBlock(): cn.nukkit.block.Block; + // @ts-ignore + public abstract isBlockEntityValid(): boolean; + // @ts-ignore + public onUpdate(): boolean; + // @ts-ignore + public scheduleUpdate(): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public onBreak(): void; + // @ts-ignore + public setDirty(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isMovable(): boolean; + // @ts-ignore + public static getDefaultCompound(pos: cn.nukkit.math.Vector3, id: string): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBanner.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBanner.d.ts new file mode 100644 index 00000000..fe814dc4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBanner.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityBanner extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public color: number; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getBaseColor(): number; + // @ts-ignore + public setBaseColor(color: cn.nukkit.utils.DyeColor): void; + // @ts-ignore + public getType(): number; + // @ts-ignore + public setType(type: number): void; + // @ts-ignore + public addPattern(pattern: cn.nukkit.utils.BannerPattern): void; + // @ts-ignore + public getPattern(index: number): cn.nukkit.utils.BannerPattern; + // @ts-ignore + public removePattern(index: number): void; + // @ts-ignore + public getPatternsSize(): number; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBeacon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBeacon.d.ts new file mode 100644 index 00000000..091d5248 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBeacon.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityBeacon extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public onUpdate(): boolean; + // @ts-ignore + public getPowerLevel(): number; + // @ts-ignore + public setPowerLevel(level: number): void; + // @ts-ignore + public getPrimaryPower(): number; + // @ts-ignore + public setPrimaryPower(power: number): void; + // @ts-ignore + public getSecondaryPower(): number; + // @ts-ignore + public setSecondaryPower(power: number): void; + // @ts-ignore + public updateCompoundTag(nbt: cn.nukkit.nbt.tag.CompoundTag, player: cn.nukkit.Player): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBed.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBed.d.ts new file mode 100644 index 00000000..91f5acb6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBed.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityBed extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public color: number; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBrewingStand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBrewingStand.d.ts new file mode 100644 index 00000000..0cf2e707 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityBrewingStand.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityBrewingStand extends cn.nukkit.blockentity.BlockEntitySpawnable implements cn.nukkit.inventory.InventoryHolder, cn.nukkit.blockentity.BlockEntityContainer, cn.nukkit.blockentity.BlockEntityNameable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected inventory: cn.nukkit.inventory.BrewingInventory; + // @ts-ignore + public static MAX_BREW_TIME: number; + // @ts-ignore + public brewTime: number; + // @ts-ignore + public fuelTotal: number; + // @ts-ignore + public fuelAmount: number; + // @ts-ignore + public static ingredients: java.util.List; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public hasName(): boolean; + // @ts-ignore + public setName(name: string): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public onBreak(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getSize(): number; + // @ts-ignore + protected getSlotIndex(index: number): number; + // @ts-ignore + public getItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public setItem(index: number, item: cn.nukkit.item.Item): void; + // @ts-ignore + public getInventory(): cn.nukkit.inventory.BrewingInventory; + // @ts-ignore + protected checkIngredient(ingredient: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onUpdate(): boolean; + // @ts-ignore + protected sendFuel(): void; + // @ts-ignore + protected sendBrewTime(): void; + // @ts-ignore + public updateBlock(): void; + // @ts-ignore + public getFuel(): number; + // @ts-ignore + public setFuel(fuel: number): void; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityCauldron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityCauldron.d.ts new file mode 100644 index 00000000..6f532379 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityCauldron.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityCauldron extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public getPotionId(): number; + // @ts-ignore + public setPotionId(potionId: number): void; + // @ts-ignore + public hasPotion(): boolean; + // @ts-ignore + public isSplashPotion(): boolean; + // @ts-ignore + public setSplashPotion(value: boolean): void; + // @ts-ignore + public getCustomColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public isCustomColor(): boolean; + // @ts-ignore + public setCustomColor(color: cn.nukkit.utils.BlockColor): void; + // @ts-ignore + public setCustomColor(r: number, g: number, b: number): void; + // @ts-ignore + public clearCustomColor(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityChest.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityChest.d.ts new file mode 100644 index 00000000..9b393e1a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityChest.d.ts @@ -0,0 +1,57 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityChest extends cn.nukkit.blockentity.BlockEntitySpawnable implements cn.nukkit.inventory.InventoryHolder, cn.nukkit.blockentity.BlockEntityContainer, cn.nukkit.blockentity.BlockEntityNameable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected inventory: cn.nukkit.inventory.ChestInventory; + // @ts-ignore + protected doubleInventory: cn.nukkit.inventory.DoubleChestInventory; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public onBreak(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getSize(): number; + // @ts-ignore + protected getSlotIndex(index: number): number; + // @ts-ignore + public getItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public setItem(index: number, item: cn.nukkit.item.Item): void; + // @ts-ignore + public getInventory(): cn.nukkit.inventory.BaseInventory; + // @ts-ignore + public getRealInventory(): cn.nukkit.inventory.ChestInventory; + // @ts-ignore + protected checkPairing(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public hasName(): boolean; + // @ts-ignore + public setName(name: string): void; + // @ts-ignore + public isPaired(): boolean; + // @ts-ignore + public getPair(): cn.nukkit.blockentity.BlockEntityChest; + // @ts-ignore + public pairWith(chest: cn.nukkit.blockentity.BlockEntityChest): boolean; + // @ts-ignore + public createPair(chest: cn.nukkit.blockentity.BlockEntityChest): void; + // @ts-ignore + public unpair(): boolean; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityComparator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityComparator.d.ts new file mode 100644 index 00000000..a93c3a7a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityComparator.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityComparator extends cn.nukkit.blockentity.BlockEntity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getOutputSignal(): number; + // @ts-ignore + public setOutputSignal(outputSignal: number): void; + // @ts-ignore + public saveNBT(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityContainer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityContainer.d.ts new file mode 100644 index 00000000..e1eb6103 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityContainer.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + interface BlockEntityContainer { + /** + * 返回一个存储在容器里的物品的{@code Item}对象。
+ * Returns an item that stores in this container, as an {@code Item} object. + */ + // @ts-ignore + getItem(index: number): cn.nukkit.item.Item; + /** + * 把一个物品存储进容器。
+ * Sets or stores this item into this container. + *

注意:如果这个容器相应的索引序号已经有了物品,那么新存储的物品将会替换原有的物品。
+ * Notice: If there is already an item for this index number, the new item being stored will REPLACE the old one.

+ */ + // @ts-ignore + setItem(index: number, item: cn.nukkit.item.Item): void; + /** + * 返回这个容器最多能包含的物品数量。
+ * Returns the max number of items that this container can contain. + */ + // @ts-ignore + getSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityEnchantTable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityEnchantTable.d.ts new file mode 100644 index 00000000..0d6d232b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityEnchantTable.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityEnchantTable extends cn.nukkit.blockentity.BlockEntitySpawnable implements cn.nukkit.blockentity.BlockEntityNameable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public hasName(): boolean; + // @ts-ignore + public setName(name: string): void; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityEnderChest.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityEnderChest.d.ts new file mode 100644 index 00000000..334faa3b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityEnderChest.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityEnderChest extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityFlowerPot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityFlowerPot.d.ts new file mode 100644 index 00000000..505d33cd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityFlowerPot.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityFlowerPot extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityFurnace.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityFurnace.d.ts new file mode 100644 index 00000000..720fde85 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityFurnace.d.ts @@ -0,0 +1,69 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityFurnace extends cn.nukkit.blockentity.BlockEntitySpawnable implements cn.nukkit.inventory.InventoryHolder, cn.nukkit.blockentity.BlockEntityContainer, cn.nukkit.blockentity.BlockEntityNameable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected inventory: cn.nukkit.inventory.FurnaceInventory; + // @ts-ignore + protected burnTime: number; + // @ts-ignore + protected burnDuration: number; + // @ts-ignore + protected cookTime: number; + // @ts-ignore + protected maxTime: number; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public hasName(): boolean; + // @ts-ignore + public setName(name: string): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public onBreak(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getSize(): number; + // @ts-ignore + protected getSlotIndex(index: number): number; + // @ts-ignore + public getItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public setItem(index: number, item: cn.nukkit.item.Item): void; + // @ts-ignore + public getInventory(): cn.nukkit.inventory.FurnaceInventory; + // @ts-ignore + protected checkFuel(fuel: cn.nukkit.item.Item): void; + // @ts-ignore + public onUpdate(): boolean; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getBurnTime(): number; + // @ts-ignore + public setBurnTime(burnTime: number): void; + // @ts-ignore + public getBurnDuration(): number; + // @ts-ignore + public setBurnDuration(burnDuration: number): void; + // @ts-ignore + public getCookTime(): number; + // @ts-ignore + public setCookTime(cookTime: number): void; + // @ts-ignore + public getMaxTime(): number; + // @ts-ignore + public setMaxTime(maxTime: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityHopper.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityHopper.d.ts new file mode 100644 index 00000000..6050c0a1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityHopper.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityHopper extends cn.nukkit.blockentity.BlockEntitySpawnable implements cn.nukkit.inventory.InventoryHolder, cn.nukkit.blockentity.BlockEntityContainer, cn.nukkit.blockentity.BlockEntityNameable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected inventory: cn.nukkit.inventory.HopperInventory; + // @ts-ignore + public transferCooldown: number; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public hasName(): boolean; + // @ts-ignore + public setName(name: string): void; + // @ts-ignore + public isOnTransferCooldown(): boolean; + // @ts-ignore + public setTransferCooldown(transferCooldown: number): void; + // @ts-ignore + public getSize(): number; + // @ts-ignore + protected getSlotIndex(index: number): number; + // @ts-ignore + public getItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public setItem(index: number, item: cn.nukkit.item.Item): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getInventory(): cn.nukkit.inventory.HopperInventory; + // @ts-ignore + public onUpdate(): boolean; + // @ts-ignore + public pullItems(): boolean; + // @ts-ignore + public pickupItems(): boolean; + // @ts-ignore + public close(): void; + // @ts-ignore + public onBreak(): void; + // @ts-ignore + public pushItems(): boolean; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityItemFrame.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityItemFrame.d.ts new file mode 100644 index 00000000..0646d515 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityItemFrame.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityItemFrame extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getItemRotation(): number; + // @ts-ignore + public setItemRotation(itemRotation: number): void; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public setItem(item: cn.nukkit.item.Item): void; + // @ts-ignore + public setItem(item: cn.nukkit.item.Item, setChanged: boolean): void; + // @ts-ignore + public getItemDropChance(): number; + // @ts-ignore + public setItemDropChance(chance: number): void; + // @ts-ignore + public setDirty(): void; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getAnalogOutput(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityJukebox.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityJukebox.d.ts new file mode 100644 index 00000000..b873b2e8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityJukebox.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityJukebox extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public setRecordItem(recordItem: cn.nukkit.item.Item): void; + // @ts-ignore + public getRecordItem(): cn.nukkit.item.Item; + // @ts-ignore + public play(): void; + // @ts-ignore + public stop(): void; + // @ts-ignore + public dropItem(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityMovingBlock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityMovingBlock.d.ts new file mode 100644 index 00000000..cb7cb72d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityMovingBlock.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityMovingBlock extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public block: cn.nukkit.block.Block; + // @ts-ignore + public piston: cn.nukkit.math.BlockVector3; + // @ts-ignore + public progress: number; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public getBlock(): cn.nukkit.block.Block; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityMusic.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityMusic.d.ts new file mode 100644 index 00000000..fb3dcaa4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityMusic.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityMusic extends cn.nukkit.blockentity.BlockEntity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public changePitch(): void; + // @ts-ignore + public getPitch(): number; + // @ts-ignore + public setPowered(powered: boolean): void; + // @ts-ignore + public isPowered(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityNameable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityNameable.d.ts new file mode 100644 index 00000000..b6dba7c4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityNameable.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + interface BlockEntityNameable { + /** + * 返回这个事物的名字。
+ * Gets the name of this object. + */ + // @ts-ignore + getName(): string; + /** + * 设置或更改这个事物的名字。
+ * Changes the name of this object, or names it. + */ + // @ts-ignore + setName(name: string): void; + /** + * 返回这个事物是否有名字。
+ * Whether this object has a name. + */ + // @ts-ignore + hasName(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityPistonArm.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityPistonArm.d.ts new file mode 100644 index 00000000..89e1b9c6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityPistonArm.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityPistonArm extends cn.nukkit.blockentity.BlockEntity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public progress: number; + // @ts-ignore + public lastProgress: number; + // @ts-ignore + public facing: cn.nukkit.math.BlockFace; + // @ts-ignore + public extending: boolean; + // @ts-ignore + public sticky: boolean; + // @ts-ignore + public state: number; + // @ts-ignore + public newState: number; + // @ts-ignore + public attachedBlock: cn.nukkit.math.Vector3; + // @ts-ignore + public isMovable: boolean; + // @ts-ignore + public powered: boolean; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityShulkerBox.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityShulkerBox.d.ts new file mode 100644 index 00000000..7d08545c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntityShulkerBox.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntityShulkerBox extends cn.nukkit.blockentity.BlockEntitySpawnable implements cn.nukkit.inventory.InventoryHolder, cn.nukkit.blockentity.BlockEntityContainer, cn.nukkit.blockentity.BlockEntityNameable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected inventory: cn.nukkit.inventory.ShulkerBoxInventory; + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getSize(): number; + // @ts-ignore + protected getSlotIndex(index: number): number; + // @ts-ignore + public getItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public setItem(index: number, item: cn.nukkit.item.Item): void; + // @ts-ignore + public getInventory(): cn.nukkit.inventory.BaseInventory; + // @ts-ignore + public getRealInventory(): cn.nukkit.inventory.ShulkerBoxInventory; + // @ts-ignore + public getName(): string; + // @ts-ignore + public hasName(): boolean; + // @ts-ignore + public setName(name: string): void; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySign.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySign.d.ts new file mode 100644 index 00000000..e4d6e635 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySign.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntitySign extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public setText(lines: string): boolean; + // @ts-ignore + public getText(): java.lang.String[]; + // @ts-ignore + public updateCompoundTag(nbt: cn.nukkit.nbt.tag.CompoundTag, player: cn.nukkit.Player): boolean; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySkull.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySkull.d.ts new file mode 100644 index 00000000..7dcfdca8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySkull.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + class BlockEntitySkull extends cn.nukkit.blockentity.BlockEntitySpawnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public isBlockEntityValid(): boolean; + // @ts-ignore + public getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySpawnable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySpawnable.d.ts new file mode 100644 index 00000000..db0ad107 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.blockentity.BlockEntitySpawnable.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace blockentity { + // @ts-ignore + abstract class BlockEntitySpawnable extends cn.nukkit.blockentity.BlockEntity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected initBlockEntity(): void; + // @ts-ignore + public abstract getSpawnCompound(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public spawnTo(player: cn.nukkit.Player): void; + // @ts-ignore + public spawnToAll(): void; + /** + * Called when a player updates a block entity's NBT data + * for example when writing on a sign. + */ + // @ts-ignore + public updateCompoundTag(nbt: cn.nukkit.nbt.tag.CompoundTag, player: cn.nukkit.Player): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.Command.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.Command.d.ts new file mode 100644 index 00000000..51186857 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.Command.d.ts @@ -0,0 +1,100 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + abstract class Command extends java.lang.Object { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, description: string) + // @ts-ignore + constructor(name: string, description: string, usageMessage: string) + // @ts-ignore + constructor(name: string, description: string, usageMessage: string, aliases: string) + // @ts-ignore + protected commandData: cn.nukkit.command.data.CommandData; + // @ts-ignore + protected description: string; + // @ts-ignore + protected usageMessage: string; + // @ts-ignore + protected commandParameters: java.util.Map; + // @ts-ignore + public timing: any /*co.aikar.timings.Timing*/; + /** + * Returns an CommandData containing command data + */ + // @ts-ignore + public getDefaultCommandData(): cn.nukkit.command.data.CommandData; + // @ts-ignore + public getCommandParameters(key: string): cn.nukkit.command.data.CommandParameter[]; + // @ts-ignore + public getCommandParameters(): java.util.Map; + // @ts-ignore + public setCommandParameters(commandParameters: java.util.Map): void; + // @ts-ignore + public addCommandParameters(key: string, parameters: cn.nukkit.command.data.CommandParameter): void; + /** + * Generates modified command data for the specified player + * for AvailableCommandsPacket. + */ + // @ts-ignore + public generateCustomCommandData(player: cn.nukkit.Player): cn.nukkit.command.data.CommandDataVersions; + // @ts-ignore + public getOverloads(): java.util.Map; + // @ts-ignore + public abstract execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getPermission(): string; + // @ts-ignore + public setPermission(permission: string): void; + // @ts-ignore + public testPermission(target: cn.nukkit.command.CommandSender): boolean; + // @ts-ignore + public testPermissionSilent(target: cn.nukkit.command.CommandSender): boolean; + // @ts-ignore + public getLabel(): string; + // @ts-ignore + public setLabel(name: string): boolean; + // @ts-ignore + public register(commandMap: cn.nukkit.command.CommandMap): boolean; + // @ts-ignore + public unregister(commandMap: cn.nukkit.command.CommandMap): boolean; + // @ts-ignore + public allowChangesFrom(commandMap: cn.nukkit.command.CommandMap): boolean; + // @ts-ignore + public isRegistered(): boolean; + // @ts-ignore + public getAliases(): java.lang.String[]; + // @ts-ignore + public getPermissionMessage(): string; + // @ts-ignore + public getDescription(): string; + // @ts-ignore + public getUsage(): string; + // @ts-ignore + public setAliases(aliases: string): void; + // @ts-ignore + public setDescription(description: string): void; + // @ts-ignore + public setPermissionMessage(permissionMessage: string): void; + // @ts-ignore + public setUsage(usageMessage: string): void; + // @ts-ignore + public static generateDefaultData(): cn.nukkit.command.data.CommandData; + // @ts-ignore + public static broadcastCommandMessage(source: cn.nukkit.command.CommandSender, message: string): void; + // @ts-ignore + public static broadcastCommandMessage(source: cn.nukkit.command.CommandSender, message: string, sendToSource: boolean): void; + // @ts-ignore + public static broadcastCommandMessage(source: cn.nukkit.command.CommandSender, message: cn.nukkit.lang.TextContainer): void; + // @ts-ignore + public static broadcastCommandMessage(source: cn.nukkit.command.CommandSender, message: cn.nukkit.lang.TextContainer, sendToSource: boolean): void; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.CommandExecutor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.CommandExecutor.d.ts new file mode 100644 index 00000000..12523579 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.CommandExecutor.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + interface CommandExecutor { + /** + * 在命令执行时会调用的方法。
+ * Called when a command is executed. + *

一个命令可以是{@code /a_LABEL an_arg1 AN_ARG2...}的形式,这时{@code label}变量的值为{@code "a_label"}, + * {@code args}数组的元素有{@code "an_arg1","AN_ARG2",...}。注意到{@code label}变量会被转化成小写, + * 而{@code args}数组内字符串元素的大小写不变。
+ * A command can be such a form like {@code /a_LABEL an_arg1 AN_ARG2...}. At this time, the value of + * variable {@code label} is {@code "a_label"}, and the values of elements of array {@code args} are + * {@code "an_arg1","AN_ARG2",...}. Notice that the value of variable {@code label} will be converted to + * lower case, but the cases of elements of array {@code args} won't change.

+ *

关于返回值,如果返回{@code false},Nukkit会给sender发送这个命令的使用方法等信息,来表示这个命令没有使用成功。 + * 如果你的命令成功的发挥了作用,你应该返回{@code true}来表示这个命令已执行成功。
+ * If this function returns {@code false}, Nukkit will send command usages to command sender, to explain that + * the command didn't work normally. If your command works properly, a {@code true} should be returned to explain + * that the command works.

+ *

如果你想测试一个命令发送者是否有权限执行这个命令, + * 可以使用{@link cn.nukkit.command.Command#testPermissionSilent}。
+ * If you want to test whether a command sender has the permission to execute a command, + * you can use {@link cn.nukkit.command.Command#testPermissionSilent}.

+ */ + // @ts-ignore + onCommand(sender: cn.nukkit.command.CommandSender, command: cn.nukkit.command.Command, label: string, args: string): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.CommandMap.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.CommandMap.d.ts new file mode 100644 index 00000000..bdb7d447 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.CommandMap.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + interface CommandMap { + // @ts-ignore + registerAll(fallbackPrefix: string, commands: java.util.List): void; + // @ts-ignore + register(fallbackPrefix: string, command: cn.nukkit.command.Command): boolean; + // @ts-ignore + register(fallbackPrefix: string, command: cn.nukkit.command.Command, label: string): boolean; + // @ts-ignore + registerSimpleCommands(object: java.lang.Object): void; + // @ts-ignore + dispatch(sender: cn.nukkit.command.CommandSender, cmdLine: string): boolean; + // @ts-ignore + clearCommands(): void; + // @ts-ignore + getCommand(name: string): cn.nukkit.command.Command; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.CommandSender.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.CommandSender.d.ts new file mode 100644 index 00000000..eb9a5670 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.CommandSender.d.ts @@ -0,0 +1,42 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + interface CommandSender extends cn.nukkit.permission.Permissible { + /** + * 给命令发送者返回信息。
+ * Sends a message to the command sender. + */ + // @ts-ignore + sendMessage(message: string): void; + /** + * 给命令发送者返回信息。
+ * Sends a message to the command sender. + */ + // @ts-ignore + sendMessage(message: cn.nukkit.lang.TextContainer): void; + /** + * 返回命令发送者所在的服务器。
+ * Returns the server of the command sender. + */ + // @ts-ignore + getServer(): cn.nukkit.Server; + /** + * 返回命令发送者的名称。
+ * Returns the name of the command sender. + *

如果命令发送者是一个玩家,将会返回他的玩家名字(name)不是显示名字(display name)。 + * 如果命令发送者是控制台,将会返回{@code "CONSOLE"}。
+ * If this command sender is a player, will return his/her player name(not display name). + * If it is a console, will return {@code "CONSOLE"}.

+ *

当你需要判断命令的执行者是不是控制台时,可以用这个:
+ * When you need to determine if the sender is a console, use this:
+ * {@code if(sender instanceof ConsoleCommandSender) .....;}

+ */ + // @ts-ignore + getName(): string; + // @ts-ignore + isPlayer(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.ConsoleCommandSender.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.ConsoleCommandSender.d.ts new file mode 100644 index 00000000..264226e6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.ConsoleCommandSender.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + class ConsoleCommandSender extends java.lang.Object implements cn.nukkit.command.CommandSender { + // @ts-ignore + constructor() + // @ts-ignore + public isPermissionSet(name: string): boolean; + // @ts-ignore + public isPermissionSet(permission: cn.nukkit.permission.Permission): boolean; + // @ts-ignore + public hasPermission(name: string): boolean; + // @ts-ignore + public hasPermission(permission: cn.nukkit.permission.Permission): boolean; + // @ts-ignore + public addAttachment(plugin: cn.nukkit.plugin.Plugin): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public addAttachment(plugin: cn.nukkit.plugin.Plugin, name: string): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public addAttachment(plugin: cn.nukkit.plugin.Plugin, name: string, value: java.lang.Boolean): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public removeAttachment(attachment: cn.nukkit.permission.PermissionAttachment): void; + // @ts-ignore + public recalculatePermissions(): void; + // @ts-ignore + public getEffectivePermissions(): java.util.Map; + // @ts-ignore + public isPlayer(): boolean; + // @ts-ignore + public getServer(): cn.nukkit.Server; + // @ts-ignore + public sendMessage(message: string): void; + // @ts-ignore + public sendMessage(message: cn.nukkit.lang.TextContainer): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isOp(): boolean; + // @ts-ignore + public setOp(value: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.FormattedCommandAlias.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.FormattedCommandAlias.d.ts new file mode 100644 index 00000000..01dee52d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.FormattedCommandAlias.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + class FormattedCommandAlias extends cn.nukkit.command.Command { + // @ts-ignore + constructor(alias: string, formatStrings: string) + // @ts-ignore + constructor(alias: string, formatStrings: java.util.List) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.PluginCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.PluginCommand.d.ts new file mode 100644 index 00000000..ed331066 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.PluginCommand.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + class PluginCommand extends cn.nukkit.command.Command implements cn.nukkit.command.PluginIdentifiableCommand { + // @ts-ignore + constructor(name: string, owner: cn.nukkit.plugin.Plugin) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + // @ts-ignore + public getExecutor(): cn.nukkit.command.CommandExecutor; + // @ts-ignore + public setExecutor(executor: cn.nukkit.command.CommandExecutor): void; + // @ts-ignore + public getPlugin(): cn.nukkit.plugin.Plugin; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.PluginIdentifiableCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.PluginIdentifiableCommand.d.ts new file mode 100644 index 00000000..81d3ea76 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.PluginIdentifiableCommand.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + interface PluginIdentifiableCommand { + // @ts-ignore + getPlugin(): cn.nukkit.plugin.Plugin; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.RemoteConsoleCommandSender.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.RemoteConsoleCommandSender.d.ts new file mode 100644 index 00000000..4da8fc76 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.RemoteConsoleCommandSender.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + class RemoteConsoleCommandSender extends cn.nukkit.command.ConsoleCommandSender { + // @ts-ignore + constructor() + // @ts-ignore + public sendMessage(message: string): void; + // @ts-ignore + public sendMessage(message: cn.nukkit.lang.TextContainer): void; + // @ts-ignore + public getMessages(): string; + // @ts-ignore + public getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.SimpleCommandMap.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.SimpleCommandMap.d.ts new file mode 100644 index 00000000..29331b89 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.SimpleCommandMap.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace command { + // @ts-ignore + class SimpleCommandMap extends java.lang.Object implements cn.nukkit.command.CommandMap { + // @ts-ignore + constructor(server: cn.nukkit.Server) + // @ts-ignore + protected knownCommands: java.util.Map; + // @ts-ignore + public registerAll(fallbackPrefix: string, commands: java.util.List): void; + // @ts-ignore + public register(fallbackPrefix: string, command: cn.nukkit.command.Command): boolean; + // @ts-ignore + public register(fallbackPrefix: string, command: cn.nukkit.command.Command, label: string): boolean; + // @ts-ignore + public registerSimpleCommands(object: java.lang.Object): void; + // @ts-ignore + public dispatch(sender: cn.nukkit.command.CommandSender, cmdLine: string): boolean; + // @ts-ignore + public clearCommands(): void; + // @ts-ignore + public getCommand(name: string): cn.nukkit.command.Command; + // @ts-ignore + public getCommands(): java.util.Map; + // @ts-ignore + public registerServerAliases(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandArgs.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandArgs.d.ts new file mode 100644 index 00000000..e81249c9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandArgs.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + // @ts-ignore + class CommandArgs extends java.util.HashMap { + // @ts-ignore + constructor() + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandData.d.ts new file mode 100644 index 00000000..fd761fb0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandData.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + // @ts-ignore + class CommandData extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public aliases: cn.nukkit.command.data.CommandEnum; + // @ts-ignore + public description: string; + // @ts-ignore + public overloads: java.util.Map; + // @ts-ignore + public flags: number; + // @ts-ignore + public permission: number; + // @ts-ignore + public clone(): cn.nukkit.command.data.CommandData; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandDataVersions.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandDataVersions.d.ts new file mode 100644 index 00000000..a4006191 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandDataVersions.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + // @ts-ignore + class CommandDataVersions extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public versions: java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandEnum.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandEnum.d.ts new file mode 100644 index 00000000..a0921333 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandEnum.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + // @ts-ignore + class CommandEnum extends java.lang.Object { + // @ts-ignore + constructor(name: string, values: java.util.List) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getValues(): java.util.List; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandInput.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandInput.d.ts new file mode 100644 index 00000000..f6047038 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandInput.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + // @ts-ignore + class CommandInput extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public parameters: cn.nukkit.command.data.CommandParameter[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandOutput.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandOutput.d.ts new file mode 100644 index 00000000..5c1d8d46 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandOutput.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + // @ts-ignore + class CommandOutput extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public format_strings: java.lang.String[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandOverload.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandOverload.d.ts new file mode 100644 index 00000000..66403d70 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandOverload.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + // @ts-ignore + class CommandOverload extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public input: cn.nukkit.command.data.CommandInput; + // @ts-ignore + public output: cn.nukkit.command.data.CommandOutput; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandParamType.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandParamType.d.ts new file mode 100644 index 00000000..0497b078 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandParamType.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + // @ts-ignore + class CommandParamType extends java.lang.Enum { + // @ts-ignore + public static INT: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static FLOAT: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static VALUE: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static WILDCARD_INT: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static TARGET: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static WILDCARD_TARGET: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static STRING: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static POSITION: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static MESSAGE: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static RAWTEXT: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static JSON: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static TEXT: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static COMMAND: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static FILE_PATH: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static OPERATOR: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public static values(): cn.nukkit.command.data.CommandParamType[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public getId(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandParameter.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandParameter.d.ts new file mode 100644 index 00000000..31e47e87 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.CommandParameter.d.ts @@ -0,0 +1,71 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + // @ts-ignore + class CommandParameter extends java.lang.Object { + // @ts-ignore + constructor(name: string, type: string, optional: boolean) + // @ts-ignore + constructor(name: string, type: cn.nukkit.command.data.CommandParamType, optional: boolean) + // @ts-ignore + constructor(name: string, optional: boolean) + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, optional: boolean, enumType: string) + // @ts-ignore + constructor(name: string, optional: boolean, enumValues: string) + // @ts-ignore + constructor(name: string, enumType: string) + // @ts-ignore + constructor(name: string, enumValues: string) + // @ts-ignore + public static ARG_TYPE_STRING: string; + // @ts-ignore + public static ARG_TYPE_STRING_ENUM: string; + // @ts-ignore + public static ARG_TYPE_BOOL: string; + // @ts-ignore + public static ARG_TYPE_TARGET: string; + // @ts-ignore + public static ARG_TYPE_PLAYER: string; + // @ts-ignore + public static ARG_TYPE_BLOCK_POS: string; + // @ts-ignore + public static ARG_TYPE_RAW_TEXT: string; + // @ts-ignore + public static ARG_TYPE_INT: string; + // @ts-ignore + public static ENUM_TYPE_ITEM_LIST: string; + // @ts-ignore + public static ENUM_TYPE_BLOCK_LIST: string; + // @ts-ignore + public static ENUM_TYPE_COMMAND_LIST: string; + // @ts-ignore + public static ENUM_TYPE_ENCHANTMENT_LIST: string; + // @ts-ignore + public static ENUM_TYPE_ENTITY_LIST: string; + // @ts-ignore + public static ENUM_TYPE_EFFECT_LIST: string; + // @ts-ignore + public static ENUM_TYPE_PARTICLE_LIST: string; + // @ts-ignore + public name: string; + // @ts-ignore + public type: cn.nukkit.command.data.CommandParamType; + // @ts-ignore + public optional: boolean; + // @ts-ignore + public options: number; + // @ts-ignore + public enumData: cn.nukkit.command.data.CommandEnum; + // @ts-ignore + public postFix: string; + // @ts-ignore + protected static fromString(param: string): cn.nukkit.command.data.CommandParamType; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArg.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArg.d.ts new file mode 100644 index 00000000..d41bdf7a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArg.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + namespace args { + // @ts-ignore + class CommandArg extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public getRules(): cn.nukkit.command.data.args.CommandArgRules[]; + // @ts-ignore + public getSelector(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArgBlockVector.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArgBlockVector.d.ts new file mode 100644 index 00000000..9b137c2b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArgBlockVector.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + namespace args { + // @ts-ignore + class CommandArgBlockVector extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public getX(): number; + // @ts-ignore + public getY(): number; + // @ts-ignore + public getZ(): number; + // @ts-ignore + public isXrelative(): boolean; + // @ts-ignore + public isYrelative(): boolean; + // @ts-ignore + public isZrelative(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArgRules.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArgRules.d.ts new file mode 100644 index 00000000..7ca5c2f5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.data.args.CommandArgRules.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace data { + namespace args { + // @ts-ignore + class CommandArgRules extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public isInverted(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getValue(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanCommand.d.ts new file mode 100644 index 00000000..12fa2463 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class BanCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanIpCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanIpCommand.d.ts new file mode 100644 index 00000000..d2a14746 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanIpCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class BanIpCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanListCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanListCommand.d.ts new file mode 100644 index 00000000..80c53f76 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.BanListCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class BanListCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DebugPasteCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DebugPasteCommand.d.ts new file mode 100644 index 00000000..a4ec629f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DebugPasteCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class DebugPasteCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DefaultGamemodeCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DefaultGamemodeCommand.d.ts new file mode 100644 index 00000000..3a12940a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DefaultGamemodeCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class DefaultGamemodeCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DeopCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DeopCommand.d.ts new file mode 100644 index 00000000..87cda81b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DeopCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class DeopCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DifficultyCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DifficultyCommand.d.ts new file mode 100644 index 00000000..bc867026 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.DifficultyCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class DifficultyCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.EffectCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.EffectCommand.d.ts new file mode 100644 index 00000000..016c0c9a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.EffectCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class EffectCommand extends cn.nukkit.command.Command { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.EnchantCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.EnchantCommand.d.ts new file mode 100644 index 00000000..b2781ee0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.EnchantCommand.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class EnchantCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + // @ts-ignore + public getIdByName(value: string): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GamemodeCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GamemodeCommand.d.ts new file mode 100644 index 00000000..1a58b4a7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GamemodeCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class GamemodeCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GameruleCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GameruleCommand.d.ts new file mode 100644 index 00000000..acca232c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GameruleCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class GameruleCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GarbageCollectorCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GarbageCollectorCommand.d.ts new file mode 100644 index 00000000..21d3a2f9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GarbageCollectorCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class GarbageCollectorCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GiveCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GiveCommand.d.ts new file mode 100644 index 00000000..b4710622 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.GiveCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class GiveCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.HelpCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.HelpCommand.d.ts new file mode 100644 index 00000000..32749015 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.HelpCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class HelpCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.KickCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.KickCommand.d.ts new file mode 100644 index 00000000..12a15d70 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.KickCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class KickCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.KillCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.KillCommand.d.ts new file mode 100644 index 00000000..d2902703 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.KillCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class KillCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ListCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ListCommand.d.ts new file mode 100644 index 00000000..feb44494 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ListCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class ListCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.MeCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.MeCommand.d.ts new file mode 100644 index 00000000..60f47cb3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.MeCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class MeCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.OpCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.OpCommand.d.ts new file mode 100644 index 00000000..f8620824 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.OpCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class OpCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PardonCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PardonCommand.d.ts new file mode 100644 index 00000000..1b9a4ff5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PardonCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class PardonCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PardonIpCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PardonIpCommand.d.ts new file mode 100644 index 00000000..12e1282d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PardonIpCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class PardonIpCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ParticleCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ParticleCommand.d.ts new file mode 100644 index 00000000..1a8b0363 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ParticleCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class ParticleCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PluginsCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PluginsCommand.d.ts new file mode 100644 index 00000000..58e84dbb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.PluginsCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class PluginsCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ReloadCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ReloadCommand.d.ts new file mode 100644 index 00000000..1ac041c2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.ReloadCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class ReloadCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveCommand.d.ts new file mode 100644 index 00000000..4c31ecbb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class SaveCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveOffCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveOffCommand.d.ts new file mode 100644 index 00000000..6ad4f01e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveOffCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class SaveOffCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveOnCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveOnCommand.d.ts new file mode 100644 index 00000000..9957fb62 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SaveOnCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class SaveOnCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SayCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SayCommand.d.ts new file mode 100644 index 00000000..ba8ca5f8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SayCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class SayCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SeedCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SeedCommand.d.ts new file mode 100644 index 00000000..7132eb8d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SeedCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class SeedCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SetWorldSpawnCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SetWorldSpawnCommand.d.ts new file mode 100644 index 00000000..f7e069ee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SetWorldSpawnCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class SetWorldSpawnCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SpawnpointCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SpawnpointCommand.d.ts new file mode 100644 index 00000000..2d7f74df --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.SpawnpointCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class SpawnpointCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.StatusCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.StatusCommand.d.ts new file mode 100644 index 00000000..43936ec1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.StatusCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class StatusCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.StopCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.StopCommand.d.ts new file mode 100644 index 00000000..bbbe7da6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.StopCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class StopCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TeleportCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TeleportCommand.d.ts new file mode 100644 index 00000000..7e5dd35b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TeleportCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class TeleportCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TellCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TellCommand.d.ts new file mode 100644 index 00000000..51517733 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TellCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class TellCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TimeCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TimeCommand.d.ts new file mode 100644 index 00000000..d60f5b58 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TimeCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class TimeCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TimingsCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TimingsCommand.d.ts new file mode 100644 index 00000000..1d6364e8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TimingsCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class TimingsCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TitleCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TitleCommand.d.ts new file mode 100644 index 00000000..05074595 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.TitleCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class TitleCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.VanillaCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.VanillaCommand.d.ts new file mode 100644 index 00000000..fe7564e7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.VanillaCommand.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + abstract class VanillaCommand extends cn.nukkit.command.Command { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, description: string) + // @ts-ignore + constructor(name: string, description: string, usageMessage: string) + // @ts-ignore + constructor(name: string, description: string, usageMessage: string, aliases: string) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.VersionCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.VersionCommand.d.ts new file mode 100644 index 00000000..a8693a5b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.VersionCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class VersionCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.WeatherCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.WeatherCommand.d.ts new file mode 100644 index 00000000..aa3214bc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.WeatherCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class WeatherCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.WhitelistCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.WhitelistCommand.d.ts new file mode 100644 index 00000000..bede1c85 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.WhitelistCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class WhitelistCommand extends cn.nukkit.command.defaults.VanillaCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.XpCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.XpCommand.d.ts new file mode 100644 index 00000000..af996b15 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.defaults.XpCommand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace defaults { + // @ts-ignore + class XpCommand extends cn.nukkit.command.Command { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Arguments.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Arguments.d.ts new file mode 100644 index 00000000..29b9ff1c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Arguments.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace simple { + // @ts-ignore + interface Arguments { + // @ts-ignore + min(): number; + // @ts-ignore + max(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Command.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Command.d.ts new file mode 100644 index 00000000..7d3c0fcb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Command.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace simple { + // @ts-ignore + interface Command { + // @ts-ignore + name(): string; + // @ts-ignore + description(): string; + // @ts-ignore + usageMessage(): string; + // @ts-ignore + aliases(): java.lang.String[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.CommandParameters.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.CommandParameters.d.ts new file mode 100644 index 00000000..54953719 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.CommandParameters.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace simple { + // @ts-ignore + interface CommandParameters { + // @ts-ignore + parameters(): cn.nukkit.command.simple.Parameters[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.CommandPermission.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.CommandPermission.d.ts new file mode 100644 index 00000000..cad14c37 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.CommandPermission.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace simple { + // @ts-ignore + interface CommandPermission { + // @ts-ignore + value(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.ForbidConsole.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.ForbidConsole.d.ts new file mode 100644 index 00000000..4a1f246c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.ForbidConsole.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace simple { + // @ts-ignore + interface ForbidConsole { + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Parameter.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Parameter.d.ts new file mode 100644 index 00000000..aeec2e32 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Parameter.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace simple { + // @ts-ignore + interface Parameter { + // @ts-ignore + name(): string; + // @ts-ignore + type(): cn.nukkit.command.data.CommandParamType; + // @ts-ignore + optional(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Parameters.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Parameters.d.ts new file mode 100644 index 00000000..f33f1095 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.Parameters.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace simple { + // @ts-ignore + interface Parameters { + // @ts-ignore + name(): string; + // @ts-ignore + parameters(): cn.nukkit.command.simple.Parameter[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.SimpleCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.SimpleCommand.d.ts new file mode 100644 index 00000000..7580a4b4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.command.simple.SimpleCommand.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace command { + namespace simple { + // @ts-ignore + class SimpleCommand extends cn.nukkit.command.Command { + // @ts-ignore + constructor(object: java.lang.Object, method: java.lang.reflect.Method, name: string, description: string, usageMessage: string, aliases: string) + // @ts-ignore + public setForbidConsole(forbidConsole: boolean): void; + // @ts-ignore + public setMaxArgs(maxArgs: number): void; + // @ts-ignore + public setMinArgs(minArgs: number): void; + // @ts-ignore + public sendUsageMessage(sender: cn.nukkit.command.CommandSender): void; + // @ts-ignore + public sendInGameMessage(sender: cn.nukkit.command.CommandSender): void; + // @ts-ignore + public execute(sender: cn.nukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.console.NukkitConsole.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.console.NukkitConsole.d.ts new file mode 100644 index 00000000..21f58bab --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.console.NukkitConsole.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace console { + // @ts-ignore + class NukkitConsole extends SimpleTerminalConsole { + // @ts-ignore + constructor() + // @ts-ignore + protected isRunning(): boolean; + // @ts-ignore + protected runCommand(command: string): void; + // @ts-ignore + public readLine(): string; + // @ts-ignore + protected shutdown(): void; + // @ts-ignore + protected buildReader(builder: LineReaderBuilder): LineReader; + // @ts-ignore + public isExecutingCommands(): boolean; + // @ts-ignore + public setExecutingCommands(executingCommands: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.console.NukkitConsoleCompleter.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.console.NukkitConsoleCompleter.d.ts new file mode 100644 index 00000000..4ccb477e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.console.NukkitConsoleCompleter.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace console { + // @ts-ignore + class NukkitConsoleCompleter extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public complete(lineReader: LineReader, parsedLine: ParsedLine, candidates: java.util.List): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.BucketDispenseBehavior.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.BucketDispenseBehavior.d.ts new file mode 100644 index 00000000..f6930da5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.BucketDispenseBehavior.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace dispenser { + // @ts-ignore + class BucketDispenseBehavior extends java.lang.Object implements cn.nukkit.dispenser.DispenseBehavior { + // @ts-ignore + constructor() + // @ts-ignore + public dispense(block: cn.nukkit.block.BlockDispenser, stack: cn.nukkit.item.Item): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DefaultDispenseBehavior.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DefaultDispenseBehavior.d.ts new file mode 100644 index 00000000..18140350 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DefaultDispenseBehavior.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace dispenser { + // @ts-ignore + class DefaultDispenseBehavior extends java.lang.Object implements cn.nukkit.dispenser.DispenseBehavior { + // @ts-ignore + constructor() + // @ts-ignore + public dispense(block: cn.nukkit.block.BlockDispenser, stack: cn.nukkit.item.Item): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DispenseBehavior.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DispenseBehavior.d.ts new file mode 100644 index 00000000..241b9799 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DispenseBehavior.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace dispenser { + // @ts-ignore + interface DispenseBehavior { + // @ts-ignore + dispense(block: cn.nukkit.block.BlockDispenser, item: cn.nukkit.item.Item): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DispenseBehaviorRegister.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DispenseBehaviorRegister.d.ts new file mode 100644 index 00000000..db3477f1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.DispenseBehaviorRegister.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace dispenser { + // @ts-ignore + class DispenseBehaviorRegister extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static registerBehavior(itemId: number, behavior: cn.nukkit.dispenser.DispenseBehavior): void; + // @ts-ignore + public static getBehavior(id: number): cn.nukkit.dispenser.DispenseBehavior; + // @ts-ignore + public static removeDispenseBehavior(id: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.EmptyBucketDispenseBehavior.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.EmptyBucketDispenseBehavior.d.ts new file mode 100644 index 00000000..7a17a97f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.EmptyBucketDispenseBehavior.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace dispenser { + // @ts-ignore + class EmptyBucketDispenseBehavior extends java.lang.Object implements cn.nukkit.dispenser.DispenseBehavior { + // @ts-ignore + constructor() + // @ts-ignore + public dispense(block: cn.nukkit.block.BlockDispenser, item: cn.nukkit.item.Item): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.ProjectileDispenseBehavior.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.ProjectileDispenseBehavior.d.ts new file mode 100644 index 00000000..ecfd7edf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.dispenser.ProjectileDispenseBehavior.d.ts @@ -0,0 +1,22 @@ +declare namespace cn { + namespace nukkit { + namespace dispenser { + // @ts-ignore + class ProjectileDispenseBehavior extends java.lang.Object implements cn.nukkit.dispenser.DispenseBehavior { + // @ts-ignore + constructor() + // @ts-ignore + constructor(entity: string) + // @ts-ignore + public dispense(source: cn.nukkit.block.BlockDispenser, item: cn.nukkit.item.Item): void; + // @ts-ignore + protected getEntityType(): string; + /** + * you can add extra data of projectile here + */ + // @ts-ignore + protected correctNBT(nbt: cn.nukkit.nbt.tag.CompoundTag): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.Attribute.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.Attribute.d.ts new file mode 100644 index 00000000..3ebbdc4a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.Attribute.d.ts @@ -0,0 +1,85 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + class Attribute extends java.lang.Object { + // @ts-ignore + public static ABSORPTION: number; + // @ts-ignore + public static SATURATION: number; + // @ts-ignore + public static EXHAUSTION: number; + // @ts-ignore + public static KNOCKBACK_RESISTANCE: number; + // @ts-ignore + public static MAX_HEALTH: number; + // @ts-ignore + public static MOVEMENT_SPEED: number; + // @ts-ignore + public static FOLLOW_RANGE: number; + // @ts-ignore + public static MAX_HUNGER: number; + // @ts-ignore + public static FOOD: number; + // @ts-ignore + public static ATTACK_DAMAGE: number; + // @ts-ignore + public static EXPERIENCE_LEVEL: number; + // @ts-ignore + public static EXPERIENCE: number; + // @ts-ignore + public static LUCK: number; + // @ts-ignore + protected static attributes: java.util.Map; + // @ts-ignore + protected minValue: number; + // @ts-ignore + protected maxValue: number; + // @ts-ignore + protected defaultValue: number; + // @ts-ignore + protected currentValue: number; + // @ts-ignore + protected name: string; + // @ts-ignore + protected shouldSend: boolean; + // @ts-ignore + public static init(): void; + // @ts-ignore + public static addAttribute(id: number, name: string, minValue: number, maxValue: number, defaultValue: number): cn.nukkit.entity.Attribute; + // @ts-ignore + public static addAttribute(id: number, name: string, minValue: number, maxValue: number, defaultValue: number, shouldSend: boolean): cn.nukkit.entity.Attribute; + // @ts-ignore + public static getAttribute(id: number): cn.nukkit.entity.Attribute; + // @ts-ignore + public static getAttributeByName(name: string): cn.nukkit.entity.Attribute; + // @ts-ignore + public getMinValue(): number; + // @ts-ignore + public setMinValue(minValue: number): cn.nukkit.entity.Attribute; + // @ts-ignore + public getMaxValue(): number; + // @ts-ignore + public setMaxValue(maxValue: number): cn.nukkit.entity.Attribute; + // @ts-ignore + public getDefaultValue(): number; + // @ts-ignore + public setDefaultValue(defaultValue: number): cn.nukkit.entity.Attribute; + // @ts-ignore + public getValue(): number; + // @ts-ignore + public setValue(value: number): cn.nukkit.entity.Attribute; + // @ts-ignore + public setValue(value: number, fit: boolean): cn.nukkit.entity.Attribute; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public isSyncable(): boolean; + // @ts-ignore + public clone(): cn.nukkit.entity.Attribute; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.Entity.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.Entity.d.ts new file mode 100644 index 00000000..13bc1af0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.Entity.d.ts @@ -0,0 +1,809 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + abstract class Entity extends cn.nukkit.level.Location implements cn.nukkit.metadata.Metadatable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static DATA_TYPE_BYTE: number; + // @ts-ignore + public static DATA_TYPE_SHORT: number; + // @ts-ignore + public static DATA_TYPE_INT: number; + // @ts-ignore + public static DATA_TYPE_FLOAT: number; + // @ts-ignore + public static DATA_TYPE_STRING: number; + // @ts-ignore + public static DATA_TYPE_NBT: number; + // @ts-ignore + public static DATA_TYPE_POS: number; + // @ts-ignore + public static DATA_TYPE_LONG: number; + // @ts-ignore + public static DATA_TYPE_VECTOR3F: number; + // @ts-ignore + public static DATA_FLAGS: number; + // @ts-ignore + public static DATA_HEALTH: number; + // @ts-ignore + public static DATA_VARIANT: number; + // @ts-ignore + public static DATA_COLOR: number; + // @ts-ignore + public static DATA_COLOUR: number; + // @ts-ignore + public static DATA_NAMETAG: number; + // @ts-ignore + public static DATA_OWNER_EID: number; + // @ts-ignore + public static DATA_TARGET_EID: number; + // @ts-ignore + public static DATA_AIR: number; + // @ts-ignore + public static DATA_POTION_COLOR: number; + // @ts-ignore + public static DATA_POTION_AMBIENT: number; + // @ts-ignore + public static DATA_JUMP_DURATION: number; + // @ts-ignore + public static DATA_HURT_TIME: number; + // @ts-ignore + public static DATA_HURT_DIRECTION: number; + // @ts-ignore + public static DATA_PADDLE_TIME_LEFT: number; + // @ts-ignore + public static DATA_PADDLE_TIME_RIGHT: number; + // @ts-ignore + public static DATA_EXPERIENCE_VALUE: number; + // @ts-ignore + public static DATA_DISPLAY_ITEM: number; + // @ts-ignore + public static DATA_DISPLAY_OFFSET: number; + // @ts-ignore + public static DATA_HAS_DISPLAY: number; + // @ts-ignore + public static DATA_ENDERMAN_HELD_RUNTIME_ID: number; + // @ts-ignore + public static DATA_ENTITY_AGE: number; + // @ts-ignore + public static DATA_PLAYER_FLAGS: number; + // @ts-ignore + public static DATA_PLAYER_BED_POSITION: number; + // @ts-ignore + public static DATA_FIREBALL_POWER_X: number; + // @ts-ignore + public static DATA_FIREBALL_POWER_Y: number; + // @ts-ignore + public static DATA_FIREBALL_POWER_Z: number; + // @ts-ignore + public static DATA_POTION_AUX_VALUE: number; + // @ts-ignore + public static DATA_LEAD_HOLDER_EID: number; + // @ts-ignore + public static DATA_SCALE: number; + // @ts-ignore + public static DATA_INTERACTIVE_TAG: number; + // @ts-ignore + public static DATA_NPC_SKIN_ID: number; + // @ts-ignore + public static DATA_URL_TAG: number; + // @ts-ignore + public static DATA_MAX_AIR: number; + // @ts-ignore + public static DATA_MARK_VARIANT: number; + // @ts-ignore + public static DATA_CONTAINER_TYPE: number; + // @ts-ignore + public static DATA_CONTAINER_BASE_SIZE: number; + // @ts-ignore + public static DATA_CONTAINER_EXTRA_SLOTS_PER_STRENGTH: number; + // @ts-ignore + public static DATA_BLOCK_TARGET: number; + // @ts-ignore + public static DATA_WITHER_INVULNERABLE_TICKS: number; + // @ts-ignore + public static DATA_WITHER_TARGET_1: number; + // @ts-ignore + public static DATA_WITHER_TARGET_2: number; + // @ts-ignore + public static DATA_WITHER_TARGET_3: number; + // @ts-ignore + public static DATA_BOUNDING_BOX_WIDTH: number; + // @ts-ignore + public static DATA_BOUNDING_BOX_HEIGHT: number; + // @ts-ignore + public static DATA_FUSE_LENGTH: number; + // @ts-ignore + public static DATA_RIDER_SEAT_POSITION: number; + // @ts-ignore + public static DATA_RIDER_ROTATION_LOCKED: number; + // @ts-ignore + public static DATA_RIDER_MAX_ROTATION: number; + // @ts-ignore + public static DATA_RIDER_MIN_ROTATION: number; + // @ts-ignore + public static DATA_AREA_EFFECT_CLOUD_RADIUS: number; + // @ts-ignore + public static DATA_AREA_EFFECT_CLOUD_WAITING: number; + // @ts-ignore + public static DATA_AREA_EFFECT_CLOUD_PARTICLE_ID: number; + // @ts-ignore + public static DATA_SHULKER_ATTACH_FACE: number; + // @ts-ignore + public static DATA_SHULKER_ATTACH_POS: number; + // @ts-ignore + public static DATA_TRADING_PLAYER_EID: number; + // @ts-ignore + public static DATA_COMMAND_BLOCK_COMMAND: number; + // @ts-ignore + public static DATA_COMMAND_BLOCK_LAST_OUTPUT: number; + // @ts-ignore + public static DATA_COMMAND_BLOCK_TRACK_OUTPUT: number; + // @ts-ignore + public static DATA_CONTROLLING_RIDER_SEAT_NUMBER: number; + // @ts-ignore + public static DATA_STRENGTH: number; + // @ts-ignore + public static DATA_MAX_STRENGTH: number; + // @ts-ignore + public static DATA_LIMITED_LIFE: number; + // @ts-ignore + public static DATA_ARMOR_STAND_POSE_INDEX: number; + // @ts-ignore + public static DATA_ENDER_CRYSTAL_TIME_OFFSET: number; + // @ts-ignore + public static DATA_ALWAYS_SHOW_NAMETAG: number; + // @ts-ignore + public static DATA_COLOR_2: number; + // @ts-ignore + public static DATA_SCORE_TAG: number; + // @ts-ignore + public static DATA_BALLOON_ATTACHED_ENTITY: number; + // @ts-ignore + public static DATA_PUFFERFISH_SIZE: number; + // @ts-ignore + public static DATA_FLAGS_EXTENDED: number; + // @ts-ignore + public static DATA_SKIN_ID: number; + // @ts-ignore + public static DATA_FLAG_ONFIRE: number; + // @ts-ignore + public static DATA_FLAG_SNEAKING: number; + // @ts-ignore + public static DATA_FLAG_RIDING: number; + // @ts-ignore + public static DATA_FLAG_SPRINTING: number; + // @ts-ignore + public static DATA_FLAG_ACTION: number; + // @ts-ignore + public static DATA_FLAG_INVISIBLE: number; + // @ts-ignore + public static DATA_FLAG_TEMPTED: number; + // @ts-ignore + public static DATA_FLAG_INLOVE: number; + // @ts-ignore + public static DATA_FLAG_SADDLED: number; + // @ts-ignore + public static DATA_FLAG_POWERED: number; + // @ts-ignore + public static DATA_FLAG_IGNITED: number; + // @ts-ignore + public static DATA_FLAG_BABY: number; + // @ts-ignore + public static DATA_FLAG_CONVERTING: number; + // @ts-ignore + public static DATA_FLAG_CRITICAL: number; + // @ts-ignore + public static DATA_FLAG_CAN_SHOW_NAMETAG: number; + // @ts-ignore + public static DATA_FLAG_ALWAYS_SHOW_NAMETAG: number; + // @ts-ignore + public static DATA_FLAG_IMMOBILE: number; + // @ts-ignore + public static DATA_FLAG_NO_AI: number; + // @ts-ignore + public static DATA_FLAG_SILENT: number; + // @ts-ignore + public static DATA_FLAG_WALLCLIMBING: number; + // @ts-ignore + public static DATA_FLAG_CAN_CLIMB: number; + // @ts-ignore + public static DATA_FLAG_SWIMMER: number; + // @ts-ignore + public static DATA_FLAG_CAN_FLY: number; + // @ts-ignore + public static DATA_FLAG_WALKER: number; + // @ts-ignore + public static DATA_FLAG_RESTING: number; + // @ts-ignore + public static DATA_FLAG_SITTING: number; + // @ts-ignore + public static DATA_FLAG_ANGRY: number; + // @ts-ignore + public static DATA_FLAG_INTERESTED: number; + // @ts-ignore + public static DATA_FLAG_CHARGED: number; + // @ts-ignore + public static DATA_FLAG_TAMED: number; + // @ts-ignore + public static DATA_FLAG_ORPHANED: number; + // @ts-ignore + public static DATA_FLAG_LEASHED: number; + // @ts-ignore + public static DATA_FLAG_SHEARED: number; + // @ts-ignore + public static DATA_FLAG_GLIDING: number; + // @ts-ignore + public static DATA_FLAG_ELDER: number; + // @ts-ignore + public static DATA_FLAG_MOVING: number; + // @ts-ignore + public static DATA_FLAG_BREATHING: number; + // @ts-ignore + public static DATA_FLAG_CHESTED: number; + // @ts-ignore + public static DATA_FLAG_STACKABLE: number; + // @ts-ignore + public static DATA_FLAG_SHOWBASE: number; + // @ts-ignore + public static DATA_FLAG_REARING: number; + // @ts-ignore + public static DATA_FLAG_VIBRATING: number; + // @ts-ignore + public static DATA_FLAG_IDLING: number; + // @ts-ignore + public static DATA_FLAG_EVOKER_SPELL: number; + // @ts-ignore + public static DATA_FLAG_CHARGE_ATTACK: number; + // @ts-ignore + public static DATA_FLAG_WASD_CONTROLLED: number; + // @ts-ignore + public static DATA_FLAG_CAN_POWER_JUMP: number; + // @ts-ignore + public static DATA_FLAG_LINGER: number; + // @ts-ignore + public static DATA_FLAG_HAS_COLLISION: number; + // @ts-ignore + public static DATA_FLAG_GRAVITY: number; + // @ts-ignore + public static DATA_FLAG_FIRE_IMMUNE: number; + // @ts-ignore + public static DATA_FLAG_DANCING: number; + // @ts-ignore + public static DATA_FLAG_ENCHANTED: number; + // @ts-ignore + public static DATA_FLAG_SHOW_TRIDENT_ROPE: number; + // @ts-ignore + public static DATA_FLAG_CONTAINER_PRIVATE: number; + // @ts-ignore + public static DATA_FLAG_SPIN_ATTACK: number; + // @ts-ignore + public static DATA_FLAG_SWIMMING: number; + // @ts-ignore + public static DATA_FLAG_BRIBED: number; + // @ts-ignore + public static DATA_FLAG_PREGNANT: number; + // @ts-ignore + public static DATA_FLAG_LAYING_EGG: number; + // @ts-ignore + public static entityCount: number; + // @ts-ignore + protected hasSpawned: java.util.Map; + // @ts-ignore + protected effects: java.util.Map; + // @ts-ignore + protected id: number; + // @ts-ignore + protected dataProperties: cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public passengers: java.util.List; + // @ts-ignore + public riding: cn.nukkit.entity.Entity; + // @ts-ignore + public chunk: cn.nukkit.level.format.FullChunk; + // @ts-ignore + protected lastDamageCause: cn.nukkit.event.entity.EntityDamageEvent; + // @ts-ignore + public blocksAround: java.util.List; + // @ts-ignore + public collisionBlocks: java.util.List; + // @ts-ignore + public lastX: number; + // @ts-ignore + public lastY: number; + // @ts-ignore + public lastZ: number; + // @ts-ignore + public firstMove: boolean; + // @ts-ignore + public motionX: number; + // @ts-ignore + public motionY: number; + // @ts-ignore + public motionZ: number; + // @ts-ignore + public temporalVector: cn.nukkit.math.Vector3; + // @ts-ignore + public lastMotionX: number; + // @ts-ignore + public lastMotionY: number; + // @ts-ignore + public lastMotionZ: number; + // @ts-ignore + public lastYaw: number; + // @ts-ignore + public lastPitch: number; + // @ts-ignore + public pitchDelta: number; + // @ts-ignore + public yawDelta: number; + // @ts-ignore + public entityCollisionReduction: number; + // @ts-ignore + public boundingBox: cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public onGround: boolean; + // @ts-ignore + public inBlock: boolean; + // @ts-ignore + public positionChanged: boolean; + // @ts-ignore + public motionChanged: boolean; + // @ts-ignore + public deadTicks: number; + // @ts-ignore + protected age: number; + // @ts-ignore + protected health: number; + // @ts-ignore + protected absorption: number; + // @ts-ignore + protected ySize: number; + // @ts-ignore + public keepMovement: boolean; + // @ts-ignore + public fallDistance: number; + // @ts-ignore + public ticksLived: number; + // @ts-ignore + public lastUpdate: number; + // @ts-ignore + public maxFireTicks: number; + // @ts-ignore + public fireTicks: number; + // @ts-ignore + public inPortalTicks: number; + // @ts-ignore + public scale: number; + // @ts-ignore + public namedTag: cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + protected isStatic: boolean; + // @ts-ignore + public isCollided: boolean; + // @ts-ignore + public isCollidedHorizontally: boolean; + // @ts-ignore + public isCollidedVertically: boolean; + // @ts-ignore + public noDamageTicks: number; + // @ts-ignore + public justCreated: boolean; + // @ts-ignore + public fireProof: boolean; + // @ts-ignore + public invulnerable: boolean; + // @ts-ignore + protected server: cn.nukkit.Server; + // @ts-ignore + public highestPosition: number; + // @ts-ignore + public closed: boolean; + // @ts-ignore + protected timing: any /*co.aikar.timings.Timing*/; + // @ts-ignore + protected isPlayer: boolean; + // @ts-ignore + public abstract getNetworkId(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getEyeHeight(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + protected getStepHeight(): number; + // @ts-ignore + public canCollide(): boolean; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + protected getBaseOffset(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + protected init(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag): void; + // @ts-ignore + public hasCustomName(): boolean; + // @ts-ignore + public getNameTag(): string; + // @ts-ignore + public isNameTagVisible(): boolean; + // @ts-ignore + public isNameTagAlwaysVisible(): boolean; + // @ts-ignore + public setNameTag(name: string): void; + // @ts-ignore + public setNameTagVisible(): void; + // @ts-ignore + public setNameTagVisible(value: boolean): void; + // @ts-ignore + public setNameTagAlwaysVisible(): void; + // @ts-ignore + public setNameTagAlwaysVisible(value: boolean): void; + // @ts-ignore + public setScoreTag(score: string): void; + // @ts-ignore + public getScoreTag(): string; + // @ts-ignore + public isSneaking(): boolean; + // @ts-ignore + public setSneaking(): void; + // @ts-ignore + public setSneaking(value: boolean): void; + // @ts-ignore + public isSwimming(): boolean; + // @ts-ignore + public setSwimming(): void; + // @ts-ignore + public setSwimming(value: boolean): void; + // @ts-ignore + public isSprinting(): boolean; + // @ts-ignore + public setSprinting(): void; + // @ts-ignore + public setSprinting(value: boolean): void; + // @ts-ignore + public isGliding(): boolean; + // @ts-ignore + public setGliding(): void; + // @ts-ignore + public setGliding(value: boolean): void; + // @ts-ignore + public isImmobile(): boolean; + // @ts-ignore + public setImmobile(): void; + // @ts-ignore + public setImmobile(value: boolean): void; + // @ts-ignore + public canClimb(): boolean; + // @ts-ignore + public setCanClimb(): void; + // @ts-ignore + public setCanClimb(value: boolean): void; + // @ts-ignore + public canClimbWalls(): boolean; + // @ts-ignore + public setCanClimbWalls(): void; + // @ts-ignore + public setCanClimbWalls(value: boolean): void; + // @ts-ignore + public setScale(scale: number): void; + // @ts-ignore + public getScale(): number; + // @ts-ignore + public getPassengers(): java.util.List; + // @ts-ignore + public getPassenger(): cn.nukkit.entity.Entity; + // @ts-ignore + public isPassenger(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public isControlling(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public hasControllingPassenger(): boolean; + // @ts-ignore + public getRiding(): cn.nukkit.entity.Entity; + // @ts-ignore + public getEffects(): java.util.Map; + // @ts-ignore + public removeAllEffects(): void; + // @ts-ignore + public removeEffect(effectId: number): void; + // @ts-ignore + public getEffect(effectId: number): cn.nukkit.potion.Effect; + // @ts-ignore + public hasEffect(effectId: number): boolean; + // @ts-ignore + public addEffect(effect: cn.nukkit.potion.Effect): void; + // @ts-ignore + public recalculateBoundingBox(): void; + // @ts-ignore + public recalculateBoundingBox(send: boolean): void; + // @ts-ignore + protected recalculateEffectColor(): void; + // @ts-ignore + public static createEntity(name: string, pos: cn.nukkit.level.Position, args: java.lang.Object): cn.nukkit.entity.Entity; + // @ts-ignore + public static createEntity(type: number, pos: cn.nukkit.level.Position, args: java.lang.Object): cn.nukkit.entity.Entity; + // @ts-ignore + public static createEntity(name: string, chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, args: java.lang.Object): cn.nukkit.entity.Entity; + // @ts-ignore + public static createEntity(type: number, chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, args: java.lang.Object): cn.nukkit.entity.Entity; + // @ts-ignore + public static registerEntity(name: string, clazz: java.lang.Class): boolean; + // @ts-ignore + public static registerEntity(name: string, clazz: java.lang.Class, force: boolean): boolean; + // @ts-ignore + public static getDefaultNBT(pos: cn.nukkit.math.Vector3): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static getDefaultNBT(pos: cn.nukkit.math.Vector3, motion: cn.nukkit.math.Vector3): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static getDefaultNBT(pos: cn.nukkit.math.Vector3, motion: cn.nukkit.math.Vector3, yaw: number, pitch: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getSaveId(): string; + // @ts-ignore + public spawnTo(player: cn.nukkit.Player): void; + // @ts-ignore + protected createAddEntityPacket(): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public getViewers(): java.util.Map; + // @ts-ignore + public sendPotionEffects(player: cn.nukkit.Player): void; + // @ts-ignore + public sendData(player: cn.nukkit.Player): void; + // @ts-ignore + public sendData(player: cn.nukkit.Player, data: cn.nukkit.entity.data.EntityMetadata): void; + // @ts-ignore + public sendData(players: cn.nukkit.Player): void; + // @ts-ignore + public sendData(players: cn.nukkit.Player, data: cn.nukkit.entity.data.EntityMetadata): void; + // @ts-ignore + public despawnFrom(player: cn.nukkit.Player): void; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public attack(damage: number): boolean; + // @ts-ignore + public heal(source: cn.nukkit.event.entity.EntityRegainHealthEvent): void; + // @ts-ignore + public heal(amount: number): void; + // @ts-ignore + public getHealth(): number; + // @ts-ignore + public isAlive(): boolean; + // @ts-ignore + public isClosed(): boolean; + // @ts-ignore + public setHealth(health: number): void; + // @ts-ignore + public setLastDamageCause(type: cn.nukkit.event.entity.EntityDamageEvent): void; + // @ts-ignore + public getLastDamageCause(): cn.nukkit.event.entity.EntityDamageEvent; + // @ts-ignore + public getMaxHealth(): number; + // @ts-ignore + public setMaxHealth(maxHealth: number): void; + // @ts-ignore + public canCollideWith(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + protected checkObstruction(x: number, y: number, z: number): boolean; + // @ts-ignore + public entityBaseTick(): boolean; + // @ts-ignore + public entityBaseTick(tickDiff: number): boolean; + // @ts-ignore + public updateMovement(): void; + // @ts-ignore + public addMovement(x: number, y: number, z: number, yaw: number, pitch: number, headYaw: number): void; + // @ts-ignore + public addMotion(motionX: number, motionY: number, motionZ: number): void; + // @ts-ignore + public getDirectionVector(): cn.nukkit.math.Vector3; + // @ts-ignore + public getDirectionPlane(): cn.nukkit.math.Vector2; + // @ts-ignore + public getHorizontalFacing(): cn.nukkit.math.BlockFace; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public mountEntity(entity: cn.nukkit.entity.Entity): boolean; + /** + * Mount or Dismounts an Entity from a/into vehicle + */ + // @ts-ignore + public mountEntity(entity: cn.nukkit.entity.Entity, mode: number): boolean; + // @ts-ignore + public dismountEntity(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + protected broadcastLinkPacket(rider: cn.nukkit.entity.Entity, type: number): void; + // @ts-ignore + public updatePassengers(): void; + // @ts-ignore + protected updatePassengerPosition(passenger: cn.nukkit.entity.Entity): void; + // @ts-ignore + public setSeatPosition(pos: cn.nukkit.math.Vector3f): void; + // @ts-ignore + public getSeatPosition(): cn.nukkit.math.Vector3f; + // @ts-ignore + public getMountedOffset(entity: cn.nukkit.entity.Entity): cn.nukkit.math.Vector3f; + // @ts-ignore + public scheduleUpdate(): void; + // @ts-ignore + public isOnFire(): boolean; + // @ts-ignore + public setOnFire(seconds: number): void; + // @ts-ignore + public getAbsorption(): number; + // @ts-ignore + public setAbsorption(absorption: number): void; + // @ts-ignore + public getDirection(): cn.nukkit.math.BlockFace; + // @ts-ignore + public extinguish(): void; + // @ts-ignore + public canTriggerWalking(): boolean; + // @ts-ignore + public resetFallDistance(): void; + // @ts-ignore + protected updateFallState(onGround: boolean): void; + // @ts-ignore + public getBoundingBox(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + public fall(fallDistance: number): void; + // @ts-ignore + public handleLavaMovement(): void; + // @ts-ignore + public moveFlying(strafe: number, forward: number, friction: number): void; + // @ts-ignore + public onCollideWithPlayer(entityPlayer: cn.nukkit.entity.EntityHuman): void; + // @ts-ignore + public applyEntityCollision(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public onStruckByLightning(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public onInteract(player: cn.nukkit.Player, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public onInteract(player: cn.nukkit.Player, item: cn.nukkit.item.Item): boolean; + // @ts-ignore + protected switchLevel(targetLevel: cn.nukkit.level.Level): boolean; + // @ts-ignore + public getPosition(): cn.nukkit.level.Position; + // @ts-ignore + public getLocation(): cn.nukkit.level.Location; + // @ts-ignore + public isInsideOfWater(): boolean; + // @ts-ignore + public isInsideOfSolid(): boolean; + // @ts-ignore + public isInsideOfFire(): boolean; + // @ts-ignore + public isOnLadder(): boolean; + // @ts-ignore + public fastMove(dx: number, dy: number, dz: number): boolean; + // @ts-ignore + public move(dx: number, dy: number, dz: number): boolean; + // @ts-ignore + protected checkGroundState(movX: number, movY: number, movZ: number, dx: number, dy: number, dz: number): void; + // @ts-ignore + public getBlocksAround(): java.util.List; + // @ts-ignore + public getCollisionBlocks(): java.util.List; + /** + * Returns whether this entity can be moved by currents in liquids. + */ + // @ts-ignore + public canBeMovedByCurrents(): boolean; + // @ts-ignore + protected checkBlockCollision(): void; + // @ts-ignore + public setPositionAndRotation(pos: cn.nukkit.math.Vector3, yaw: number, pitch: number): boolean; + // @ts-ignore + public setRotation(yaw: number, pitch: number): void; + /** + * Whether the entity can active pressure plates. + * Used for {@link cn.nukkit.entity.passive.EntityBat}s only. + */ + // @ts-ignore + public doesTriggerPressurePlate(): boolean; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + protected checkChunks(): void; + // @ts-ignore + public setPosition(pos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public getMotion(): cn.nukkit.math.Vector3; + // @ts-ignore + public setMotion(motion: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public isOnGround(): boolean; + // @ts-ignore + public kill(): void; + // @ts-ignore + public teleport(pos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public teleport(pos: cn.nukkit.math.Vector3, cause: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean; + // @ts-ignore + public teleport(pos: cn.nukkit.level.Position): boolean; + // @ts-ignore + public teleport(pos: cn.nukkit.level.Position, cause: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean; + // @ts-ignore + public teleport(location: cn.nukkit.level.Location): boolean; + // @ts-ignore + public teleport(location: cn.nukkit.level.Location, cause: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean; + // @ts-ignore + public getId(): number; + // @ts-ignore + public respawnToAll(): void; + // @ts-ignore + public spawnToAll(): void; + // @ts-ignore + public despawnFromAll(): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public setDataProperty(data: cn.nukkit.entity.data.EntityData): boolean; + // @ts-ignore + public setDataProperty(data: cn.nukkit.entity.data.EntityData, send: boolean): boolean; + // @ts-ignore + public getDataProperties(): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public getDataProperty(id: number): cn.nukkit.entity.data.EntityData; + // @ts-ignore + public getDataPropertyInt(id: number): number; + // @ts-ignore + public getDataPropertyShort(id: number): number; + // @ts-ignore + public getDataPropertyByte(id: number): number; + // @ts-ignore + public getDataPropertyBoolean(id: number): boolean; + // @ts-ignore + public getDataPropertyLong(id: number): number; + // @ts-ignore + public getDataPropertyString(id: number): string; + // @ts-ignore + public getDataPropertyFloat(id: number): number; + // @ts-ignore + public getDataPropertyNBT(id: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getDataPropertyPos(id: number): cn.nukkit.math.Vector3; + // @ts-ignore + public getDataPropertyVector3f(id: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public getDataPropertyType(id: number): number; + // @ts-ignore + public setDataFlag(propertyId: number, id: number): void; + // @ts-ignore + public setDataFlag(propertyId: number, id: number, value: boolean): void; + // @ts-ignore + public getDataFlag(propertyId: number, id: number): boolean; + // @ts-ignore + public setMetadata(metadataKey: string, newMetadataValue: cn.nukkit.metadata.MetadataValue): void; + // @ts-ignore + public getMetadata(metadataKey: string): java.util.List; + // @ts-ignore + public hasMetadata(metadataKey: string): boolean; + // @ts-ignore + public removeMetadata(metadataKey: string, owningPlugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public getServer(): cn.nukkit.Server; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityAgeable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityAgeable.d.ts new file mode 100644 index 00000000..487585fb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityAgeable.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + interface EntityAgeable { + // @ts-ignore + isBaby(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityArthropod.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityArthropod.d.ts new file mode 100644 index 00000000..6c02981e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityArthropod.d.ts @@ -0,0 +1,9 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + interface EntityArthropod { + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityCreature.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityCreature.d.ts new file mode 100644 index 00000000..097f95ff --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityCreature.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + abstract class EntityCreature extends cn.nukkit.entity.EntityLiving { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityDamageable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityDamageable.d.ts new file mode 100644 index 00000000..adbae5b3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityDamageable.d.ts @@ -0,0 +1,9 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + interface EntityDamageable { + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityExplosive.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityExplosive.d.ts new file mode 100644 index 00000000..5c4b5090 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityExplosive.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + interface EntityExplosive { + // @ts-ignore + explode(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHanging.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHanging.d.ts new file mode 100644 index 00000000..70eb276b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHanging.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + abstract class EntityHanging extends cn.nukkit.entity.Entity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected direction: number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getDirection(): cn.nukkit.math.BlockFace; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + protected isSurfaceValid(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHuman.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHuman.d.ts new file mode 100644 index 00000000..64a770ad --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHuman.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + class EntityHuman extends cn.nukkit.entity.EntityHumanType { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static DATA_PLAYER_FLAG_SLEEP: number; + // @ts-ignore + public static DATA_PLAYER_FLAG_DEAD: number; + // @ts-ignore + public static DATA_PLAYER_FLAGS: number; + // @ts-ignore + public static DATA_PLAYER_BED_POSITION: number; + // @ts-ignore + public static DATA_PLAYER_BUTTON_TEXT: number; + // @ts-ignore + protected uuid: java.util.UUID; + // @ts-ignore + protected rawUUID: number[]; + // @ts-ignore + protected skin: cn.nukkit.entity.data.Skin; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getEyeHeight(): number; + // @ts-ignore + protected getBaseOffset(): number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getSkin(): cn.nukkit.entity.data.Skin; + // @ts-ignore + public getUniqueId(): java.util.UUID; + // @ts-ignore + public getRawUniqueId(): number[]; + // @ts-ignore + public setSkin(skin: cn.nukkit.entity.data.Skin): void; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public spawnTo(player: cn.nukkit.Player): void; + // @ts-ignore + public despawnFrom(player: cn.nukkit.Player): void; + // @ts-ignore + public close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHumanType.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHumanType.d.ts new file mode 100644 index 00000000..775055c7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityHumanType.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + abstract class EntityHumanType extends cn.nukkit.entity.EntityCreature implements cn.nukkit.inventory.InventoryHolder { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected inventory: cn.nukkit.inventory.PlayerInventory; + // @ts-ignore + protected enderChestInventory: cn.nukkit.inventory.PlayerEnderChestInventory; + // @ts-ignore + protected offhandInventory: cn.nukkit.inventory.PlayerOffhandInventory; + // @ts-ignore + public getInventory(): cn.nukkit.inventory.PlayerInventory; + // @ts-ignore + public getEnderChestInventory(): cn.nukkit.inventory.PlayerEnderChestInventory; + // @ts-ignore + public getOffhandInventory(): cn.nukkit.inventory.PlayerOffhandInventory; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + protected calculateEnchantmentProtectionFactor(item: cn.nukkit.item.Item, source: cn.nukkit.event.entity.EntityDamageEvent): number; + // @ts-ignore + public setOnFire(seconds: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityInteractable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityInteractable.d.ts new file mode 100644 index 00000000..833d0473 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityInteractable.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + interface EntityInteractable { + // @ts-ignore + getInteractButtonText(): string; + // @ts-ignore + canDoInteraction(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityLiving.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityLiving.d.ts new file mode 100644 index 00000000..9761ee86 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityLiving.d.ts @@ -0,0 +1,69 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + abstract class EntityLiving extends cn.nukkit.entity.Entity implements cn.nukkit.entity.EntityDamageable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected attackTime: number; + // @ts-ignore + protected invisible: boolean; + // @ts-ignore + protected movementSpeed: number; + // @ts-ignore + protected turtleTicks: number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public setHealth(health: number): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public hasLineOfSight(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public collidingWith(ent: cn.nukkit.entity.Entity): void; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public knockBack(attacker: cn.nukkit.entity.Entity, damage: number, x: number, z: number): void; + // @ts-ignore + public knockBack(attacker: cn.nukkit.entity.Entity, damage: number, x: number, z: number, base: number): void; + // @ts-ignore + public kill(): void; + // @ts-ignore + public entityBaseTick(): boolean; + // @ts-ignore + public entityBaseTick(tickDiff: number): boolean; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public getLineOfSight(maxDistance: number): cn.nukkit.block.Block[]; + // @ts-ignore + public getLineOfSight(maxDistance: number, maxLength: number): cn.nukkit.block.Block[]; + // @ts-ignore + public getLineOfSight(maxDistance: number, maxLength: number, transparent: java.util.Map): cn.nukkit.block.Block[]; + // @ts-ignore + public getLineOfSight(maxDistance: number, maxLength: number, transparent: java.lang.Integer): cn.nukkit.block.Block[]; + // @ts-ignore + public getTargetBlock(maxDistance: number): cn.nukkit.block.Block; + // @ts-ignore + public getTargetBlock(maxDistance: number, transparent: java.util.Map): cn.nukkit.block.Block; + // @ts-ignore + public getTargetBlock(maxDistance: number, transparent: java.lang.Integer): cn.nukkit.block.Block; + // @ts-ignore + public setMovementSpeed(speed: number): void; + // @ts-ignore + public getMovementSpeed(): number; + // @ts-ignore + public getAirTicks(): number; + // @ts-ignore + public setAirTicks(ticks: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityOwnable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityOwnable.d.ts new file mode 100644 index 00000000..7cff8d38 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityOwnable.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + interface EntityOwnable { + // @ts-ignore + getOwnerName(): string; + // @ts-ignore + setOwnerName(playerName: string): void; + // @ts-ignore + getOwner(): cn.nukkit.Player; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityRideable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityRideable.d.ts new file mode 100644 index 00000000..b0a63925 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntityRideable.d.ts @@ -0,0 +1,16 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + interface EntityRideable { + /** + * Mount or Dismounts an Entity from a rideable entity + */ + // @ts-ignore + mountEntity(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + dismountEntity(entity: cn.nukkit.entity.Entity): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntitySmite.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntitySmite.d.ts new file mode 100644 index 00000000..b85e13bc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.EntitySmite.d.ts @@ -0,0 +1,9 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + // @ts-ignore + interface EntitySmite { + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.ByteEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.ByteEntityData.d.ts new file mode 100644 index 00000000..397d4308 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.ByteEntityData.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class ByteEntityData extends cn.nukkit.entity.data.EntityData { + // @ts-ignore + constructor(id: number, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Integer; + // @ts-ignore + public setData(data: java.lang.Integer): void; + // @ts-ignore + public getType(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.EntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.EntityData.d.ts new file mode 100644 index 00000000..ab5e372a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.EntityData.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + abstract class EntityData extends java.lang.Object { + // @ts-ignore + constructor(id: number) + // @ts-ignore + public abstract getType(): number; + // @ts-ignore + public abstract getData(): java.lang.Object; + // @ts-ignore + public abstract setData(data: java.lang.Object): void; + // @ts-ignore + public getId(): number; + // @ts-ignore + public setId(id: number): cn.nukkit.entity.data.EntityData; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.EntityMetadata.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.EntityMetadata.d.ts new file mode 100644 index 00000000..6adb8106 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.EntityMetadata.d.ts @@ -0,0 +1,61 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class EntityMetadata extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public get(id: number): cn.nukkit.entity.data.EntityData; + // @ts-ignore + public getOrDefault(id: number, defaultValue: cn.nukkit.entity.data.EntityData): cn.nukkit.entity.data.EntityData; + // @ts-ignore + public exists(id: number): boolean; + // @ts-ignore + public put(data: cn.nukkit.entity.data.EntityData): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public getByte(id: number): number; + // @ts-ignore + public getShort(id: number): number; + // @ts-ignore + public getInt(id: number): number; + // @ts-ignore + public getLong(id: number): number; + // @ts-ignore + public getFloat(id: number): number; + // @ts-ignore + public getBoolean(id: number): boolean; + // @ts-ignore + public getNBT(id: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getString(id: number): string; + // @ts-ignore + public getPosition(id: number): cn.nukkit.math.Vector3; + // @ts-ignore + public getFloatPosition(id: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public putByte(id: number, value: number): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public putShort(id: number, value: number): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public putInt(id: number, value: number): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public putLong(id: number, value: number): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public putFloat(id: number, value: number): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public putBoolean(id: number, value: boolean): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public putNBT(id: number, tag: cn.nukkit.nbt.tag.CompoundTag): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public putSlot(id: number, value: cn.nukkit.item.Item): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public putString(id: number, value: string): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public getMap(): java.util.Map; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.FloatEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.FloatEntityData.d.ts new file mode 100644 index 00000000..f11a51db --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.FloatEntityData.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class FloatEntityData extends cn.nukkit.entity.data.EntityData { + // @ts-ignore + constructor(id: number, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Float; + // @ts-ignore + public setData(data: java.lang.Float): void; + // @ts-ignore + public getType(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.IntEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.IntEntityData.d.ts new file mode 100644 index 00000000..06df1d03 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.IntEntityData.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class IntEntityData extends cn.nukkit.entity.data.EntityData { + // @ts-ignore + constructor(id: number, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Integer; + // @ts-ignore + public setData(data: java.lang.Integer): void; + // @ts-ignore + public getType(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.IntPositionEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.IntPositionEntityData.d.ts new file mode 100644 index 00000000..a5de7e23 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.IntPositionEntityData.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class IntPositionEntityData extends cn.nukkit.entity.data.EntityData { + // @ts-ignore + constructor(id: number, x: number, y: number, z: number) + // @ts-ignore + constructor(id: number, pos: cn.nukkit.math.Vector3) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public getData(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public setData(data: cn.nukkit.math.BlockVector3): void; + // @ts-ignore + public getType(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.LongEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.LongEntityData.d.ts new file mode 100644 index 00000000..caff884d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.LongEntityData.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class LongEntityData extends cn.nukkit.entity.data.EntityData { + // @ts-ignore + constructor(id: number, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Long; + // @ts-ignore + public setData(data: java.lang.Long): void; + // @ts-ignore + public getType(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.NBTEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.NBTEntityData.d.ts new file mode 100644 index 00000000..cea286d9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.NBTEntityData.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class NBTEntityData extends cn.nukkit.entity.data.EntityData { + // @ts-ignore + constructor(id: number, tag: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public tag: cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getData(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public setData(tag: cn.nukkit.nbt.tag.CompoundTag): void; + // @ts-ignore + public getType(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.ShortEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.ShortEntityData.d.ts new file mode 100644 index 00000000..060404fe --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.ShortEntityData.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class ShortEntityData extends cn.nukkit.entity.data.EntityData { + // @ts-ignore + constructor(id: number, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Integer; + // @ts-ignore + public setData(data: java.lang.Integer): void; + // @ts-ignore + public getType(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.Skin.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.Skin.d.ts new file mode 100644 index 00000000..d053c4aa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.Skin.d.ts @@ -0,0 +1,83 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class Skin extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static SINGLE_SKIN_SIZE: number; + // @ts-ignore + public static DOUBLE_SKIN_SIZE: number; + // @ts-ignore + public static SKIN_128_64_SIZE: number; + // @ts-ignore + public static SKIN_128_128_SIZE: number; + // @ts-ignore + public static GEOMETRY_CUSTOM: string; + // @ts-ignore + public static GEOMETRY_CUSTOM_SLIM: string; + // @ts-ignore + public isValid(): boolean; + // @ts-ignore + public getSkinData(): cn.nukkit.utils.SerializedImage; + // @ts-ignore + public getSkinId(): string; + // @ts-ignore + public setSkinId(skinId: string): void; + // @ts-ignore + public generateSkinId(name: string): void; + // @ts-ignore + public setSkinData(skinData: number): void; + // @ts-ignore + public setSkinData(image: java.awt.image.BufferedImage): void; + // @ts-ignore + public setSkinData(skinData: cn.nukkit.utils.SerializedImage): void; + // @ts-ignore + public setSkinResourcePatch(skinResourcePatch: string): void; + // @ts-ignore + public setGeometryName(geometryName: string): void; + // @ts-ignore + public getSkinResourcePatch(): string; + // @ts-ignore + public getCapeData(): cn.nukkit.utils.SerializedImage; + // @ts-ignore + public getCapeId(): string; + // @ts-ignore + public setCapeId(capeId: string): void; + // @ts-ignore + public setCapeData(capeData: number): void; + // @ts-ignore + public setCapeData(image: java.awt.image.BufferedImage): void; + // @ts-ignore + public setCapeData(capeData: cn.nukkit.utils.SerializedImage): void; + // @ts-ignore + public getGeometryData(): string; + // @ts-ignore + public setGeometryData(geometryData: string): void; + // @ts-ignore + public getAnimationData(): string; + // @ts-ignore + public setAnimationData(animationData: string): void; + // @ts-ignore + public getAnimations(): java.util.List; + // @ts-ignore + public isPremium(): boolean; + // @ts-ignore + public setPremium(premium: boolean): void; + // @ts-ignore + public isPersona(): boolean; + // @ts-ignore + public setPersona(persona: boolean): void; + // @ts-ignore + public isCapeOnClassic(): boolean; + // @ts-ignore + public setCapeOnClassic(capeOnClassic: boolean): void; + // @ts-ignore + public getFullSkinId(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.StringEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.StringEntityData.d.ts new file mode 100644 index 00000000..4ca22eae --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.StringEntityData.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class StringEntityData extends cn.nukkit.entity.data.EntityData { + // @ts-ignore + constructor(id: number, data: string) + // @ts-ignore + public data: string; + // @ts-ignore + public getData(): string; + // @ts-ignore + public setData(data: string): void; + // @ts-ignore + public getType(): number; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.Vector3fEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.Vector3fEntityData.d.ts new file mode 100644 index 00000000..dac9f9fa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.data.Vector3fEntityData.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace data { + // @ts-ignore + class Vector3fEntityData extends cn.nukkit.entity.data.EntityData { + // @ts-ignore + constructor(id: number, x: number, y: number, z: number) + // @ts-ignore + constructor(id: number, pos: cn.nukkit.math.Vector3f) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public getData(): cn.nukkit.math.Vector3f; + // @ts-ignore + public setData(data: cn.nukkit.math.Vector3f): void; + // @ts-ignore + public getType(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityBoat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityBoat.d.ts new file mode 100644 index 00000000..3d522c11 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityBoat.d.ts @@ -0,0 +1,83 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityBoat extends cn.nukkit.entity.item.EntityVehicle { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static DATA_WOOD_ID: number; + // @ts-ignore + public static RIDER_PLAYER_OFFSET: cn.nukkit.math.Vector3f; + // @ts-ignore + public static RIDER_OFFSET: cn.nukkit.math.Vector3f; + // @ts-ignore + public static PASSENGER_OFFSET: cn.nukkit.math.Vector3f; + // @ts-ignore + public static RIDER_PASSENGER_OFFSET: cn.nukkit.math.Vector3f; + // @ts-ignore + public static RIDER_INDEX: number; + // @ts-ignore + public static PASSENGER_INDEX: number; + // @ts-ignore + public static SINKING_DEPTH: number; + // @ts-ignore + public static SINKING_SPEED: number; + // @ts-ignore + public static SINKING_MAX_SPEED: number; + // @ts-ignore + protected sinking: boolean; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + public getBaseOffset(): number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public close(): void; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public updatePassengers(): void; + // @ts-ignore + public updatePassengers(sendLinks: boolean): void; + // @ts-ignore + public getWaterLevel(): number; + // @ts-ignore + public mountEntity(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + protected updatePassengerPosition(passenger: cn.nukkit.entity.Entity): void; + // @ts-ignore + public dismountEntity(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public isControlling(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public onInteract(player: cn.nukkit.Player, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public getMountedOffset(entity: cn.nukkit.entity.Entity): cn.nukkit.math.Vector3f; + // @ts-ignore + public onPaddle(animation: cn.nukkit.network.protocol.AnimatePacket.Action, value: number): void; + // @ts-ignore + public applyEntityCollision(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public canPassThrough(): boolean; + // @ts-ignore + public kill(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityEndCrystal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityEndCrystal.d.ts new file mode 100644 index 00000000..47cd6868 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityEndCrystal.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityEndCrystal extends cn.nukkit.entity.Entity implements cn.nukkit.entity.EntityExplosive { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public explode(): void; + // @ts-ignore + public canCollideWith(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public showBase(): boolean; + // @ts-ignore + public setShowBase(value: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityExpBottle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityExpBottle.d.ts new file mode 100644 index 00000000..9209937c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityExpBottle.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityExpBottle extends cn.nukkit.entity.projectile.EntityProjectile { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public onCollideWithEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public dropXp(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFallingBlock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFallingBlock.d.ts new file mode 100644 index 00000000..9240a34c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFallingBlock.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityFallingBlock extends cn.nukkit.entity.Entity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + protected blockId: number; + // @ts-ignore + protected damage: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + protected getBaseOffset(): number; + // @ts-ignore + public canCollide(): boolean; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public canCollideWith(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public getBlock(): number; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public canBeMovedByCurrents(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFirework.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFirework.d.ts new file mode 100644 index 00000000..06ba0ded --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFirework.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityFirework extends cn.nukkit.entity.Entity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public setFirework(item: cn.nukkit.item.Item): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFishingHook.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFishingHook.d.ts new file mode 100644 index 00000000..1595b7de --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityFishingHook.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityFishingHook extends cn.nukkit.entity.projectile.EntityProjectile { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static WAIT_CHANCE: number; + // @ts-ignore + public static CHANCE: number; + // @ts-ignore + public chance: boolean; + // @ts-ignore + public waitChance: number; + // @ts-ignore + public attracted: boolean; + // @ts-ignore + public attractTimer: number; + // @ts-ignore + public caught: boolean; + // @ts-ignore + public coughtTimer: number; + // @ts-ignore + public fish: cn.nukkit.math.Vector3; + // @ts-ignore + public rod: cn.nukkit.item.Item; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getGravity(): number; + // @ts-ignore + public getDrag(): number; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public getWaterHeight(): number; + // @ts-ignore + public fishBites(): void; + // @ts-ignore + public spawnFish(): void; + // @ts-ignore + public attractFish(): boolean; + // @ts-ignore + public reelLine(): void; + // @ts-ignore + public spawnTo(player: cn.nukkit.Player): void; + // @ts-ignore + public onCollideWithEntity(entity: cn.nukkit.entity.Entity): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityItem.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityItem.d.ts new file mode 100644 index 00000000..2b7099c8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityItem.d.ts @@ -0,0 +1,71 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityItem extends cn.nukkit.entity.Entity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static DATA_SOURCE_ID: number; + // @ts-ignore + protected owner: string; + // @ts-ignore + protected thrower: string; + // @ts-ignore + protected item: cn.nukkit.item.Item; + // @ts-ignore + protected pickupDelay: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getGravity(): number; + // @ts-ignore + public getDrag(): number; + // @ts-ignore + protected getBaseOffset(): number; + // @ts-ignore + public canCollide(): boolean; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public canCollideWith(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public getPickupDelay(): number; + // @ts-ignore + public setPickupDelay(pickupDelay: number): void; + // @ts-ignore + public getOwner(): string; + // @ts-ignore + public setOwner(owner: string): void; + // @ts-ignore + public getThrower(): string; + // @ts-ignore + public setThrower(thrower: string): void; + // @ts-ignore + public createAddEntityPacket(): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public doesTriggerPressurePlate(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartAbstract.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartAbstract.d.ts new file mode 100644 index 00000000..cc089191 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartAbstract.d.ts @@ -0,0 +1,105 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + abstract class EntityMinecartAbstract extends cn.nukkit.entity.item.EntityVehicle { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public abstract getType(): cn.nukkit.utils.MinecartType; + // @ts-ignore + public abstract isRideable(): boolean; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + public setName(name: string): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getBaseOffset(): number; + // @ts-ignore + public hasCustomName(): boolean; + // @ts-ignore + public canDoInteraction(): boolean; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public dropItem(): void; + // @ts-ignore + public kill(): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public onInteract(p: cn.nukkit.Player, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public applyEntityCollision(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getMaxSpeed(): number; + // @ts-ignore + protected activate(x: number, y: number, z: number, flag: boolean): void; + /** + * Used to multiply the minecart current speed + */ + // @ts-ignore + public setCurrentSpeed(speed: number): void; + /** + * Set the minecart display block + */ + // @ts-ignore + public setDisplayBlock(block: cn.nukkit.block.Block): boolean; + /** + * Set the minecart display block + */ + // @ts-ignore + public setDisplayBlock(block: cn.nukkit.block.Block, update: boolean): boolean; + /** + * Get the minecart display block + */ + // @ts-ignore + public getDisplayBlock(): cn.nukkit.block.Block; + /** + * Set the block offset. + */ + // @ts-ignore + public setDisplayBlockOffset(offset: number): void; + /** + * Get the block display offset + */ + // @ts-ignore + public getDisplayBlockOffset(): number; + /** + * Is the minecart can be slowed when empty? + */ + // @ts-ignore + public isSlowWhenEmpty(): boolean; + /** + * Set the minecart slowdown flag + */ + // @ts-ignore + public setSlowWhenEmpty(slow: boolean): void; + // @ts-ignore + public getFlyingVelocityMod(): cn.nukkit.math.Vector3; + // @ts-ignore + public setFlyingVelocityMod(flying: cn.nukkit.math.Vector3): void; + // @ts-ignore + public getDerailedVelocityMod(): cn.nukkit.math.Vector3; + // @ts-ignore + public setDerailedVelocityMod(derailed: cn.nukkit.math.Vector3): void; + // @ts-ignore + public setMaximumSpeed(speed: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartChest.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartChest.d.ts new file mode 100644 index 00000000..5e5c33e4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartChest.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityMinecartChest extends cn.nukkit.entity.item.EntityMinecartAbstract { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getType(): cn.nukkit.utils.MinecartType; + // @ts-ignore + public isRideable(): boolean; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public dropItem(): void; + // @ts-ignore + protected activate(x: number, y: number, z: number, flag: boolean): void; + // @ts-ignore + public mountEntity(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public onInteract(p: cn.nukkit.Player, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartEmpty.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartEmpty.d.ts new file mode 100644 index 00000000..5d00e578 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartEmpty.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityMinecartEmpty extends cn.nukkit.entity.item.EntityMinecartAbstract { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getType(): cn.nukkit.utils.MinecartType; + // @ts-ignore + public isRideable(): boolean; + // @ts-ignore + protected activate(x: number, y: number, z: number, flag: boolean): void; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartHopper.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartHopper.d.ts new file mode 100644 index 00000000..78ce0eca --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartHopper.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityMinecartHopper extends cn.nukkit.entity.item.EntityMinecartAbstract { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getType(): cn.nukkit.utils.MinecartType; + // @ts-ignore + public isRideable(): boolean; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public dropItem(): void; + // @ts-ignore + protected activate(x: number, y: number, z: number, flag: boolean): void; + // @ts-ignore + public mountEntity(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public onInteract(p: cn.nukkit.Player, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartTNT.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartTNT.d.ts new file mode 100644 index 00000000..8c898441 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityMinecartTNT.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityMinecartTNT extends cn.nukkit.entity.item.EntityMinecartAbstract implements cn.nukkit.entity.EntityExplosive { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public isRideable(): boolean; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public activate(x: number, y: number, z: number, flag: boolean): void; + // @ts-ignore + public explode(): void; + // @ts-ignore + public explode(square: number): void; + // @ts-ignore + public dropItem(): void; + // @ts-ignore + public getType(): cn.nukkit.utils.MinecartType; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public onInteract(player: cn.nukkit.Player, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public mountEntity(entity: cn.nukkit.entity.Entity, mode: number): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPainting.Motive.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPainting.Motive.d.ts new file mode 100644 index 00000000..cdf3b903 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPainting.Motive.d.ts @@ -0,0 +1,75 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + namespace EntityPainting { + // @ts-ignore + class Motive extends java.lang.Enum { + // @ts-ignore + public static KEBAB: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static AZTEC: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static ALBAN: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static AZTEC2: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static BOMB: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static PLANT: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static WASTELAND: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static WANDERER: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static GRAHAM: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static POOL: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static COURBET: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static SUNSET: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static SEA: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static CREEBET: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static MATCH: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static BUST: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static STAGE: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static VOID: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static SKULL_AND_ROSES: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static WITHER: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static FIGHTERS: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static SKELETON: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static DONKEY_KONG: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static POINTER: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static PIG_SCENE: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public static FLAMING_SKULL: cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public title: string; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + // @ts-ignore + public static values(): cn.nukkit.entity.item.EntityPainting.Motive[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.entity.item.EntityPainting.Motive; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPainting.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPainting.d.ts new file mode 100644 index 00000000..404c9ec8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPainting.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityPainting extends cn.nukkit.entity.EntityHanging { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static motives: cn.nukkit.entity.item.EntityPainting.Motive[]; + // @ts-ignore + public static getMotive(name: string): cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public createAddEntityPacket(): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getArt(): cn.nukkit.entity.item.EntityPainting.Motive; + // @ts-ignore + public getMotive(): cn.nukkit.entity.item.EntityPainting.Motive; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPotion.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPotion.d.ts new file mode 100644 index 00000000..237a9443 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPotion.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityPotion extends cn.nukkit.entity.projectile.EntityProjectile { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static DATA_POTION_ID: number; + // @ts-ignore + public potionId: number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + public onCollideWithEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPrimedTNT.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPrimedTNT.d.ts new file mode 100644 index 00000000..548d1daf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityPrimedTNT.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityPrimedTNT extends cn.nukkit.entity.Entity implements cn.nukkit.entity.EntityExplosive { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, source: cn.nukkit.entity.Entity) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + protected fuse: number; + // @ts-ignore + protected source: cn.nukkit.entity.Entity; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + protected getBaseOffset(): number; + // @ts-ignore + public canCollide(): boolean; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public canCollideWith(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public explode(): void; + // @ts-ignore + public getSource(): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityVehicle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityVehicle.d.ts new file mode 100644 index 00000000..a38c81ce --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityVehicle.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + abstract class EntityVehicle extends cn.nukkit.entity.Entity implements cn.nukkit.entity.EntityRideable, cn.nukkit.entity.EntityInteractable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected rollingDirection: boolean; + // @ts-ignore + public getRollingAmplitude(): number; + // @ts-ignore + public setRollingAmplitude(time: number): void; + // @ts-ignore + public getRollingDirection(): number; + // @ts-ignore + public setRollingDirection(direction: number): void; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(damage: number): void; + // @ts-ignore + public getInteractButtonText(): string; + // @ts-ignore + public canDoInteraction(): boolean; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + protected performHurtAnimation(): boolean; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityXPOrb.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityXPOrb.d.ts new file mode 100644 index 00000000..417cab27 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.item.EntityXPOrb.d.ts @@ -0,0 +1,62 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace item { + // @ts-ignore + class EntityXPOrb extends cn.nukkit.entity.Entity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static ORB_SPLIT_SIZES: number[]; + // @ts-ignore + public closestPlayer: cn.nukkit.Player; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + public canCollide(): boolean; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getExp(): number; + // @ts-ignore + public setExp(exp: number): void; + // @ts-ignore + public canCollideWith(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public getPickupDelay(): number; + // @ts-ignore + public setPickupDelay(pickupDelay: number): void; + /** + * Returns the largest size of normal XP orb that will be spawned for the specified amount of XP. Used to split XP + * up into multiple orbs when an amount of XP is dropped. + */ + // @ts-ignore + public static getMaxOrbSize(amount: number): number; + /** + * Splits the specified amount of XP into an array of acceptable XP orb sizes. + */ + // @ts-ignore + public static splitIntoOrbSizes(amount: number): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityBlaze.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityBlaze.d.ts new file mode 100644 index 00000000..2265ce44 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityBlaze.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityBlaze extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityCaveSpider.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityCaveSpider.d.ts new file mode 100644 index 00000000..e210b735 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityCaveSpider.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityCaveSpider extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntityArthropod { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityCreeper.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityCreeper.d.ts new file mode 100644 index 00000000..e4629ec7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityCreeper.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityCreeper extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static DATA_SWELL_DIRECTION: number; + // @ts-ignore + public static DATA_SWELL: number; + // @ts-ignore + public static DATA_SWELL_OLD: number; + // @ts-ignore + public static DATA_POWERED: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public isPowered(): boolean; + // @ts-ignore + public setPowered(bolt: cn.nukkit.entity.weather.EntityLightningStrike): void; + // @ts-ignore + public setPowered(powered: boolean): void; + // @ts-ignore + public onStruckByLightning(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityDrowned.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityDrowned.d.ts new file mode 100644 index 00000000..4b51bd8c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityDrowned.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityDrowned extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityElderGuardian.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityElderGuardian.d.ts new file mode 100644 index 00000000..cdcecfc3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityElderGuardian.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityElderGuardian extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEnderDragon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEnderDragon.d.ts new file mode 100644 index 00000000..3add9396 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEnderDragon.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityEnderDragon extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEnderman.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEnderman.d.ts new file mode 100644 index 00000000..a4cb3046 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEnderman.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityEnderman extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEndermite.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEndermite.d.ts new file mode 100644 index 00000000..70ff9378 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEndermite.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityEndermite extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntityArthropod { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEvoker.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEvoker.d.ts new file mode 100644 index 00000000..8815eb91 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityEvoker.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityEvoker extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityGhast.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityGhast.d.ts new file mode 100644 index 00000000..c0eb5d0b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityGhast.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityGhast extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityGuardian.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityGuardian.d.ts new file mode 100644 index 00000000..e95eb6e8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityGuardian.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityGuardian extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityHusk.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityHusk.d.ts new file mode 100644 index 00000000..3f430081 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityHusk.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityHusk extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityMagmaCube.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityMagmaCube.d.ts new file mode 100644 index 00000000..1fbaf972 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityMagmaCube.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityMagmaCube extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityMob.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityMob.d.ts new file mode 100644 index 00000000..1a554b27 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityMob.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + abstract class EntityMob extends cn.nukkit.entity.EntityCreature { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public onInteract(player: cn.nukkit.Player, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityPhantom.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityPhantom.d.ts new file mode 100644 index 00000000..0dd17a5b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityPhantom.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityPhantom extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityPillager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityPillager.d.ts new file mode 100644 index 00000000..aba4e285 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityPillager.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityPillager extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityRavager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityRavager.d.ts new file mode 100644 index 00000000..5198c89b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityRavager.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityRavager extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityShulker.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityShulker.d.ts new file mode 100644 index 00000000..ade4dc29 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityShulker.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityShulker extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySilverfish.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySilverfish.d.ts new file mode 100644 index 00000000..c0fa3257 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySilverfish.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntitySilverfish extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntityArthropod { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySkeleton.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySkeleton.d.ts new file mode 100644 index 00000000..d00ead9b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySkeleton.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntitySkeleton extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySlime.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySlime.d.ts new file mode 100644 index 00000000..da335d7d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySlime.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntitySlime extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySpider.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySpider.d.ts new file mode 100644 index 00000000..e04ab4aa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntitySpider.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntitySpider extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntityArthropod { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityStray.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityStray.d.ts new file mode 100644 index 00000000..b1df4808 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityStray.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityStray extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityVex.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityVex.d.ts new file mode 100644 index 00000000..7b307aa5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityVex.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityVex extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityVindicator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityVindicator.d.ts new file mode 100644 index 00000000..30d3435b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityVindicator.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityVindicator extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWitch.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWitch.d.ts new file mode 100644 index 00000000..ed2d218b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWitch.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityWitch extends cn.nukkit.entity.mob.EntityMob { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWither.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWither.d.ts new file mode 100644 index 00000000..97174b39 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWither.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityWither extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWitherSkeleton.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWitherSkeleton.d.ts new file mode 100644 index 00000000..26cd9b18 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityWitherSkeleton.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityWitherSkeleton extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombie.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombie.d.ts new file mode 100644 index 00000000..c3a20bda --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombie.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityZombie extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombiePigman.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombiePigman.d.ts new file mode 100644 index 00000000..c95b1d01 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombiePigman.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityZombiePigman extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombieVillager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombieVillager.d.ts new file mode 100644 index 00000000..2f82c3e7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombieVillager.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityZombieVillager extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombieVillagerV1.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombieVillagerV1.d.ts new file mode 100644 index 00000000..15cd8b6f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.mob.EntityZombieVillagerV1.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace mob { + // @ts-ignore + class EntityZombieVillagerV1 extends cn.nukkit.entity.mob.EntityMob implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityAnimal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityAnimal.d.ts new file mode 100644 index 00000000..0f9222e6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityAnimal.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + abstract class EntityAnimal extends cn.nukkit.entity.EntityCreature implements cn.nukkit.entity.EntityAgeable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public isBaby(): boolean; + // @ts-ignore + public isBreedingItem(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onInteract(player: cn.nukkit.Player, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityBat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityBat.d.ts new file mode 100644 index 00000000..48c5f9ec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityBat.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityBat extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCat.d.ts new file mode 100644 index 00000000..7b481a24 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCat.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityCat extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityChicken.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityChicken.d.ts new file mode 100644 index 00000000..463cfda0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityChicken.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityChicken extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public isBreedingItem(item: cn.nukkit.item.Item): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCod.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCod.d.ts new file mode 100644 index 00000000..d4095ffb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCod.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityCod extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCow.d.ts new file mode 100644 index 00000000..80a189d2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityCow.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityCow extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityDolphin.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityDolphin.d.ts new file mode 100644 index 00000000..fd94bbb2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityDolphin.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityDolphin extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityDonkey.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityDonkey.d.ts new file mode 100644 index 00000000..4c64e5ef --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityDonkey.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityDonkey extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityHorse.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityHorse.d.ts new file mode 100644 index 00000000..f3755574 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityHorse.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityHorse extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityLlama.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityLlama.d.ts new file mode 100644 index 00000000..0268cdc5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityLlama.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityLlama extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getEyeHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityMooshroom.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityMooshroom.d.ts new file mode 100644 index 00000000..752503dd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityMooshroom.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityMooshroom extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityMule.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityMule.d.ts new file mode 100644 index 00000000..dd58c47e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityMule.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityMule extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityNPC.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityNPC.d.ts new file mode 100644 index 00000000..8ef7a24f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityNPC.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + interface EntityNPC { + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityOcelot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityOcelot.d.ts new file mode 100644 index 00000000..ba232d26 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityOcelot.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityOcelot extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public isBreedingItem(item: cn.nukkit.item.Item): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPanda.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPanda.d.ts new file mode 100644 index 00000000..435d0a8a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPanda.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityPanda extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityParrot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityParrot.d.ts new file mode 100644 index 00000000..4dfe6b8e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityParrot.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityParrot extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPig.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPig.d.ts new file mode 100644 index 00000000..6365355a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPig.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityPig extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public isBreedingItem(item: cn.nukkit.item.Item): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPolarBear.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPolarBear.d.ts new file mode 100644 index 00000000..b0829a85 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPolarBear.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityPolarBear extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPufferfish.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPufferfish.d.ts new file mode 100644 index 00000000..8328cbac --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityPufferfish.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityPufferfish extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityRabbit.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityRabbit.d.ts new file mode 100644 index 00000000..2fbeb2ed --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityRabbit.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityRabbit extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySalmon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySalmon.d.ts new file mode 100644 index 00000000..a028bd93 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySalmon.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntitySalmon extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySheep.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySheep.d.ts new file mode 100644 index 00000000..88585ebf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySheep.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntitySheep extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public sheared: boolean; + // @ts-ignore + public color: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public onInteract(player: cn.nukkit.Player, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public shear(): boolean; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public setColor(color: number): void; + // @ts-ignore + public getColor(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySkeletonHorse.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySkeletonHorse.d.ts new file mode 100644 index 00000000..0774a1d7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySkeletonHorse.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntitySkeletonHorse extends cn.nukkit.entity.passive.EntityAnimal implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySquid.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySquid.d.ts new file mode 100644 index 00000000..21a1b234 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntitySquid.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntitySquid extends cn.nukkit.entity.passive.EntityWaterAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTameable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTameable.d.ts new file mode 100644 index 00000000..bbf8ec29 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTameable.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + abstract class EntityTameable extends cn.nukkit.entity.passive.EntityAnimal implements cn.nukkit.entity.EntityOwnable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static DATA_TAMED_FLAG: number; + // @ts-ignore + public static DATA_OWNER_NAME: number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getOwnerName(): string; + // @ts-ignore + public setOwnerName(playerName: string): void; + // @ts-ignore + public getOwner(): cn.nukkit.Player; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isTamed(): boolean; + // @ts-ignore + public setTamed(flag: boolean): void; + // @ts-ignore + public isSitting(): boolean; + // @ts-ignore + public setSitting(flag: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTropicalFish.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTropicalFish.d.ts new file mode 100644 index 00000000..c11c6d04 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTropicalFish.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityTropicalFish extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTurtle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTurtle.d.ts new file mode 100644 index 00000000..a66ffbad --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityTurtle.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityTurtle extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityVillager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityVillager.d.ts new file mode 100644 index 00000000..6eb7cc6f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityVillager.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityVillager extends cn.nukkit.entity.EntityCreature implements cn.nukkit.entity.passive.EntityNPC, cn.nukkit.entity.EntityAgeable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public isBaby(): boolean; + // @ts-ignore + public setBaby(baby: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityVillagerV1.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityVillagerV1.d.ts new file mode 100644 index 00000000..f6726d5f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityVillagerV1.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityVillagerV1 extends cn.nukkit.entity.EntityCreature implements cn.nukkit.entity.passive.EntityNPC, cn.nukkit.entity.EntityAgeable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static PROFESSION_FARMER: number; + // @ts-ignore + public static PROFESSION_LIBRARIAN: number; + // @ts-ignore + public static PROFESSION_PRIEST: number; + // @ts-ignore + public static PROFESSION_BLACKSMITH: number; + // @ts-ignore + public static PROFESSION_BUTCHER: number; + // @ts-ignore + public static PROFESSION_GENERIC: number; + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getProfession(): number; + // @ts-ignore + public setProfession(profession: number): void; + // @ts-ignore + public isBaby(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWanderingTrader.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWanderingTrader.d.ts new file mode 100644 index 00000000..ff7dbebb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWanderingTrader.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityWanderingTrader extends cn.nukkit.entity.EntityCreature implements cn.nukkit.entity.passive.EntityNPC { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public initEntity(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWaterAnimal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWaterAnimal.d.ts new file mode 100644 index 00000000..1e017cb2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWaterAnimal.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + abstract class EntityWaterAnimal extends cn.nukkit.entity.EntityCreature implements cn.nukkit.entity.EntityAgeable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public isBaby(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWolf.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWolf.d.ts new file mode 100644 index 00000000..efdc726c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityWolf.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityWolf extends cn.nukkit.entity.passive.EntityAnimal { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public isBreedingItem(item: cn.nukkit.item.Item): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityZombieHorse.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityZombieHorse.d.ts new file mode 100644 index 00000000..44f8330c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.passive.EntityZombieHorse.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace passive { + // @ts-ignore + class EntityZombieHorse extends cn.nukkit.entity.passive.EntityAnimal implements cn.nukkit.entity.EntitySmite { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public initEntity(): void; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityArrow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityArrow.d.ts new file mode 100644 index 00000000..18f025d8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityArrow.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace projectile { + // @ts-ignore + class EntityArrow extends cn.nukkit.entity.projectile.EntityProjectile { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity, critical: boolean) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static DATA_SOURCE_ID: number; + // @ts-ignore + public static PICKUP_NONE: number; + // @ts-ignore + public static PICKUP_ANY: number; + // @ts-ignore + public static PICKUP_CREATIVE: number; + // @ts-ignore + protected pickupMode: number; + // @ts-ignore + protected gravity: number; + // @ts-ignore + protected drag: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getGravity(): number; + // @ts-ignore + public getDrag(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public setCritical(): void; + // @ts-ignore + public setCritical(value: boolean): void; + // @ts-ignore + public isCritical(): boolean; + // @ts-ignore + public getResultDamage(): number; + // @ts-ignore + protected getBaseDamage(): number; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getPickupMode(): number; + // @ts-ignore + public setPickupMode(pickupMode: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityEgg.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityEgg.d.ts new file mode 100644 index 00000000..8d918454 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityEgg.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace projectile { + // @ts-ignore + class EntityEgg extends cn.nukkit.entity.projectile.EntityProjectile { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityEnderPearl.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityEnderPearl.d.ts new file mode 100644 index 00000000..bed3868c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityEnderPearl.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace projectile { + // @ts-ignore + class EntityEnderPearl extends cn.nukkit.entity.projectile.EntityProjectile { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public onCollideWithEntity(entity: cn.nukkit.entity.Entity): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityProjectile.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityProjectile.d.ts new file mode 100644 index 00000000..cbd41704 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityProjectile.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace projectile { + // @ts-ignore + abstract class EntityProjectile extends cn.nukkit.entity.Entity { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity) + // @ts-ignore + public static DATA_SHOOTER_ID: number; + // @ts-ignore + public shootingEntity: cn.nukkit.entity.Entity; + // @ts-ignore + public hadCollision: boolean; + // @ts-ignore + public closeOnCollide: boolean; + // @ts-ignore + protected damage: number; + // @ts-ignore + protected getDamage(): number; + // @ts-ignore + protected getBaseDamage(): number; + // @ts-ignore + public getResultDamage(): number; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public onCollideWithEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public canCollideWith(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntitySnowball.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntitySnowball.d.ts new file mode 100644 index 00000000..1ea2fff0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntitySnowball.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace projectile { + // @ts-ignore + class EntitySnowball extends cn.nukkit.entity.projectile.EntityProjectile { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + protected getGravity(): number; + // @ts-ignore + protected getDrag(): number; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityThrownTrident.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityThrownTrident.d.ts new file mode 100644 index 00000000..e18e7596 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.projectile.EntityThrownTrident.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace projectile { + // @ts-ignore + class EntityThrownTrident extends cn.nukkit.entity.projectile.EntityProjectile { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity) + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag, shootingEntity: cn.nukkit.entity.Entity, critical: boolean) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static DATA_SOURCE_ID: number; + // @ts-ignore + protected trident: cn.nukkit.item.Item; + // @ts-ignore + protected gravity: number; + // @ts-ignore + protected drag: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getGravity(): number; + // @ts-ignore + public getDrag(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public saveNBT(): void; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public setItem(item: cn.nukkit.item.Item): void; + // @ts-ignore + public setCritical(): void; + // @ts-ignore + public setCritical(value: boolean): void; + // @ts-ignore + public isCritical(): boolean; + // @ts-ignore + public getResultDamage(): number; + // @ts-ignore + protected getBaseDamage(): number; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + // @ts-ignore + public spawnTo(player: cn.nukkit.Player): void; + // @ts-ignore + public onCollideWithEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public create(type: java.lang.Object, source: cn.nukkit.level.Position, args: java.lang.Object): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityLightning.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityLightning.d.ts new file mode 100644 index 00000000..b07c13c9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityLightning.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace weather { + // @ts-ignore + class EntityLightning extends cn.nukkit.entity.Entity implements cn.nukkit.entity.weather.EntityLightningStrike { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public state: number; + // @ts-ignore + public liveTime: number; + // @ts-ignore + public getNetworkId(): number; + // @ts-ignore + protected initEntity(): void; + // @ts-ignore + public isEffect(): boolean; + // @ts-ignore + public setEffect(e: boolean): void; + // @ts-ignore + public attack(source: cn.nukkit.event.entity.EntityDamageEvent): boolean; + // @ts-ignore + public onUpdate(currentTick: number): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityLightningStrike.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityLightningStrike.d.ts new file mode 100644 index 00000000..dc6a1c75 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityLightningStrike.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace weather { + // @ts-ignore + interface EntityLightningStrike extends cn.nukkit.entity.weather.EntityWeather { + // @ts-ignore + isEffect(): boolean; + // @ts-ignore + setEffect(e: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityWeather.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityWeather.d.ts new file mode 100644 index 00000000..dbb71ca0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.entity.weather.EntityWeather.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace entity { + namespace weather { + // @ts-ignore + interface EntityWeather { + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.Cancellable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.Cancellable.d.ts new file mode 100644 index 00000000..3fad07d4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.Cancellable.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + // @ts-ignore + interface Cancellable { + // @ts-ignore + isCancelled(): boolean; + // @ts-ignore + setCancelled(): void; + // @ts-ignore + setCancelled(forceCancel: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.Event.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.Event.d.ts new file mode 100644 index 00000000..b857da1e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.Event.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + // @ts-ignore + abstract class Event extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected eventName: string; + // @ts-ignore + public getEventName(): string; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(): void; + // @ts-ignore + public setCancelled(value: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.EventHandler.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.EventHandler.d.ts new file mode 100644 index 00000000..7719c2a7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.EventHandler.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace event { + // @ts-ignore + interface EventHandler { + /** + * 定义这个处理器的优先级。
+ * Define the priority of the handler. + *

Nukkit调用处理器时会按照优先级从低到高的顺序调用,这样保证了高优先级的监听器能覆盖低优先级监听器做出的处理。 + * 调用的先后顺序如下:

+ * When Nukkit calls all handlers, ones with lower priority is called earlier, + * that make handlers with higher priority can replace the decisions made by lower ones. + * The order that Nukkit call handlers is from the first to the last as: + *
    + *
  1. EventPriority.LOWEST + *
  2. EventPriority.LOW + *
  3. EventPriority.NORMAL + *
  4. EventPriority.HIGH + *
  5. EventPriority.HIGHEST + *
  6. EventPriority.MONITOR + *
+ */ + // @ts-ignore + priority(): cn.nukkit.event.EventPriority; + /** + * 定义这个处理器是否忽略被取消的事件。
+ * Define if the handler ignores a cancelled event. + *

如果为{@code true}而且事件发生,这个处理器不会被调用,反之相反。
+ * If ignoreCancelled is {@code 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/nukkit/cn.nukkit.event.EventPriority.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.EventPriority.d.ts new file mode 100644 index 00000000..01eb102d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.EventPriority.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace event { + // @ts-ignore + class EventPriority extends java.lang.Enum { + // @ts-ignore + public static LOWEST: cn.nukkit.event.EventPriority; + // @ts-ignore + public static LOW: cn.nukkit.event.EventPriority; + // @ts-ignore + public static NORMAL: cn.nukkit.event.EventPriority; + // @ts-ignore + public static HIGH: cn.nukkit.event.EventPriority; + // @ts-ignore + public static HIGHEST: cn.nukkit.event.EventPriority; + // @ts-ignore + public static MONITOR: cn.nukkit.event.EventPriority; + // @ts-ignore + public static values(): cn.nukkit.event.EventPriority[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.EventPriority; + // @ts-ignore + public getSlot(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.HandlerList.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.HandlerList.d.ts new file mode 100644 index 00000000..6d4a6c98 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.HandlerList.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace event { + // @ts-ignore + class HandlerList extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static bakeAll(): void; + // @ts-ignore + public static unregisterAll(): void; + // @ts-ignore + public static unregisterAll(plugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public static unregisterAll(listener: cn.nukkit.event.Listener): void; + // @ts-ignore + public register(listener: cn.nukkit.plugin.RegisteredListener): void; + // @ts-ignore + public registerAll(listeners: java.util.Collection): void; + // @ts-ignore + public unregister(listener: cn.nukkit.plugin.RegisteredListener): void; + // @ts-ignore + public unregister(plugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public unregister(listener: cn.nukkit.event.Listener): void; + // @ts-ignore + public bake(): void; + // @ts-ignore + public getRegisteredListeners(): cn.nukkit.plugin.RegisteredListener[]; + // @ts-ignore + public static getRegisteredListeners(plugin: cn.nukkit.plugin.Plugin): java.util.ArrayList; + // @ts-ignore + public static getHandlerLists(): java.util.ArrayList; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.Listener.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.Listener.d.ts new file mode 100644 index 00000000..447d5346 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.Listener.d.ts @@ -0,0 +1,9 @@ +declare namespace cn { + namespace nukkit { + namespace event { + // @ts-ignore + interface Listener { + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockBreakEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockBreakEvent.d.ts new file mode 100644 index 00000000..2a24435c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockBreakEvent.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockBreakEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, block: cn.nukkit.block.Block, item: cn.nukkit.item.Item, drops: cn.nukkit.item.Item) + // @ts-ignore + constructor(player: cn.nukkit.Player, block: cn.nukkit.block.Block, item: cn.nukkit.item.Item, drops: cn.nukkit.item.Item, instaBreak: boolean) + // @ts-ignore + constructor(player: cn.nukkit.Player, block: cn.nukkit.block.Block, item: cn.nukkit.item.Item, drops: cn.nukkit.item.Item, instaBreak: boolean, fastBreak: boolean) + // @ts-ignore + constructor(player: cn.nukkit.Player, block: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, item: cn.nukkit.item.Item, drops: cn.nukkit.item.Item, instaBreak: boolean, fastBreak: boolean) + // @ts-ignore + protected player: cn.nukkit.Player; + // @ts-ignore + protected item: cn.nukkit.item.Item; + // @ts-ignore + protected face: cn.nukkit.math.BlockFace; + // @ts-ignore + protected instaBreak: boolean; + // @ts-ignore + protected blockDrops: cn.nukkit.item.Item[]; + // @ts-ignore + protected blockXP: number; + // @ts-ignore + protected fastBreak: boolean; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public getFace(): cn.nukkit.math.BlockFace; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public getInstaBreak(): boolean; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public setDrops(drops: cn.nukkit.item.Item): void; + // @ts-ignore + public getDropExp(): number; + // @ts-ignore + public setDropExp(xp: number): void; + // @ts-ignore + public setInstaBreak(instaBreak: boolean): void; + // @ts-ignore + public isFastBreak(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockBurnEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockBurnEvent.d.ts new file mode 100644 index 00000000..3160299a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockBurnEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockBurnEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockEvent.d.ts new file mode 100644 index 00000000..ea9c0a2e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + abstract class BlockEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor(block: cn.nukkit.block.Block) + // @ts-ignore + protected block: cn.nukkit.block.Block; + // @ts-ignore + public getBlock(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFadeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFadeEvent.d.ts new file mode 100644 index 00000000..a3fe8e4b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFadeEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockFadeEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, newState: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getNewState(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFormEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFormEvent.d.ts new file mode 100644 index 00000000..11a49239 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFormEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockFormEvent extends cn.nukkit.event.block.BlockGrowEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, newState: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFromToEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFromToEvent.d.ts new file mode 100644 index 00000000..e8d32da6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockFromToEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockFromToEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, to: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getTo(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockGrowEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockGrowEvent.d.ts new file mode 100644 index 00000000..0ab184c9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockGrowEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockGrowEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, newState: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getNewState(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause.d.ts new file mode 100644 index 00000000..0922e744 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + namespace BlockIgniteEvent { + // @ts-ignore + class BlockIgniteCause extends java.lang.Enum { + // @ts-ignore + public static EXPLOSION: cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause; + // @ts-ignore + public static FIREBALL: cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause; + // @ts-ignore + public static FLINT_AND_STEEL: cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause; + // @ts-ignore + public static LAVA: cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause; + // @ts-ignore + public static LIGHTNING: cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause; + // @ts-ignore + public static SPREAD: cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause; + // @ts-ignore + public static values(): cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockIgniteEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockIgniteEvent.d.ts new file mode 100644 index 00000000..649ccc15 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockIgniteEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockIgniteEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, source: cn.nukkit.block.Block, entity: cn.nukkit.entity.Entity, cause: cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getSource(): cn.nukkit.block.Block; + // @ts-ignore + public getEntity(): cn.nukkit.entity.Entity; + // @ts-ignore + public getCause(): cn.nukkit.event.block.BlockIgniteEvent.BlockIgniteCause; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockPistonChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockPistonChangeEvent.d.ts new file mode 100644 index 00000000..2f0e3b6b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockPistonChangeEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockPistonChangeEvent extends cn.nukkit.event.block.BlockEvent { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, oldPower: number, newPower: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getOldPower(): number; + // @ts-ignore + public getNewPower(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockPlaceEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockPlaceEvent.d.ts new file mode 100644 index 00000000..8b2f44a7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockPlaceEvent.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockPlaceEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, blockPlace: cn.nukkit.block.Block, blockReplace: cn.nukkit.block.Block, blockAgainst: cn.nukkit.block.Block, item: cn.nukkit.item.Item) + // @ts-ignore + protected player: cn.nukkit.Player; + // @ts-ignore + protected item: cn.nukkit.item.Item; + // @ts-ignore + protected blockReplace: cn.nukkit.block.Block; + // @ts-ignore + protected blockAgainst: cn.nukkit.block.Block; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlockReplace(): cn.nukkit.block.Block; + // @ts-ignore + public getBlockAgainst(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockRedstoneEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockRedstoneEvent.d.ts new file mode 100644 index 00000000..abecfb94 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockRedstoneEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockRedstoneEvent extends cn.nukkit.event.block.BlockEvent { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, oldPower: number, newPower: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getOldPower(): number; + // @ts-ignore + public getNewPower(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockSpreadEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockSpreadEvent.d.ts new file mode 100644 index 00000000..282038a5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockSpreadEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockSpreadEvent extends cn.nukkit.event.block.BlockFormEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, source: cn.nukkit.block.Block, newState: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getSource(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockUpdateEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockUpdateEvent.d.ts new file mode 100644 index 00000000..55316830 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.BlockUpdateEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockUpdateEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.DoorToggleEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.DoorToggleEvent.d.ts new file mode 100644 index 00000000..5c4ba8d3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.DoorToggleEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class DoorToggleEvent extends cn.nukkit.event.block.BlockUpdateEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, player: cn.nukkit.Player) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public setPlayer(player: cn.nukkit.Player): void; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.ItemFrameDropItemEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.ItemFrameDropItemEvent.d.ts new file mode 100644 index 00000000..c684a1bd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.ItemFrameDropItemEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class ItemFrameDropItemEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, block: cn.nukkit.block.Block, itemFrame: cn.nukkit.blockentity.BlockEntityItemFrame, item: cn.nukkit.item.Item) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public getItemFrame(): cn.nukkit.blockentity.BlockEntityItemFrame; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.LeavesDecayEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.LeavesDecayEvent.d.ts new file mode 100644 index 00000000..f977842f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.LeavesDecayEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class LeavesDecayEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.LiquidFlowEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.LiquidFlowEvent.d.ts new file mode 100644 index 00000000..02e6c32b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.LiquidFlowEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class LiquidFlowEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(to: cn.nukkit.block.Block, source: cn.nukkit.block.BlockLiquid, newFlowDecay: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getNewFlowDecay(): number; + // @ts-ignore + public getSource(): cn.nukkit.block.BlockLiquid; + // @ts-ignore + public getTo(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.block.SignChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.SignChangeEvent.d.ts new file mode 100644 index 00000000..3efff588 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.block.SignChangeEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace block { + // @ts-ignore + class SignChangeEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(block: cn.nukkit.block.Block, player: cn.nukkit.Player, lines: string) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public getLines(): java.lang.String[]; + // @ts-ignore + public getLine(index: number): string; + // @ts-ignore + public setLine(index: number, line: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason.d.ts new file mode 100644 index 00000000..f3eabbcb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason.d.ts @@ -0,0 +1,73 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + namespace CreatureSpawnEvent { + // @ts-ignore + class SpawnReason extends java.lang.Enum { + // @ts-ignore + public static NATURAL: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static JOCKEY: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SPAWNER: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static EGG: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SPAWN_EGG: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static LIGHTNING: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static BUILD_SNOWMAN: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static BUILD_IRONGOLEM: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static BUILD_WITHER: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static VILLAGE_DEFENSE: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static VILLAGE_INVASION: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static BREEDING: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SLIME_SPLIT: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static REINFORCEMENTS: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static NETHER_PORTAL: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static DISPENSE_EGG: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static INFECTION: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static CURED: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static OCELOT_BABY: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SILVERFISH_BLOCK: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static MOUNT: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static TRAP: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static ENDER_PEARL: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SHOULDER_ENTITY: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static DROWNED: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SHEARED: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static CUSTOM: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static DEFAULT: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static values(): cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreatureSpawnEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreatureSpawnEvent.d.ts new file mode 100644 index 00000000..6f4fd67a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreatureSpawnEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class CreatureSpawnEvent extends cn.nukkit.event.Event implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(networkId: number, position: cn.nukkit.level.Position, nbt: cn.nukkit.nbt.tag.CompoundTag, reason: cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getReason(): cn.nukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public getEntityNetworkId(): number; + // @ts-ignore + public getCompoundTag(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getPosition(): cn.nukkit.level.Position; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreeperPowerEvent.PowerCause.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreeperPowerEvent.PowerCause.d.ts new file mode 100644 index 00000000..e5c2195c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreeperPowerEvent.PowerCause.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + namespace CreeperPowerEvent { + // @ts-ignore + class PowerCause extends java.lang.Enum { + // @ts-ignore + public static LIGHTNING: cn.nukkit.event.entity.CreeperPowerEvent.PowerCause; + // @ts-ignore + public static SET_ON: cn.nukkit.event.entity.CreeperPowerEvent.PowerCause; + // @ts-ignore + public static SET_OFF: cn.nukkit.event.entity.CreeperPowerEvent.PowerCause; + // @ts-ignore + public static values(): cn.nukkit.event.entity.CreeperPowerEvent.PowerCause[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.entity.CreeperPowerEvent.PowerCause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreeperPowerEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreeperPowerEvent.d.ts new file mode 100644 index 00000000..2a1bd514 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.CreeperPowerEvent.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class CreeperPowerEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(creeper: cn.nukkit.entity.mob.EntityCreeper, bolt: cn.nukkit.entity.weather.EntityLightningStrike, cause: cn.nukkit.event.entity.CreeperPowerEvent.PowerCause) + // @ts-ignore + constructor(creeper: cn.nukkit.entity.mob.EntityCreeper, cause: cn.nukkit.event.entity.CreeperPowerEvent.PowerCause) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.entity.mob.EntityCreeper; + /** + * Gets the lightning bolt which is striking the Creeper. + */ + // @ts-ignore + public getLightning(): cn.nukkit.entity.weather.EntityLightningStrike; + /** + * Gets the cause of the creeper being (un)powered. + */ + // @ts-ignore + public getCause(): cn.nukkit.event.entity.CreeperPowerEvent.PowerCause; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityArmorChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityArmorChangeEvent.d.ts new file mode 100644 index 00000000..94d85d51 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityArmorChangeEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityArmorChangeEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, oldItem: cn.nukkit.item.Item, newItem: cn.nukkit.item.Item, slot: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getSlot(): number; + // @ts-ignore + public getNewItem(): cn.nukkit.item.Item; + // @ts-ignore + public setNewItem(newItem: cn.nukkit.item.Item): void; + // @ts-ignore + public getOldItem(): cn.nukkit.item.Item; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityBlockChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityBlockChangeEvent.d.ts new file mode 100644 index 00000000..cbc01c56 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityBlockChangeEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityBlockChangeEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, from: cn.nukkit.block.Block, to: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFrom(): cn.nukkit.block.Block; + // @ts-ignore + public getTo(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustByBlockEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustByBlockEvent.d.ts new file mode 100644 index 00000000..8aae0c72 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustByBlockEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityCombustByBlockEvent extends cn.nukkit.event.entity.EntityCombustEvent { + // @ts-ignore + constructor(combuster: cn.nukkit.block.Block, combustee: cn.nukkit.entity.Entity, duration: number) + // @ts-ignore + protected combuster: cn.nukkit.block.Block; + // @ts-ignore + public getCombuster(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustByEntityEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustByEntityEvent.d.ts new file mode 100644 index 00000000..fa40d719 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustByEntityEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityCombustByEntityEvent extends cn.nukkit.event.entity.EntityCombustEvent { + // @ts-ignore + constructor(combuster: cn.nukkit.entity.Entity, combustee: cn.nukkit.entity.Entity, duration: number) + // @ts-ignore + protected combuster: cn.nukkit.entity.Entity; + // @ts-ignore + public getCombuster(): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustEvent.d.ts new file mode 100644 index 00000000..fef12ed3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityCombustEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityCombustEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(combustee: cn.nukkit.entity.Entity, duration: number) + // @ts-ignore + protected duration: number; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getDuration(): number; + // @ts-ignore + public setDuration(duration: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByBlockEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByBlockEvent.d.ts new file mode 100644 index 00000000..bd05ad42 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByBlockEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDamageByBlockEvent extends cn.nukkit.event.entity.EntityDamageEvent { + // @ts-ignore + constructor(damager: cn.nukkit.block.Block, entity: cn.nukkit.entity.Entity, cause: cn.nukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) + // @ts-ignore + public getDamager(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByChildEntityEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByChildEntityEvent.d.ts new file mode 100644 index 00000000..0fbc948e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByChildEntityEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDamageByChildEntityEvent extends cn.nukkit.event.entity.EntityDamageByEntityEvent { + // @ts-ignore + constructor(damager: cn.nukkit.entity.Entity, childEntity: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity, cause: cn.nukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) + // @ts-ignore + public getChild(): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByEntityEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByEntityEvent.d.ts new file mode 100644 index 00000000..95a9c974 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageByEntityEvent.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDamageByEntityEvent extends cn.nukkit.event.entity.EntityDamageEvent { + // @ts-ignore + constructor(damager: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity, cause: cn.nukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) + // @ts-ignore + constructor(damager: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity, cause: cn.nukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: java.util.Map) + // @ts-ignore + constructor(damager: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity, cause: cn.nukkit.event.entity.EntityDamageEvent.DamageCause, damage: number, knockBack: number) + // @ts-ignore + constructor(damager: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity, cause: cn.nukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: java.util.Map, knockBack: number) + // @ts-ignore + protected addAttackerModifiers(damager: cn.nukkit.entity.Entity): void; + // @ts-ignore + public getDamager(): cn.nukkit.entity.Entity; + // @ts-ignore + public getKnockBack(): number; + // @ts-ignore + public setKnockBack(knockBack: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.DamageCause.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.DamageCause.d.ts new file mode 100644 index 00000000..fa1b775c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.DamageCause.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + namespace EntityDamageEvent { + // @ts-ignore + class DamageCause extends java.lang.Enum { + // @ts-ignore + public static CONTACT: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static ENTITY_ATTACK: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static PROJECTILE: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static SUFFOCATION: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static FALL: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static FIRE: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static FIRE_TICK: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static LAVA: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static DROWNING: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static BLOCK_EXPLOSION: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static ENTITY_EXPLOSION: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static VOID: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static SUICIDE: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static MAGIC: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static CUSTOM: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static LIGHTNING: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static HUNGER: cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static values(): cn.nukkit.event.entity.EntityDamageEvent.DamageCause[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.DamageModifier.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.DamageModifier.d.ts new file mode 100644 index 00000000..86b13c30 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.DamageModifier.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + namespace EntityDamageEvent { + // @ts-ignore + class DamageModifier extends java.lang.Enum { + // @ts-ignore + public static BASE: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static ARMOR: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static STRENGTH: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static WEAKNESS: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static RESISTANCE: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static ABSORPTION: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static ARMOR_ENCHANTMENTS: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static values(): cn.nukkit.event.entity.EntityDamageEvent.DamageModifier[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.entity.EntityDamageEvent.DamageModifier; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.d.ts new file mode 100644 index 00000000..ebfb1aec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDamageEvent.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDamageEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, cause: cn.nukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, cause: cn.nukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: java.util.Map) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getCause(): cn.nukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public getOriginalDamage(): number; + // @ts-ignore + public getOriginalDamage(type: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier): number; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public getDamage(type: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier): number; + // @ts-ignore + public setDamage(damage: number): void; + // @ts-ignore + public setDamage(damage: number, type: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier): void; + // @ts-ignore + public isApplicable(type: cn.nukkit.event.entity.EntityDamageEvent.DamageModifier): boolean; + // @ts-ignore + public getFinalDamage(): number; + // @ts-ignore + public getAttackCooldown(): number; + // @ts-ignore + public setAttackCooldown(attackCooldown: number): void; + // @ts-ignore + public canBeReducedByArmor(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDeathEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDeathEvent.d.ts new file mode 100644 index 00000000..670bb250 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDeathEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDeathEvent extends cn.nukkit.event.entity.EntityEvent { + // @ts-ignore + constructor(entity: cn.nukkit.entity.EntityLiving) + // @ts-ignore + constructor(entity: cn.nukkit.entity.EntityLiving, drops: cn.nukkit.item.Item) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getDrops(): cn.nukkit.item.Item[]; + // @ts-ignore + public setDrops(drops: cn.nukkit.item.Item): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDespawnEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDespawnEvent.d.ts new file mode 100644 index 00000000..97b8b1a8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityDespawnEvent.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDespawnEvent extends cn.nukkit.event.entity.EntityEvent { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPosition(): cn.nukkit.level.Position; + // @ts-ignore + public getType(): number; + // @ts-ignore + public isCreature(): boolean; + // @ts-ignore + public isHuman(): boolean; + // @ts-ignore + public isProjectile(): boolean; + // @ts-ignore + public isVehicle(): boolean; + // @ts-ignore + public isItem(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityEvent.d.ts new file mode 100644 index 00000000..039d2ee1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + abstract class EntityEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor() + // @ts-ignore + protected entity: cn.nukkit.entity.Entity; + // @ts-ignore + public getEntity(): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityExplodeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityExplodeEvent.d.ts new file mode 100644 index 00000000..03d46ece --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityExplodeEvent.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityExplodeEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, position: cn.nukkit.level.Position, blocks: java.util.List, yield: number) + // @ts-ignore + protected position: cn.nukkit.level.Position; + // @ts-ignore + protected blocks: java.util.List; + // @ts-ignore + protected yield: number; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPosition(): cn.nukkit.level.Position; + // @ts-ignore + public getBlockList(): java.util.List; + // @ts-ignore + public setBlockList(blocks: java.util.List): void; + // @ts-ignore + public getYield(): number; + // @ts-ignore + public setYield(yield: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityExplosionPrimeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityExplosionPrimeEvent.d.ts new file mode 100644 index 00000000..8590ac6d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityExplosionPrimeEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityExplosionPrimeEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, force: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getForce(): number; + // @ts-ignore + public setForce(force: number): void; + // @ts-ignore + public isBlockBreaking(): boolean; + // @ts-ignore + public setBlockBreaking(blockBreaking: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityInteractEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityInteractEvent.d.ts new file mode 100644 index 00000000..5fd072d3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityInteractEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityInteractEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, block: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getBlock(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityInventoryChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityInventoryChangeEvent.d.ts new file mode 100644 index 00000000..ab67853e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityInventoryChangeEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityInventoryChangeEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, oldItem: cn.nukkit.item.Item, newItem: cn.nukkit.item.Item, slot: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getSlot(): number; + // @ts-ignore + public getNewItem(): cn.nukkit.item.Item; + // @ts-ignore + public setNewItem(newItem: cn.nukkit.item.Item): void; + // @ts-ignore + public getOldItem(): cn.nukkit.item.Item; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityLevelChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityLevelChangeEvent.d.ts new file mode 100644 index 00000000..c31e6039 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityLevelChangeEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityLevelChangeEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, originLevel: cn.nukkit.level.Level, targetLevel: cn.nukkit.level.Level) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getOrigin(): cn.nukkit.level.Level; + // @ts-ignore + public getTarget(): cn.nukkit.level.Level; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityMotionEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityMotionEvent.d.ts new file mode 100644 index 00000000..41321689 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityMotionEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityMotionEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, motion: cn.nukkit.math.Vector3) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getVector(): cn.nukkit.math.Vector3; + // @ts-ignore + public getMotion(): cn.nukkit.math.Vector3; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType.d.ts new file mode 100644 index 00000000..c35b6118 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + namespace EntityPortalEnterEvent { + // @ts-ignore + class PortalType extends java.lang.Enum { + // @ts-ignore + public static NETHER: cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType; + // @ts-ignore + public static END: cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType; + // @ts-ignore + public static values(): cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityPortalEnterEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityPortalEnterEvent.d.ts new file mode 100644 index 00000000..89b0a83e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityPortalEnterEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityPortalEnterEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, type: cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPortalType(): cn.nukkit.event.entity.EntityPortalEnterEvent.PortalType; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityRegainHealthEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityRegainHealthEvent.d.ts new file mode 100644 index 00000000..442bec9c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityRegainHealthEvent.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityRegainHealthEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, amount: number, regainReason: number) + // @ts-ignore + public static CAUSE_REGEN: number; + // @ts-ignore + public static CAUSE_EATING: number; + // @ts-ignore + public static CAUSE_MAGIC: number; + // @ts-ignore + public static CAUSE_CUSTOM: number; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getAmount(): number; + // @ts-ignore + public setAmount(amount: number): void; + // @ts-ignore + public getRegainReason(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityShootBowEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityShootBowEvent.d.ts new file mode 100644 index 00000000..c575bf4a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityShootBowEvent.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityShootBowEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(shooter: cn.nukkit.entity.EntityLiving, bow: cn.nukkit.item.Item, projectile: cn.nukkit.entity.projectile.EntityProjectile, force: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.entity.EntityLiving; + // @ts-ignore + public getBow(): cn.nukkit.item.Item; + // @ts-ignore + public getProjectile(): cn.nukkit.entity.projectile.EntityProjectile; + // @ts-ignore + public setProjectile(projectile: cn.nukkit.entity.Entity): void; + // @ts-ignore + public getForce(): number; + // @ts-ignore + public setForce(force: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntitySpawnEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntitySpawnEvent.d.ts new file mode 100644 index 00000000..7f18d74b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntitySpawnEvent.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntitySpawnEvent extends cn.nukkit.event.entity.EntityEvent { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPosition(): cn.nukkit.level.Position; + // @ts-ignore + public getType(): number; + // @ts-ignore + public isCreature(): boolean; + // @ts-ignore + public isHuman(): boolean; + // @ts-ignore + public isProjectile(): boolean; + // @ts-ignore + public isVehicle(): boolean; + // @ts-ignore + public isItem(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityTeleportEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityTeleportEvent.d.ts new file mode 100644 index 00000000..be710ebc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityTeleportEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityTeleportEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, from: cn.nukkit.level.Location, to: cn.nukkit.level.Location) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFrom(): cn.nukkit.level.Location; + // @ts-ignore + public setFrom(from: cn.nukkit.level.Location): void; + // @ts-ignore + public getTo(): cn.nukkit.level.Location; + // @ts-ignore + public setTo(to: cn.nukkit.level.Location): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityVehicleEnterEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityVehicleEnterEvent.d.ts new file mode 100644 index 00000000..8e4f4309 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityVehicleEnterEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityVehicleEnterEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, vehicle: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getVehicle(): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityVehicleExitEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityVehicleExitEvent.d.ts new file mode 100644 index 00000000..9507d555 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.EntityVehicleExitEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityVehicleExitEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, vehicle: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getVehicle(): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ExplosionPrimeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ExplosionPrimeEvent.d.ts new file mode 100644 index 00000000..0a002ff9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ExplosionPrimeEvent.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class ExplosionPrimeEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.Entity, force: number) + // @ts-ignore + protected force: number; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getForce(): number; + // @ts-ignore + public setForce(force: number): void; + // @ts-ignore + public isBlockBreaking(): boolean; + // @ts-ignore + public setBlockBreaking(affectsBlocks: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ItemDespawnEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ItemDespawnEvent.d.ts new file mode 100644 index 00000000..efca5774 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ItemDespawnEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class ItemDespawnEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(item: cn.nukkit.entity.item.EntityItem) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.entity.item.EntityItem; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ItemSpawnEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ItemSpawnEvent.d.ts new file mode 100644 index 00000000..d4d867b5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ItemSpawnEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class ItemSpawnEvent extends cn.nukkit.event.entity.EntityEvent { + // @ts-ignore + constructor(item: cn.nukkit.entity.item.EntityItem) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.entity.item.EntityItem; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ProjectileHitEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ProjectileHitEvent.d.ts new file mode 100644 index 00000000..0f01e9c2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ProjectileHitEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class ProjectileHitEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.projectile.EntityProjectile) + // @ts-ignore + constructor(entity: cn.nukkit.entity.projectile.EntityProjectile, movingObjectPosition: cn.nukkit.level.MovingObjectPosition) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getMovingObjectPosition(): cn.nukkit.level.MovingObjectPosition; + // @ts-ignore + public setMovingObjectPosition(movingObjectPosition: cn.nukkit.level.MovingObjectPosition): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ProjectileLaunchEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ProjectileLaunchEvent.d.ts new file mode 100644 index 00000000..eef9e45e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.entity.ProjectileLaunchEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace entity { + // @ts-ignore + class ProjectileLaunchEvent extends cn.nukkit.event.entity.EntityEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(entity: cn.nukkit.entity.projectile.EntityProjectile) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.entity.projectile.EntityProjectile; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.BrewEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.BrewEvent.d.ts new file mode 100644 index 00000000..2975d951 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.BrewEvent.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class BrewEvent extends cn.nukkit.event.inventory.InventoryEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(blockEntity: cn.nukkit.blockentity.BlockEntityBrewingStand) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getBrewingStand(): cn.nukkit.blockentity.BlockEntityBrewingStand; + // @ts-ignore + public getIngredient(): cn.nukkit.item.Item; + // @ts-ignore + public getPotions(): cn.nukkit.item.Item[]; + // @ts-ignore + public getPotion(index: number): cn.nukkit.item.Item; + // @ts-ignore + public getFuel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.CraftItemEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.CraftItemEvent.d.ts new file mode 100644 index 00000000..aeef034c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.CraftItemEvent.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class CraftItemEvent extends cn.nukkit.event.Event implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(transaction: cn.nukkit.inventory.transaction.CraftingTransaction) + // @ts-ignore + constructor(player: cn.nukkit.Player, input: cn.nukkit.item.Item, recipe: cn.nukkit.inventory.Recipe) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getTransaction(): cn.nukkit.inventory.transaction.CraftingTransaction; + // @ts-ignore + public getInput(): cn.nukkit.item.Item[]; + // @ts-ignore + public getRecipe(): cn.nukkit.inventory.Recipe; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.FurnaceBurnEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.FurnaceBurnEvent.d.ts new file mode 100644 index 00000000..ad110928 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.FurnaceBurnEvent.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class FurnaceBurnEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(furnace: cn.nukkit.blockentity.BlockEntityFurnace, fuel: cn.nukkit.item.Item, burnTime: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFurnace(): cn.nukkit.blockentity.BlockEntityFurnace; + // @ts-ignore + public getFuel(): cn.nukkit.item.Item; + // @ts-ignore + public getBurnTime(): number; + // @ts-ignore + public setBurnTime(burnTime: number): void; + // @ts-ignore + public isBurning(): boolean; + // @ts-ignore + public setBurning(burning: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.FurnaceSmeltEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.FurnaceSmeltEvent.d.ts new file mode 100644 index 00000000..5ed2e46a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.FurnaceSmeltEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class FurnaceSmeltEvent extends cn.nukkit.event.block.BlockEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(furnace: cn.nukkit.blockentity.BlockEntityFurnace, source: cn.nukkit.item.Item, result: cn.nukkit.item.Item) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFurnace(): cn.nukkit.blockentity.BlockEntityFurnace; + // @ts-ignore + public getSource(): cn.nukkit.item.Item; + // @ts-ignore + public getResult(): cn.nukkit.item.Item; + // @ts-ignore + public setResult(result: cn.nukkit.item.Item): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryClickEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryClickEvent.d.ts new file mode 100644 index 00000000..2c796cf2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryClickEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryClickEvent extends cn.nukkit.event.inventory.InventoryEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(who: cn.nukkit.Player, inventory: cn.nukkit.inventory.Inventory, slot: number, sourceItem: cn.nukkit.item.Item, heldItem: cn.nukkit.item.Item) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getSlot(): number; + // @ts-ignore + public getSourceItem(): cn.nukkit.item.Item; + // @ts-ignore + public getHeldItem(): cn.nukkit.item.Item; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryCloseEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryCloseEvent.d.ts new file mode 100644 index 00000000..43f2ec2c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryCloseEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryCloseEvent extends cn.nukkit.event.inventory.InventoryEvent { + // @ts-ignore + constructor(inventory: cn.nukkit.inventory.Inventory, who: cn.nukkit.Player) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryEvent.d.ts new file mode 100644 index 00000000..62954ad3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + abstract class InventoryEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor(inventory: cn.nukkit.inventory.Inventory) + // @ts-ignore + protected inventory: cn.nukkit.inventory.Inventory; + // @ts-ignore + public getInventory(): cn.nukkit.inventory.Inventory; + // @ts-ignore + public getViewers(): cn.nukkit.Player[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryMoveItemEvent.Action.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryMoveItemEvent.Action.d.ts new file mode 100644 index 00000000..1302d3c0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryMoveItemEvent.Action.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + namespace InventoryMoveItemEvent { + // @ts-ignore + class Action extends java.lang.Enum { + // @ts-ignore + public static SLOT_CHANGE: cn.nukkit.event.inventory.InventoryMoveItemEvent.Action; + // @ts-ignore + public static PICKUP: cn.nukkit.event.inventory.InventoryMoveItemEvent.Action; + // @ts-ignore + public static DROP: cn.nukkit.event.inventory.InventoryMoveItemEvent.Action; + // @ts-ignore + public static DISPENSE: cn.nukkit.event.inventory.InventoryMoveItemEvent.Action; + // @ts-ignore + public static values(): cn.nukkit.event.inventory.InventoryMoveItemEvent.Action[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.inventory.InventoryMoveItemEvent.Action; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryMoveItemEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryMoveItemEvent.d.ts new file mode 100644 index 00000000..15a8832f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryMoveItemEvent.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryMoveItemEvent extends cn.nukkit.event.inventory.InventoryEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(from: cn.nukkit.inventory.Inventory, targetInventory: cn.nukkit.inventory.Inventory, source: cn.nukkit.inventory.InventoryHolder, item: cn.nukkit.item.Item, action: cn.nukkit.event.inventory.InventoryMoveItemEvent.Action) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getTargetInventory(): cn.nukkit.inventory.Inventory; + // @ts-ignore + public getSource(): cn.nukkit.inventory.InventoryHolder; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public setItem(item: cn.nukkit.item.Item): void; + // @ts-ignore + public getAction(): cn.nukkit.event.inventory.InventoryMoveItemEvent.Action; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryOpenEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryOpenEvent.d.ts new file mode 100644 index 00000000..330a0eff --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryOpenEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryOpenEvent extends cn.nukkit.event.inventory.InventoryEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(inventory: cn.nukkit.inventory.Inventory, who: cn.nukkit.Player) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryPickupArrowEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryPickupArrowEvent.d.ts new file mode 100644 index 00000000..bcb0c738 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryPickupArrowEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryPickupArrowEvent extends cn.nukkit.event.inventory.InventoryEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(inventory: cn.nukkit.inventory.Inventory, arrow: cn.nukkit.entity.projectile.EntityArrow) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getArrow(): cn.nukkit.entity.projectile.EntityArrow; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryPickupItemEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryPickupItemEvent.d.ts new file mode 100644 index 00000000..a4923df6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryPickupItemEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryPickupItemEvent extends cn.nukkit.event.inventory.InventoryEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(inventory: cn.nukkit.inventory.Inventory, item: cn.nukkit.entity.item.EntityItem) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getItem(): cn.nukkit.entity.item.EntityItem; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryTransactionEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryTransactionEvent.d.ts new file mode 100644 index 00000000..ee4a8b56 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.InventoryTransactionEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryTransactionEvent extends cn.nukkit.event.Event implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(transaction: cn.nukkit.inventory.transaction.InventoryTransaction) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getTransaction(): cn.nukkit.inventory.transaction.InventoryTransaction; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.StartBrewEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.StartBrewEvent.d.ts new file mode 100644 index 00000000..5f458269 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.inventory.StartBrewEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace inventory { + // @ts-ignore + class StartBrewEvent extends cn.nukkit.event.inventory.InventoryEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(blockEntity: cn.nukkit.blockentity.BlockEntityBrewingStand) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getBrewingStand(): cn.nukkit.blockentity.BlockEntityBrewingStand; + // @ts-ignore + public getIngredient(): cn.nukkit.item.Item; + // @ts-ignore + public getPotions(): cn.nukkit.item.Item[]; + // @ts-ignore + public getPotion(index: number): cn.nukkit.item.Item; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkEvent.d.ts new file mode 100644 index 00000000..296b9288 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + abstract class ChunkEvent extends cn.nukkit.event.level.LevelEvent { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk) + // @ts-ignore + public getChunk(): cn.nukkit.level.format.FullChunk; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkLoadEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkLoadEvent.d.ts new file mode 100644 index 00000000..172e3728 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkLoadEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class ChunkLoadEvent extends cn.nukkit.event.level.ChunkEvent { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk, newChunk: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public isNewChunk(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkPopulateEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkPopulateEvent.d.ts new file mode 100644 index 00000000..b5958925 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkPopulateEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class ChunkPopulateEvent extends cn.nukkit.event.level.ChunkEvent { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkUnloadEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkUnloadEvent.d.ts new file mode 100644 index 00000000..4686bf47 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ChunkUnloadEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class ChunkUnloadEvent extends cn.nukkit.event.level.ChunkEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(chunk: cn.nukkit.level.format.FullChunk) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelEvent.d.ts new file mode 100644 index 00000000..9024e837 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + abstract class LevelEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor(level: cn.nukkit.level.Level) + // @ts-ignore + public getLevel(): cn.nukkit.level.Level; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelInitEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelInitEvent.d.ts new file mode 100644 index 00000000..b9a20a77 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelInitEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class LevelInitEvent extends cn.nukkit.event.level.LevelEvent { + // @ts-ignore + constructor(level: cn.nukkit.level.Level) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelLoadEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelLoadEvent.d.ts new file mode 100644 index 00000000..8ef85e5a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelLoadEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class LevelLoadEvent extends cn.nukkit.event.level.LevelEvent { + // @ts-ignore + constructor(level: cn.nukkit.level.Level) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelSaveEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelSaveEvent.d.ts new file mode 100644 index 00000000..9ec116d5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelSaveEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class LevelSaveEvent extends cn.nukkit.event.level.LevelEvent { + // @ts-ignore + constructor(level: cn.nukkit.level.Level) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelUnloadEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelUnloadEvent.d.ts new file mode 100644 index 00000000..249a0951 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.LevelUnloadEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class LevelUnloadEvent extends cn.nukkit.event.level.LevelEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(level: cn.nukkit.level.Level) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.SpawnChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.SpawnChangeEvent.d.ts new file mode 100644 index 00000000..b8c98148 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.SpawnChangeEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class SpawnChangeEvent extends cn.nukkit.event.level.LevelEvent { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, previousSpawn: cn.nukkit.level.Position) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPreviousSpawn(): cn.nukkit.level.Position; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ThunderChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ThunderChangeEvent.d.ts new file mode 100644 index 00000000..f92770e3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.ThunderChangeEvent.d.ts @@ -0,0 +1,20 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class ThunderChangeEvent extends cn.nukkit.event.level.WeatherEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, to: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + /** + * Gets the state of thunder that the world is being set to + */ + // @ts-ignore + public toThunderState(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.WeatherChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.WeatherChangeEvent.d.ts new file mode 100644 index 00000000..787c7fca --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.WeatherChangeEvent.d.ts @@ -0,0 +1,20 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + class WeatherChangeEvent extends cn.nukkit.event.level.WeatherEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, to: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + /** + * Gets the state of weather that the world is being set to + */ + // @ts-ignore + public toWeatherState(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.level.WeatherEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.WeatherEvent.d.ts new file mode 100644 index 00000000..77ceab2e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.level.WeatherEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace level { + // @ts-ignore + abstract class WeatherEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor(level: cn.nukkit.level.Level) + // @ts-ignore + public getLevel(): cn.nukkit.level.Level; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAchievementAwardedEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAchievementAwardedEvent.d.ts new file mode 100644 index 00000000..170008fe --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAchievementAwardedEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerAchievementAwardedEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, achievementId: string) + // @ts-ignore + protected achievement: string; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getAchievement(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAnimationEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAnimationEvent.d.ts new file mode 100644 index 00000000..feea86ac --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAnimationEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerAnimationEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player) + // @ts-ignore + constructor(player: cn.nukkit.Player, animation: cn.nukkit.network.protocol.AnimatePacket.Action) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getAnimationType(): cn.nukkit.network.protocol.AnimatePacket.Action; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult.d.ts new file mode 100644 index 00000000..c0df3c97 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + namespace PlayerAsyncPreLoginEvent { + // @ts-ignore + class LoginResult extends java.lang.Enum { + // @ts-ignore + public static SUCCESS: cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult; + // @ts-ignore + public static KICK: cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult; + // @ts-ignore + public static values(): cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAsyncPreLoginEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAsyncPreLoginEvent.d.ts new file mode 100644 index 00000000..9fef6d25 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerAsyncPreLoginEvent.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerAsyncPreLoginEvent extends cn.nukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(name: string, uuid: java.util.UUID, address: string, port: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getUuid(): java.util.UUID; + // @ts-ignore + public getAddress(): string; + // @ts-ignore + public getPort(): number; + // @ts-ignore + public getLoginResult(): cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult; + // @ts-ignore + public setLoginResult(loginResult: cn.nukkit.event.player.PlayerAsyncPreLoginEvent.LoginResult): void; + // @ts-ignore + public getKickMessage(): string; + // @ts-ignore + public setKickMessage(kickMessage: string): void; + // @ts-ignore + public scheduleSyncAction(action: java.util.function$.Consumer): void; + // @ts-ignore + public getScheduledActions(): java.util.List; + // @ts-ignore + public allow(): void; + // @ts-ignore + public disAllow(message: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBedEnterEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBedEnterEvent.d.ts new file mode 100644 index 00000000..b30ef5e2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBedEnterEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerBedEnterEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, bed: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getBed(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBedLeaveEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBedLeaveEvent.d.ts new file mode 100644 index 00000000..42009752 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBedLeaveEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerBedLeaveEvent extends cn.nukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: cn.nukkit.Player, bed: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getBed(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBlockPickEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBlockPickEvent.d.ts new file mode 100644 index 00000000..c6f34b2c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBlockPickEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerBlockPickEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, blockClicked: cn.nukkit.block.Block, item: cn.nukkit.item.Item) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public setItem(item: cn.nukkit.item.Item): void; + // @ts-ignore + public getBlockClicked(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBucketEmptyEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBucketEmptyEvent.d.ts new file mode 100644 index 00000000..c85732f8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBucketEmptyEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerBucketEmptyEvent extends cn.nukkit.event.player.PlayerBucketEvent { + // @ts-ignore + constructor(who: cn.nukkit.Player, blockClicked: cn.nukkit.block.Block, blockFace: cn.nukkit.math.BlockFace, bucket: cn.nukkit.item.Item, itemInHand: cn.nukkit.item.Item) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBucketFillEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBucketFillEvent.d.ts new file mode 100644 index 00000000..e644db45 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerBucketFillEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerBucketFillEvent extends cn.nukkit.event.player.PlayerBucketEvent { + // @ts-ignore + constructor(who: cn.nukkit.Player, blockClicked: cn.nukkit.block.Block, blockFace: cn.nukkit.math.BlockFace, bucket: cn.nukkit.item.Item, itemInHand: cn.nukkit.item.Item) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChangeSkinEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChangeSkinEvent.d.ts new file mode 100644 index 00000000..83810756 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChangeSkinEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerChangeSkinEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, skin: cn.nukkit.entity.data.Skin) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getSkin(): cn.nukkit.entity.data.Skin; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChatEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChatEvent.d.ts new file mode 100644 index 00000000..d8dd1873 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChatEvent.d.ts @@ -0,0 +1,34 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerChatEvent extends cn.nukkit.event.player.PlayerMessageEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, message: string) + // @ts-ignore + constructor(player: cn.nukkit.Player, message: string, format: string, recipients: java.util.Set) + // @ts-ignore + protected format: string; + // @ts-ignore + protected recipients: java.util.Set; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + /** + * Changes the player that is sending the message + */ + // @ts-ignore + public setPlayer(player: cn.nukkit.Player): void; + // @ts-ignore + public getFormat(): string; + // @ts-ignore + public setFormat(format: string): void; + // @ts-ignore + public getRecipients(): java.util.Set; + // @ts-ignore + public setRecipients(recipients: java.util.Set): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChunkRequestEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChunkRequestEvent.d.ts new file mode 100644 index 00000000..a17e6752 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerChunkRequestEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerChunkRequestEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, chunkX: number, chunkZ: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getChunkX(): number; + // @ts-ignore + public getChunkZ(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerCommandPreprocessEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerCommandPreprocessEvent.d.ts new file mode 100644 index 00000000..82e63748 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerCommandPreprocessEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerCommandPreprocessEvent extends cn.nukkit.event.player.PlayerMessageEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, message: string) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public setPlayer(player: cn.nukkit.Player): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerCreationEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerCreationEvent.d.ts new file mode 100644 index 00000000..a55b6653 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerCreationEvent.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerCreationEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor(interfaz: cn.nukkit.network.SourceInterface, baseClass: java.lang.Class, playerClass: java.lang.Class, clientId: java.lang.Long, address: string, port: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getInterface(): cn.nukkit.network.SourceInterface; + // @ts-ignore + public getAddress(): string; + // @ts-ignore + public getPort(): number; + // @ts-ignore + public getClientId(): java.lang.Long; + // @ts-ignore + public getBaseClass(): java.lang.Class; + // @ts-ignore + public setBaseClass(baseClass: java.lang.Class): void; + // @ts-ignore + public getPlayerClass(): java.lang.Class; + // @ts-ignore + public setPlayerClass(playerClass: java.lang.Class): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerDeathEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerDeathEvent.d.ts new file mode 100644 index 00000000..24b515c9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerDeathEvent.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerDeathEvent extends cn.nukkit.event.entity.EntityDeathEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, drops: cn.nukkit.item.Item, deathMessage: cn.nukkit.lang.TextContainer, experience: number) + // @ts-ignore + constructor(player: cn.nukkit.Player, drops: cn.nukkit.item.Item, deathMessage: string, experience: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.Player; + // @ts-ignore + public getDeathMessage(): cn.nukkit.lang.TextContainer; + // @ts-ignore + public setDeathMessage(deathMessage: cn.nukkit.lang.TextContainer): void; + // @ts-ignore + public setDeathMessage(deathMessage: string): void; + // @ts-ignore + public getKeepInventory(): boolean; + // @ts-ignore + public setKeepInventory(keepInventory: boolean): void; + // @ts-ignore + public getKeepExperience(): boolean; + // @ts-ignore + public setKeepExperience(keepExperience: boolean): void; + // @ts-ignore + public getExperience(): number; + // @ts-ignore + public setExperience(experience: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerDropItemEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerDropItemEvent.d.ts new file mode 100644 index 00000000..87def73f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerDropItemEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerDropItemEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, drop: cn.nukkit.item.Item) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerEatFoodEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerEatFoodEvent.d.ts new file mode 100644 index 00000000..58c16144 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerEatFoodEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerEatFoodEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, food: cn.nukkit.item.food.Food) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFood(): cn.nukkit.item.food.Food; + // @ts-ignore + public setFood(food: cn.nukkit.item.food.Food): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerEvent.d.ts new file mode 100644 index 00000000..4652440c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + abstract class PlayerEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor() + // @ts-ignore + protected player: cn.nukkit.Player; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerFoodLevelChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerFoodLevelChangeEvent.d.ts new file mode 100644 index 00000000..d43baf76 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerFoodLevelChangeEvent.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerFoodLevelChangeEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, foodLevel: number, foodSaturationLevel: number) + // @ts-ignore + protected foodLevel: number; + // @ts-ignore + protected foodSaturationLevel: number; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFoodLevel(): number; + // @ts-ignore + public setFoodLevel(foodLevel: number): void; + // @ts-ignore + public getFoodSaturationLevel(): number; + // @ts-ignore + public setFoodSaturationLevel(foodSaturationLevel: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerFormRespondedEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerFormRespondedEvent.d.ts new file mode 100644 index 00000000..c170e3c7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerFormRespondedEvent.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerFormRespondedEvent extends cn.nukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: cn.nukkit.Player, formID: number, window: cn.nukkit.form.window.FormWindow) + // @ts-ignore + protected formID: number; + // @ts-ignore + protected window: cn.nukkit.form.window.FormWindow; + // @ts-ignore + protected closed: boolean; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFormID(): number; + // @ts-ignore + public getWindow(): cn.nukkit.form.window.FormWindow; + /** + * Can be null if player closed the window instead of submitting it + */ + // @ts-ignore + public getResponse(): cn.nukkit.form.response.FormResponse; + /** + * Defines if player closed the window or submitted it + */ + // @ts-ignore + public wasClosed(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerGameModeChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerGameModeChangeEvent.d.ts new file mode 100644 index 00000000..8ed93e22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerGameModeChangeEvent.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerGameModeChangeEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, newGameMode: number, newAdventureSettings: cn.nukkit.AdventureSettings) + // @ts-ignore + protected gamemode: number; + // @ts-ignore + protected newAdventureSettings: cn.nukkit.AdventureSettings; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getNewGamemode(): number; + // @ts-ignore + public getNewAdventureSettings(): cn.nukkit.AdventureSettings; + // @ts-ignore + public setNewAdventureSettings(newAdventureSettings: cn.nukkit.AdventureSettings): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerGlassBottleFillEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerGlassBottleFillEvent.d.ts new file mode 100644 index 00000000..5d3ae9d0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerGlassBottleFillEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerGlassBottleFillEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, target: cn.nukkit.block.Block, item: cn.nukkit.item.Item) + // @ts-ignore + protected item: cn.nukkit.item.Item; + // @ts-ignore + protected target: cn.nukkit.block.Block; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlock(): cn.nukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEntityEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEntityEvent.d.ts new file mode 100644 index 00000000..a9b59353 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEntityEvent.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerInteractEntityEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, entity: cn.nukkit.entity.Entity, item: cn.nukkit.item.Item, clickedPos: cn.nukkit.math.Vector3) + // @ts-ignore + protected entity: cn.nukkit.entity.Entity; + // @ts-ignore + protected item: cn.nukkit.item.Item; + // @ts-ignore + protected clickedPos: cn.nukkit.math.Vector3; + // @ts-ignore + public getEntity(): cn.nukkit.entity.Entity; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public getClickedPos(): cn.nukkit.math.Vector3; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEvent.Action.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEvent.Action.d.ts new file mode 100644 index 00000000..3fb421e0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEvent.Action.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + namespace PlayerInteractEvent { + // @ts-ignore + class Action extends java.lang.Enum { + // @ts-ignore + public static LEFT_CLICK_BLOCK: cn.nukkit.event.player.PlayerInteractEvent.Action; + // @ts-ignore + public static RIGHT_CLICK_BLOCK: cn.nukkit.event.player.PlayerInteractEvent.Action; + // @ts-ignore + public static LEFT_CLICK_AIR: cn.nukkit.event.player.PlayerInteractEvent.Action; + // @ts-ignore + public static RIGHT_CLICK_AIR: cn.nukkit.event.player.PlayerInteractEvent.Action; + // @ts-ignore + public static PHYSICAL: cn.nukkit.event.player.PlayerInteractEvent.Action; + // @ts-ignore + public static values(): cn.nukkit.event.player.PlayerInteractEvent.Action[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.player.PlayerInteractEvent.Action; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEvent.d.ts new file mode 100644 index 00000000..3445a31a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInteractEvent.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerInteractEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, item: cn.nukkit.item.Item, block: cn.nukkit.math.Vector3, face: cn.nukkit.math.BlockFace) + // @ts-ignore + constructor(player: cn.nukkit.Player, item: cn.nukkit.item.Item, block: cn.nukkit.math.Vector3, face: cn.nukkit.math.BlockFace, action: cn.nukkit.event.player.PlayerInteractEvent.Action) + // @ts-ignore + protected blockTouched: cn.nukkit.block.Block; + // @ts-ignore + protected touchVector: cn.nukkit.math.Vector3; + // @ts-ignore + protected blockFace: cn.nukkit.math.BlockFace; + // @ts-ignore + protected item: cn.nukkit.item.Item; + // @ts-ignore + protected action: cn.nukkit.event.player.PlayerInteractEvent.Action; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getAction(): cn.nukkit.event.player.PlayerInteractEvent.Action; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public getBlock(): cn.nukkit.block.Block; + // @ts-ignore + public getTouchVector(): cn.nukkit.math.Vector3; + // @ts-ignore + public getFace(): cn.nukkit.math.BlockFace; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInvalidMoveEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInvalidMoveEvent.d.ts new file mode 100644 index 00000000..d84d73f0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerInvalidMoveEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerInvalidMoveEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, revert: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public isRevert(): boolean; + // @ts-ignore + public setRevert(revert: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerItemConsumeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerItemConsumeEvent.d.ts new file mode 100644 index 00000000..6180bce5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerItemConsumeEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerItemConsumeEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, item: cn.nukkit.item.Item) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerItemHeldEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerItemHeldEvent.d.ts new file mode 100644 index 00000000..d157c976 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerItemHeldEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerItemHeldEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, item: cn.nukkit.item.Item, hotbarSlot: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getSlot(): number; + // @ts-ignore + public getInventorySlot(): number; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerJoinEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerJoinEvent.d.ts new file mode 100644 index 00000000..274055a7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerJoinEvent.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerJoinEvent extends cn.nukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: cn.nukkit.Player, joinMessage: cn.nukkit.lang.TextContainer) + // @ts-ignore + constructor(player: cn.nukkit.Player, joinMessage: string) + // @ts-ignore + protected joinMessage: cn.nukkit.lang.TextContainer; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getJoinMessage(): cn.nukkit.lang.TextContainer; + // @ts-ignore + public setJoinMessage(joinMessage: cn.nukkit.lang.TextContainer): void; + // @ts-ignore + public setJoinMessage(joinMessage: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerKickEvent.Reason.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerKickEvent.Reason.d.ts new file mode 100644 index 00000000..62226b5c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerKickEvent.Reason.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + namespace PlayerKickEvent { + // @ts-ignore + class Reason extends java.lang.Enum { + // @ts-ignore + public static NEW_CONNECTION: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static KICKED_BY_ADMIN: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static NOT_WHITELISTED: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static IP_BANNED: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static NAME_BANNED: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static INVALID_PVE: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static LOGIN_TIMEOUT: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static SERVER_FULL: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static FLYING_DISABLED: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static UNKNOWN: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public static values(): cn.nukkit.event.player.PlayerKickEvent.Reason[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerKickEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerKickEvent.d.ts new file mode 100644 index 00000000..38a3c4d7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerKickEvent.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerKickEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, reason: string, quitMessage: string) + // @ts-ignore + constructor(player: cn.nukkit.Player, reason: string, quitMessage: cn.nukkit.lang.TextContainer) + // @ts-ignore + constructor(player: cn.nukkit.Player, reason: cn.nukkit.event.player.PlayerKickEvent.Reason, quitMessage: cn.nukkit.lang.TextContainer) + // @ts-ignore + constructor(player: cn.nukkit.Player, reason: cn.nukkit.event.player.PlayerKickEvent.Reason, quitMessage: string) + // @ts-ignore + constructor(player: cn.nukkit.Player, reason: cn.nukkit.event.player.PlayerKickEvent.Reason, reasonString: string, quitMessage: cn.nukkit.lang.TextContainer) + // @ts-ignore + protected quitMessage: cn.nukkit.lang.TextContainer; + // @ts-ignore + protected reason: cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + protected reasonString: string; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getReason(): string; + // @ts-ignore + public getReasonEnum(): cn.nukkit.event.player.PlayerKickEvent.Reason; + // @ts-ignore + public getQuitMessage(): cn.nukkit.lang.TextContainer; + // @ts-ignore + public setQuitMessage(quitMessage: cn.nukkit.lang.TextContainer): void; + // @ts-ignore + public setQuitMessage(joinMessage: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerLoginEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerLoginEvent.d.ts new file mode 100644 index 00000000..d3348eb2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerLoginEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerLoginEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, kickMessage: string) + // @ts-ignore + protected kickMessage: string; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getKickMessage(): string; + // @ts-ignore + public setKickMessage(kickMessage: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMapInfoRequestEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMapInfoRequestEvent.d.ts new file mode 100644 index 00000000..a71effe4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMapInfoRequestEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerMapInfoRequestEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(p: cn.nukkit.Player, item: cn.nukkit.item.Item) + // @ts-ignore + public getMap(): cn.nukkit.item.Item; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMessageEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMessageEvent.d.ts new file mode 100644 index 00000000..8f98c604 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMessageEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + abstract class PlayerMessageEvent extends cn.nukkit.event.player.PlayerEvent { + // @ts-ignore + constructor() + // @ts-ignore + protected message: string; + // @ts-ignore + public getMessage(): string; + // @ts-ignore + public setMessage(message: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMouseOverEntityEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMouseOverEntityEvent.d.ts new file mode 100644 index 00000000..2ae62409 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMouseOverEntityEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerMouseOverEntityEvent extends cn.nukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: cn.nukkit.Player, entity: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMoveEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMoveEvent.d.ts new file mode 100644 index 00000000..f4e20d7c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerMoveEvent.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerMoveEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, from: cn.nukkit.level.Location, to: cn.nukkit.level.Location) + // @ts-ignore + constructor(player: cn.nukkit.Player, from: cn.nukkit.level.Location, to: cn.nukkit.level.Location, resetBlocks: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFrom(): cn.nukkit.level.Location; + // @ts-ignore + public setFrom(from: cn.nukkit.level.Location): void; + // @ts-ignore + public getTo(): cn.nukkit.level.Location; + // @ts-ignore + public setTo(to: cn.nukkit.level.Location): void; + // @ts-ignore + public isResetBlocksAround(): boolean; + // @ts-ignore + public setResetBlocksAround(value: boolean): void; + // @ts-ignore + public setCancelled(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerPreLoginEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerPreLoginEvent.d.ts new file mode 100644 index 00000000..28f1808e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerPreLoginEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerPreLoginEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, kickMessage: string) + // @ts-ignore + protected kickMessage: string; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public setKickMessage(kickMessage: string): void; + // @ts-ignore + public getKickMessage(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerQuitEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerQuitEvent.d.ts new file mode 100644 index 00000000..c76e0cdf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerQuitEvent.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerQuitEvent extends cn.nukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: cn.nukkit.Player, quitMessage: cn.nukkit.lang.TextContainer, reason: string) + // @ts-ignore + constructor(player: cn.nukkit.Player, quitMessage: cn.nukkit.lang.TextContainer) + // @ts-ignore + constructor(player: cn.nukkit.Player, quitMessage: string, reason: string) + // @ts-ignore + constructor(player: cn.nukkit.Player, quitMessage: string) + // @ts-ignore + constructor(player: cn.nukkit.Player, quitMessage: string, autoSave: boolean, reason: string) + // @ts-ignore + constructor(player: cn.nukkit.Player, quitMessage: string, autoSave: boolean) + // @ts-ignore + constructor(player: cn.nukkit.Player, quitMessage: cn.nukkit.lang.TextContainer, autoSave: boolean) + // @ts-ignore + constructor(player: cn.nukkit.Player, quitMessage: cn.nukkit.lang.TextContainer, autoSave: boolean, reason: string) + // @ts-ignore + protected quitMessage: cn.nukkit.lang.TextContainer; + // @ts-ignore + protected autoSave: boolean; + // @ts-ignore + protected reason: string; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getQuitMessage(): cn.nukkit.lang.TextContainer; + // @ts-ignore + public setQuitMessage(quitMessage: cn.nukkit.lang.TextContainer): void; + // @ts-ignore + public setQuitMessage(quitMessage: string): void; + // @ts-ignore + public getAutoSave(): boolean; + // @ts-ignore + public setAutoSave(): void; + // @ts-ignore + public setAutoSave(autoSave: boolean): void; + // @ts-ignore + public getReason(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerRespawnEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerRespawnEvent.d.ts new file mode 100644 index 00000000..02f74138 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerRespawnEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerRespawnEvent extends cn.nukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: cn.nukkit.Player, position: cn.nukkit.level.Position) + // @ts-ignore + constructor(player: cn.nukkit.Player, position: cn.nukkit.level.Position, firstSpawn: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getRespawnPosition(): cn.nukkit.level.Position; + // @ts-ignore + public setRespawnPosition(position: cn.nukkit.level.Position): void; + // @ts-ignore + public isFirstSpawn(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerServerSettingsRequestEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerServerSettingsRequestEvent.d.ts new file mode 100644 index 00000000..76fa5a74 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerServerSettingsRequestEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerServerSettingsRequestEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, settings: java.util.Map) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getSettings(): java.util.Map; + // @ts-ignore + public setSettings(settings: java.util.Map): void; + // @ts-ignore + public setSettings(id: number, window: cn.nukkit.form.window.FormWindow): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerSettingsRespondedEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerSettingsRespondedEvent.d.ts new file mode 100644 index 00000000..79ff59ee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerSettingsRespondedEvent.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerSettingsRespondedEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, formID: number, window: cn.nukkit.form.window.FormWindow) + // @ts-ignore + protected formID: number; + // @ts-ignore + protected window: cn.nukkit.form.window.FormWindow; + // @ts-ignore + protected closed: boolean; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFormID(): number; + // @ts-ignore + public getWindow(): cn.nukkit.form.window.FormWindow; + /** + * Can be null if player closed the window instead of submitting it + */ + // @ts-ignore + public getResponse(): cn.nukkit.form.response.FormResponse; + /** + * Defines if player closed the window or submitted it + */ + // @ts-ignore + public wasClosed(): boolean; + // @ts-ignore + public setCancelled(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause.d.ts new file mode 100644 index 00000000..6eea24b9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + namespace PlayerTeleportEvent { + // @ts-ignore + class TeleportCause extends java.lang.Enum { + // @ts-ignore + public static COMMAND: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static PLUGIN: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static NETHER_PORTAL: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static ENDER_PEARL: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static CHORUS_FRUIT: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static UNKNOWN: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static values(): cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerTeleportEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerTeleportEvent.d.ts new file mode 100644 index 00000000..245e6bf2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerTeleportEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerTeleportEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, from: cn.nukkit.level.Location, to: cn.nukkit.level.Location, cause: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause) + // @ts-ignore + constructor(player: cn.nukkit.Player, from: cn.nukkit.math.Vector3, to: cn.nukkit.math.Vector3, cause: cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFrom(): cn.nukkit.level.Location; + // @ts-ignore + public getTo(): cn.nukkit.level.Location; + // @ts-ignore + public getCause(): cn.nukkit.event.player.PlayerTeleportEvent.TeleportCause; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleFlightEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleFlightEvent.d.ts new file mode 100644 index 00000000..eb9bfd3b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleFlightEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerToggleFlightEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, isFlying: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public isFlying(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleGlideEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleGlideEvent.d.ts new file mode 100644 index 00000000..e0a8b211 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleGlideEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerToggleGlideEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, isSneaking: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public isGliding(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSneakEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSneakEvent.d.ts new file mode 100644 index 00000000..2351f70d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSneakEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerToggleSneakEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, isSneaking: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public isSneaking(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSprintEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSprintEvent.d.ts new file mode 100644 index 00000000..ee13396b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSprintEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerToggleSprintEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, isSprinting: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public isSprinting(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSwimEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSwimEvent.d.ts new file mode 100644 index 00000000..b95b9ca0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.player.PlayerToggleSwimEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerToggleSwimEvent extends cn.nukkit.event.player.PlayerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, isSwimming: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public isSwimming(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginDisableEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginDisableEvent.d.ts new file mode 100644 index 00000000..363b7755 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginDisableEvent.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace plugin { + // @ts-ignore + class PluginDisableEvent extends cn.nukkit.event.plugin.PluginEvent { + // @ts-ignore + constructor(plugin: cn.nukkit.plugin.Plugin) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginEnableEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginEnableEvent.d.ts new file mode 100644 index 00000000..2b757801 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginEnableEvent.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace plugin { + // @ts-ignore + class PluginEnableEvent extends cn.nukkit.event.plugin.PluginEvent { + // @ts-ignore + constructor(plugin: cn.nukkit.plugin.Plugin) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginEvent.d.ts new file mode 100644 index 00000000..b87fea46 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.plugin.PluginEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace plugin { + // @ts-ignore + class PluginEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor(plugin: cn.nukkit.plugin.Plugin) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPlugin(): cn.nukkit.plugin.Plugin; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionApplyEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionApplyEvent.d.ts new file mode 100644 index 00000000..adcc42ae --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionApplyEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace potion { + // @ts-ignore + class PotionApplyEvent extends cn.nukkit.event.potion.PotionEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(potion: cn.nukkit.potion.Potion, applyEffect: cn.nukkit.potion.Effect, entity: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.entity.Entity; + // @ts-ignore + public getApplyEffect(): cn.nukkit.potion.Effect; + // @ts-ignore + public setApplyEffect(applyEffect: cn.nukkit.potion.Effect): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionCollideEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionCollideEvent.d.ts new file mode 100644 index 00000000..c4b49218 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionCollideEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace potion { + // @ts-ignore + class PotionCollideEvent extends cn.nukkit.event.potion.PotionEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(potion: cn.nukkit.potion.Potion, thrownPotion: cn.nukkit.entity.item.EntityPotion) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getThrownPotion(): cn.nukkit.entity.item.EntityPotion; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionEvent.d.ts new file mode 100644 index 00000000..87fa727d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.potion.PotionEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace potion { + // @ts-ignore + abstract class PotionEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor(potion: cn.nukkit.potion.Potion) + // @ts-ignore + public getPotion(): cn.nukkit.potion.Potion; + // @ts-ignore + public setPotion(potion: cn.nukkit.potion.Potion): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.redstone.RedstoneUpdateEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.redstone.RedstoneUpdateEvent.d.ts new file mode 100644 index 00000000..3f0d2469 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.redstone.RedstoneUpdateEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace redstone { + // @ts-ignore + class RedstoneUpdateEvent extends cn.nukkit.event.block.BlockUpdateEvent { + // @ts-ignore + constructor(source: cn.nukkit.block.Block) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.server.BatchPacketsEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.BatchPacketsEvent.d.ts new file mode 100644 index 00000000..7ef0dc25 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.BatchPacketsEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace server { + // @ts-ignore + class BatchPacketsEvent extends cn.nukkit.event.server.ServerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(players: cn.nukkit.Player, packets: cn.nukkit.network.protocol.DataPacket, forceSync: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPlayers(): cn.nukkit.Player[]; + // @ts-ignore + public getPackets(): cn.nukkit.network.protocol.DataPacket[]; + // @ts-ignore + public isForceSync(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.server.DataPacketReceiveEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.DataPacketReceiveEvent.d.ts new file mode 100644 index 00000000..b00d863a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.DataPacketReceiveEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace server { + // @ts-ignore + class DataPacketReceiveEvent extends cn.nukkit.event.server.ServerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, packet: cn.nukkit.network.protocol.DataPacket) + // @ts-ignore + public getPacket(): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.server.DataPacketSendEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.DataPacketSendEvent.d.ts new file mode 100644 index 00000000..ab458474 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.DataPacketSendEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace server { + // @ts-ignore + class DataPacketSendEvent extends cn.nukkit.event.server.ServerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(player: cn.nukkit.Player, packet: cn.nukkit.network.protocol.DataPacket) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public getPacket(): cn.nukkit.network.protocol.DataPacket; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.server.PlayerDataSerializeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.PlayerDataSerializeEvent.d.ts new file mode 100644 index 00000000..aba0468e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.PlayerDataSerializeEvent.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace server { + // @ts-ignore + class PlayerDataSerializeEvent extends cn.nukkit.event.server.ServerEvent { + // @ts-ignore + constructor(name: string, serializer: cn.nukkit.utils.PlayerDataSerializer) + // @ts-ignore + public getName(): java.util.Optional; + // @ts-ignore + public getUuid(): java.util.Optional; + // @ts-ignore + public getSerializer(): cn.nukkit.utils.PlayerDataSerializer; + // @ts-ignore + public setSerializer(serializer: cn.nukkit.utils.PlayerDataSerializer): void; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.server.QueryRegenerateEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.QueryRegenerateEvent.d.ts new file mode 100644 index 00000000..1fafd468 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.QueryRegenerateEvent.d.ts @@ -0,0 +1,57 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace server { + // @ts-ignore + class QueryRegenerateEvent extends cn.nukkit.event.server.ServerEvent { + // @ts-ignore + constructor(server: cn.nukkit.Server) + // @ts-ignore + constructor(server: cn.nukkit.Server, timeout: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getTimeout(): number; + // @ts-ignore + public setTimeout(timeout: number): void; + // @ts-ignore + public getServerName(): string; + // @ts-ignore + public setServerName(serverName: string): void; + // @ts-ignore + public canListPlugins(): boolean; + // @ts-ignore + public setListPlugins(listPlugins: boolean): void; + // @ts-ignore + public getPlugins(): cn.nukkit.plugin.Plugin[]; + // @ts-ignore + public setPlugins(plugins: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public getPlayerList(): cn.nukkit.Player[]; + // @ts-ignore + public setPlayerList(players: cn.nukkit.Player): void; + // @ts-ignore + public getPlayerCount(): number; + // @ts-ignore + public setPlayerCount(count: number): void; + // @ts-ignore + public getMaxPlayerCount(): number; + // @ts-ignore + public setMaxPlayerCount(count: number): void; + // @ts-ignore + public getWorld(): string; + // @ts-ignore + public setWorld(world: string): void; + // @ts-ignore + public getExtraData(): java.util.Map; + // @ts-ignore + public setExtraData(extraData: java.util.Map): void; + // @ts-ignore + public getLongQuery(buffer: number): number[]; + // @ts-ignore + public getShortQuery(buffer: number): number[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.server.RemoteServerCommandEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.RemoteServerCommandEvent.d.ts new file mode 100644 index 00000000..ab0d5283 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.RemoteServerCommandEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace server { + // @ts-ignore + class RemoteServerCommandEvent extends cn.nukkit.event.server.ServerCommandEvent { + // @ts-ignore + constructor(sender: cn.nukkit.command.CommandSender, command: string) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.server.ServerCommandEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.ServerCommandEvent.d.ts new file mode 100644 index 00000000..fd235f68 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.ServerCommandEvent.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace server { + // @ts-ignore + class ServerCommandEvent extends cn.nukkit.event.server.ServerEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(sender: cn.nukkit.command.CommandSender, command: string) + // @ts-ignore + protected command: string; + // @ts-ignore + protected sender: cn.nukkit.command.CommandSender; + // @ts-ignore + public getSender(): cn.nukkit.command.CommandSender; + // @ts-ignore + public getCommand(): string; + // @ts-ignore + public setCommand(command: string): void; + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.server.ServerEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.ServerEvent.d.ts new file mode 100644 index 00000000..3d8a34ba --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.server.ServerEvent.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace server { + // @ts-ignore + abstract class ServerEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor() + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.EntityEnterVehicleEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.EntityEnterVehicleEvent.d.ts new file mode 100644 index 00000000..547c24bc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.EntityEnterVehicleEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class EntityEnterVehicleEvent extends cn.nukkit.event.vehicle.VehicleEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(riding: cn.nukkit.entity.Entity, vehicle: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.entity.Entity; + // @ts-ignore + public isPlayer(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.EntityExitVehicleEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.EntityExitVehicleEvent.d.ts new file mode 100644 index 00000000..3c58a799 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.EntityExitVehicleEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class EntityExitVehicleEvent extends cn.nukkit.event.vehicle.VehicleEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(riding: cn.nukkit.entity.Entity, vehicle: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getEntity(): cn.nukkit.entity.Entity; + // @ts-ignore + public isPlayer(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleCreateEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleCreateEvent.d.ts new file mode 100644 index 00000000..cd2f9fdf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleCreateEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleCreateEvent extends cn.nukkit.event.vehicle.VehicleEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(vehicle: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleDamageEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleDamageEvent.d.ts new file mode 100644 index 00000000..7d5772da --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleDamageEvent.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleDamageEvent extends cn.nukkit.event.vehicle.VehicleEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(vehicle: cn.nukkit.entity.Entity, attacker: cn.nukkit.entity.Entity, damage: number) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getAttacker(): cn.nukkit.entity.Entity; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(damage: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleDestroyEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleDestroyEvent.d.ts new file mode 100644 index 00000000..15ff6f12 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleDestroyEvent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleDestroyEvent extends cn.nukkit.event.vehicle.VehicleEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(vehicle: cn.nukkit.entity.Entity, attacker: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getAttacker(): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleEvent.d.ts new file mode 100644 index 00000000..d87a7957 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace vehicle { + // @ts-ignore + abstract class VehicleEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor(vehicle: cn.nukkit.entity.Entity) + // @ts-ignore + public getVehicle(): cn.nukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleMoveEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleMoveEvent.d.ts new file mode 100644 index 00000000..1fdc6000 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleMoveEvent.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleMoveEvent extends cn.nukkit.event.vehicle.VehicleEvent { + // @ts-ignore + constructor(vehicle: cn.nukkit.entity.Entity, from: cn.nukkit.level.Location, to: cn.nukkit.level.Location) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + // @ts-ignore + public getFrom(): cn.nukkit.level.Location; + // @ts-ignore + public getTo(): cn.nukkit.level.Location; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleUpdateEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleUpdateEvent.d.ts new file mode 100644 index 00000000..c207340d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.vehicle.VehicleUpdateEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleUpdateEvent extends cn.nukkit.event.vehicle.VehicleEvent { + // @ts-ignore + constructor(vehicle: cn.nukkit.entity.Entity) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.LightningStrikeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.LightningStrikeEvent.d.ts new file mode 100644 index 00000000..df751305 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.LightningStrikeEvent.d.ts @@ -0,0 +1,20 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace weather { + // @ts-ignore + class LightningStrikeEvent extends cn.nukkit.event.weather.WeatherEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, bolt: cn.nukkit.entity.weather.EntityLightningStrike) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + /** + * Gets the bolt which is striking the earth. + */ + // @ts-ignore + public getLightning(): cn.nukkit.entity.weather.EntityLightningStrike; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.ThunderChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.ThunderChangeEvent.d.ts new file mode 100644 index 00000000..a9fd181b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.ThunderChangeEvent.d.ts @@ -0,0 +1,20 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace weather { + // @ts-ignore + class ThunderChangeEvent extends cn.nukkit.event.weather.WeatherEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, to: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + /** + * Gets the state of thunder that the world is being set to + */ + // @ts-ignore + public toThunderState(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.WeatherChangeEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.WeatherChangeEvent.d.ts new file mode 100644 index 00000000..935d7e1d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.WeatherChangeEvent.d.ts @@ -0,0 +1,20 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace weather { + // @ts-ignore + class WeatherChangeEvent extends cn.nukkit.event.weather.WeatherEvent implements cn.nukkit.event.Cancellable { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, to: boolean) + // @ts-ignore + public static getHandlers(): cn.nukkit.event.HandlerList; + /** + * Gets the state of weather that the world is being set to + */ + // @ts-ignore + public toWeatherState(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.WeatherEvent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.WeatherEvent.d.ts new file mode 100644 index 00000000..01e6639d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.event.weather.WeatherEvent.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace event { + namespace weather { + // @ts-ignore + abstract class WeatherEvent extends cn.nukkit.event.Event { + // @ts-ignore + constructor(level: cn.nukkit.level.Level) + // @ts-ignore + public getLevel(): cn.nukkit.level.Level; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.element.Element.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.Element.d.ts new file mode 100644 index 00000000..3c8e11b8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.Element.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace element { + // @ts-ignore + abstract class Element extends java.lang.Object { + // @ts-ignore + constructor() + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementButton.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementButton.d.ts new file mode 100644 index 00000000..4b6e54fe --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementButton.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace element { + // @ts-ignore + class ElementButton extends java.lang.Object { + // @ts-ignore + constructor(text: string) + // @ts-ignore + constructor(text: string, image: cn.nukkit.form.element.ElementButtonImageData) + // @ts-ignore + public getText(): string; + // @ts-ignore + public setText(text: string): void; + // @ts-ignore + public getImage(): cn.nukkit.form.element.ElementButtonImageData; + // @ts-ignore + public addImage(image: cn.nukkit.form.element.ElementButtonImageData): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementButtonImageData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementButtonImageData.d.ts new file mode 100644 index 00000000..5b5bce37 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementButtonImageData.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace element { + // @ts-ignore + class ElementButtonImageData extends java.lang.Object { + // @ts-ignore + constructor(type: string, data: string) + // @ts-ignore + public static IMAGE_DATA_TYPE_PATH: string; + // @ts-ignore + public static IMAGE_DATA_TYPE_URL: string; + // @ts-ignore + public getType(): string; + // @ts-ignore + public getData(): string; + // @ts-ignore + public setType(type: string): void; + // @ts-ignore + public setData(data: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementDropdown.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementDropdown.d.ts new file mode 100644 index 00000000..c8c3e94b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementDropdown.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace element { + // @ts-ignore + class ElementDropdown extends cn.nukkit.form.element.Element { + // @ts-ignore + constructor(text: string) + // @ts-ignore + constructor(text: string, options: java.util.List) + // @ts-ignore + constructor(text: string, options: java.util.List, defaultOption: number) + // @ts-ignore + public getDefaultOptionIndex(): number; + // @ts-ignore + public setDefaultOptionIndex(index: number): void; + // @ts-ignore + public getOptions(): java.util.List; + // @ts-ignore + public getText(): string; + // @ts-ignore + public setText(text: string): void; + // @ts-ignore + public addOption(option: string): void; + // @ts-ignore + public addOption(option: string, isDefault: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementInput.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementInput.d.ts new file mode 100644 index 00000000..d2dfdfcc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementInput.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace element { + // @ts-ignore + class ElementInput extends cn.nukkit.form.element.Element { + // @ts-ignore + constructor(text: string) + // @ts-ignore + constructor(text: string, placeholder: string) + // @ts-ignore + constructor(text: string, placeholder: string, defaultText: string) + // @ts-ignore + public getText(): string; + // @ts-ignore + public setText(text: string): void; + // @ts-ignore + public getPlaceHolder(): string; + // @ts-ignore + public setPlaceHolder(placeholder: string): void; + // @ts-ignore + public getDefaultText(): string; + // @ts-ignore + public setDefaultText(defaultText: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementLabel.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementLabel.d.ts new file mode 100644 index 00000000..9d65c1ee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementLabel.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace element { + // @ts-ignore + class ElementLabel extends cn.nukkit.form.element.Element { + // @ts-ignore + constructor(text: string) + // @ts-ignore + public getText(): string; + // @ts-ignore + public setText(text: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementSlider.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementSlider.d.ts new file mode 100644 index 00000000..3155f791 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementSlider.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace element { + // @ts-ignore + class ElementSlider extends cn.nukkit.form.element.Element { + // @ts-ignore + constructor(text: string, min: number, max: number) + // @ts-ignore + constructor(text: string, min: number, max: number, step: number) + // @ts-ignore + constructor(text: string, min: number, max: number, step: number, defaultValue: number) + // @ts-ignore + public getText(): string; + // @ts-ignore + public setText(text: string): void; + // @ts-ignore + public getMin(): number; + // @ts-ignore + public setMin(min: number): void; + // @ts-ignore + public getMax(): number; + // @ts-ignore + public setMax(max: number): void; + // @ts-ignore + public getStep(): number; + // @ts-ignore + public setStep(step: number): void; + // @ts-ignore + public getDefaultValue(): number; + // @ts-ignore + public setDefaultValue(defaultValue: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementStepSlider.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementStepSlider.d.ts new file mode 100644 index 00000000..fe81b71e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementStepSlider.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace element { + // @ts-ignore + class ElementStepSlider extends cn.nukkit.form.element.Element { + // @ts-ignore + constructor(text: string) + // @ts-ignore + constructor(text: string, steps: java.util.List) + // @ts-ignore + constructor(text: string, steps: java.util.List, defaultStep: number) + // @ts-ignore + public getDefaultStepIndex(): number; + // @ts-ignore + public setDefaultOptionIndex(index: number): void; + // @ts-ignore + public getText(): string; + // @ts-ignore + public setText(text: string): void; + // @ts-ignore + public getSteps(): java.util.List; + // @ts-ignore + public addStep(step: string): void; + // @ts-ignore + public addStep(step: string, isDefault: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementToggle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementToggle.d.ts new file mode 100644 index 00000000..fc33e4a6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.element.ElementToggle.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace element { + // @ts-ignore + class ElementToggle extends cn.nukkit.form.element.Element { + // @ts-ignore + constructor(text: string) + // @ts-ignore + constructor(text: string, defaultValue: boolean) + // @ts-ignore + public getText(): string; + // @ts-ignore + public setText(text: string): void; + // @ts-ignore + public isDefaultValue(): boolean; + // @ts-ignore + public setDefaultValue(defaultValue: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponse.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponse.d.ts new file mode 100644 index 00000000..32ba93de --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponse.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace response { + // @ts-ignore + abstract class FormResponse extends java.lang.Object { + // @ts-ignore + constructor() + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseCustom.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseCustom.d.ts new file mode 100644 index 00000000..8ac12635 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseCustom.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace response { + // @ts-ignore + class FormResponseCustom extends cn.nukkit.form.response.FormResponse { + // @ts-ignore + constructor(responses: java.util.HashMap, dropdownResponses: java.util.HashMap, inputResponses: java.util.HashMap, sliderResponses: java.util.HashMap, stepSliderResponses: java.util.HashMap, toggleResponses: java.util.HashMap, labelResponses: java.util.HashMap) + // @ts-ignore + public getResponses(): java.util.HashMap; + // @ts-ignore + public getResponse(id: number): java.lang.Object; + // @ts-ignore + public getDropdownResponse(id: number): cn.nukkit.form.response.FormResponseData; + // @ts-ignore + public getInputResponse(id: number): string; + // @ts-ignore + public getSliderResponse(id: number): number; + // @ts-ignore + public getStepSliderResponse(id: number): cn.nukkit.form.response.FormResponseData; + // @ts-ignore + public getToggleResponse(id: number): boolean; + // @ts-ignore + public getLabelResponse(id: number): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseData.d.ts new file mode 100644 index 00000000..fb57d6e2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseData.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace response { + // @ts-ignore + class FormResponseData extends java.lang.Object { + // @ts-ignore + constructor(id: number, content: string) + // @ts-ignore + public getElementID(): number; + // @ts-ignore + public getElementContent(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseModal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseModal.d.ts new file mode 100644 index 00000000..5f204759 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseModal.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace response { + // @ts-ignore + class FormResponseModal extends cn.nukkit.form.response.FormResponse { + // @ts-ignore + constructor(clickedButtonId: number, clickedButtonText: string) + // @ts-ignore + public getClickedButtonId(): number; + // @ts-ignore + public getClickedButtonText(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseSimple.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseSimple.d.ts new file mode 100644 index 00000000..28dde9d9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.response.FormResponseSimple.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace response { + // @ts-ignore + class FormResponseSimple extends cn.nukkit.form.response.FormResponse { + // @ts-ignore + constructor(clickedButtonId: number, clickedButton: cn.nukkit.form.element.ElementButton) + // @ts-ignore + public getClickedButtonId(): number; + // @ts-ignore + public getClickedButton(): cn.nukkit.form.element.ElementButton; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindow.d.ts new file mode 100644 index 00000000..78229107 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindow.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace window { + // @ts-ignore + abstract class FormWindow extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected closed: boolean; + // @ts-ignore + public getJSONData(): string; + // @ts-ignore + public abstract setResponse(data: string): void; + // @ts-ignore + public abstract getResponse(): cn.nukkit.form.response.FormResponse; + // @ts-ignore + public wasClosed(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowCustom.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowCustom.d.ts new file mode 100644 index 00000000..eb9b9771 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowCustom.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace window { + // @ts-ignore + class FormWindowCustom extends cn.nukkit.form.window.FormWindow { + // @ts-ignore + constructor(title: string) + // @ts-ignore + constructor(title: string, contents: java.util.List) + // @ts-ignore + constructor(title: string, contents: java.util.List, icon: string) + // @ts-ignore + constructor(title: string, contents: java.util.List, icon: cn.nukkit.form.element.ElementButtonImageData) + // @ts-ignore + public getTitle(): string; + // @ts-ignore + public setTitle(title: string): void; + // @ts-ignore + public getElements(): java.util.List; + // @ts-ignore + public addElement(element: cn.nukkit.form.element.Element): void; + // @ts-ignore + public getIcon(): cn.nukkit.form.element.ElementButtonImageData; + // @ts-ignore + public setIcon(icon: string): void; + // @ts-ignore + public setIcon(icon: cn.nukkit.form.element.ElementButtonImageData): void; + // @ts-ignore + public getResponse(): cn.nukkit.form.response.FormResponseCustom; + // @ts-ignore + public setResponse(data: string): void; + /** + * Set Elements from Response + * Used on ServerSettings Form Response. After players set settings, we need to sync these settings to the server. + */ + // @ts-ignore + public setElementsFromResponse(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowModal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowModal.d.ts new file mode 100644 index 00000000..3f5adddc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowModal.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace window { + // @ts-ignore + class FormWindowModal extends cn.nukkit.form.window.FormWindow { + // @ts-ignore + constructor(title: string, content: string, trueButtonText: string, falseButtonText: string) + // @ts-ignore + public getTitle(): string; + // @ts-ignore + public setTitle(title: string): void; + // @ts-ignore + public getContent(): string; + // @ts-ignore + public setContent(content: string): void; + // @ts-ignore + public getButton1(): string; + // @ts-ignore + public setButton1(button1: string): void; + // @ts-ignore + public getButton2(): string; + // @ts-ignore + public setButton2(button2: string): void; + // @ts-ignore + public getResponse(): cn.nukkit.form.response.FormResponseModal; + // @ts-ignore + public setResponse(data: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowSimple.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowSimple.d.ts new file mode 100644 index 00000000..ebc302e5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.form.window.FormWindowSimple.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace form { + namespace window { + // @ts-ignore + class FormWindowSimple extends cn.nukkit.form.window.FormWindow { + // @ts-ignore + constructor(title: string, content: string) + // @ts-ignore + constructor(title: string, content: string, buttons: java.util.List) + // @ts-ignore + public getTitle(): string; + // @ts-ignore + public setTitle(title: string): void; + // @ts-ignore + public getContent(): string; + // @ts-ignore + public setContent(content: string): void; + // @ts-ignore + public getButtons(): java.util.List; + // @ts-ignore + public addButton(button: cn.nukkit.form.element.ElementButton): void; + // @ts-ignore + public getResponse(): cn.nukkit.form.response.FormResponseSimple; + // @ts-ignore + public setResponse(data: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.AnvilInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.AnvilInventory.d.ts new file mode 100644 index 00000000..8c64dc7a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.AnvilInventory.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class AnvilInventory extends cn.nukkit.inventory.FakeBlockUIComponent { + // @ts-ignore + constructor(playerUI: cn.nukkit.inventory.PlayerUIInventory, position: cn.nukkit.level.Position) + // @ts-ignore + public static TARGET: number; + // @ts-ignore + public static SACRIFICE: number; + // @ts-ignore + public static RESULT: number; + // @ts-ignore + public onRename(player: cn.nukkit.Player, resultItem: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BaseInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BaseInventory.d.ts new file mode 100644 index 00000000..d9918cce --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BaseInventory.d.ts @@ -0,0 +1,109 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + abstract class BaseInventory extends java.lang.Object implements cn.nukkit.inventory.Inventory { + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType) + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType, items: java.util.Map) + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType, items: java.util.Map, overrideSize: java.lang.Integer) + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType, items: java.util.Map, overrideSize: java.lang.Integer, overrideTitle: string) + // @ts-ignore + protected type: cn.nukkit.inventory.InventoryType; + // @ts-ignore + protected maxStackSize: number; + // @ts-ignore + protected size: number; + // @ts-ignore + protected name: string; + // @ts-ignore + protected title: string; + // @ts-ignore + public slots: java.util.Map; + // @ts-ignore + protected viewers: java.util.Set; + // @ts-ignore + protected holder: cn.nukkit.inventory.InventoryHolder; + // @ts-ignore + public getSize(): number; + // @ts-ignore + public setSize(size: number): void; + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getTitle(): string; + // @ts-ignore + public getItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public getContents(): java.util.Map; + // @ts-ignore + public setContents(items: java.util.Map): void; + // @ts-ignore + public setItem(index: number, item: cn.nukkit.item.Item, send: boolean): boolean; + // @ts-ignore + public contains(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public all(item: cn.nukkit.item.Item): java.util.Map; + // @ts-ignore + public remove(item: cn.nukkit.item.Item): void; + // @ts-ignore + public first(item: cn.nukkit.item.Item, exact: boolean): number; + // @ts-ignore + public firstEmpty(item: cn.nukkit.item.Item): number; + // @ts-ignore + public decreaseCount(slot: number): void; + // @ts-ignore + public canAddItem(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public addItem(slots: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public removeItem(slots: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + public clear(index: number, send: boolean): boolean; + // @ts-ignore + public clearAll(): void; + // @ts-ignore + public getViewers(): java.util.Set; + // @ts-ignore + public getHolder(): cn.nukkit.inventory.InventoryHolder; + // @ts-ignore + public setMaxStackSize(maxStackSize: number): void; + // @ts-ignore + public open(who: cn.nukkit.Player): boolean; + // @ts-ignore + public close(who: cn.nukkit.Player): void; + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + // @ts-ignore + public onSlotChange(index: number, before: cn.nukkit.item.Item, send: boolean): void; + // @ts-ignore + public sendContents(player: cn.nukkit.Player): void; + // @ts-ignore + public sendContents(players: cn.nukkit.Player): void; + // @ts-ignore + public isFull(): boolean; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public getFreeSpace(item: cn.nukkit.item.Item): number; + // @ts-ignore + public sendContents(players: java.util.Collection): void; + // @ts-ignore + public sendSlot(index: number, player: cn.nukkit.Player): void; + // @ts-ignore + public sendSlot(index: number, players: cn.nukkit.Player): void; + // @ts-ignore + public sendSlot(index: number, players: java.util.Collection): void; + // @ts-ignore + public getType(): cn.nukkit.inventory.InventoryType; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BeaconInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BeaconInventory.d.ts new file mode 100644 index 00000000..9b2fb34b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BeaconInventory.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class BeaconInventory extends cn.nukkit.inventory.FakeBlockUIComponent { + // @ts-ignore + constructor(playerUI: cn.nukkit.inventory.PlayerUIInventory, position: cn.nukkit.level.Position) + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BigCraftingGrid.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BigCraftingGrid.d.ts new file mode 100644 index 00000000..1960a321 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BigCraftingGrid.d.ts @@ -0,0 +1,9 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class BigCraftingGrid extends cn.nukkit.inventory.CraftingGrid { + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BrewingInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BrewingInventory.d.ts new file mode 100644 index 00000000..1a06637d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BrewingInventory.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class BrewingInventory extends cn.nukkit.inventory.ContainerInventory { + // @ts-ignore + constructor(brewingStand: cn.nukkit.blockentity.BlockEntityBrewingStand) + // @ts-ignore + public getHolder(): cn.nukkit.blockentity.BlockEntityBrewingStand; + // @ts-ignore + public getIngredient(): cn.nukkit.item.Item; + // @ts-ignore + public setIngredient(item: cn.nukkit.item.Item): void; + // @ts-ignore + public setFuel(fuel: cn.nukkit.item.Item): void; + // @ts-ignore + public getFuel(): cn.nukkit.item.Item; + // @ts-ignore + public onSlotChange(index: number, before: cn.nukkit.item.Item, send: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BrewingRecipe.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BrewingRecipe.d.ts new file mode 100644 index 00000000..db9a4d3f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.BrewingRecipe.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class BrewingRecipe extends cn.nukkit.inventory.MixRecipe { + // @ts-ignore + constructor(input: cn.nukkit.item.Item, ingredient: cn.nukkit.item.Item, output: cn.nukkit.item.Item) + // @ts-ignore + public registerToCraftingManager(manager: cn.nukkit.inventory.CraftingManager): void; + // @ts-ignore + public getType(): cn.nukkit.inventory.RecipeType; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ChestInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ChestInventory.d.ts new file mode 100644 index 00000000..5efcf4a6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ChestInventory.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class ChestInventory extends cn.nukkit.inventory.ContainerInventory { + // @ts-ignore + constructor(chest: cn.nukkit.blockentity.BlockEntityChest) + // @ts-ignore + protected doubleInventory: cn.nukkit.inventory.DoubleChestInventory; + // @ts-ignore + public getHolder(): cn.nukkit.blockentity.BlockEntityChest; + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + // @ts-ignore + public setDoubleInventory(doubleInventory: cn.nukkit.inventory.DoubleChestInventory): void; + // @ts-ignore + public getDoubleInventory(): cn.nukkit.inventory.DoubleChestInventory; + // @ts-ignore + public sendSlot(index: number, players: cn.nukkit.Player): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ContainerInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ContainerInventory.d.ts new file mode 100644 index 00000000..3f4553af --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ContainerInventory.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + abstract class ContainerInventory extends cn.nukkit.inventory.BaseInventory { + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType) + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType, items: java.util.Map) + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType, items: java.util.Map, overrideSize: java.lang.Integer) + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType, items: java.util.Map, overrideSize: java.lang.Integer, overrideTitle: string) + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + // @ts-ignore + public static calculateRedstone(inv: cn.nukkit.inventory.Inventory): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ContainerRecipe.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ContainerRecipe.d.ts new file mode 100644 index 00000000..3b56d9c6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ContainerRecipe.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class ContainerRecipe extends cn.nukkit.inventory.MixRecipe { + // @ts-ignore + constructor(input: cn.nukkit.item.Item, ingredient: cn.nukkit.item.Item, output: cn.nukkit.item.Item) + // @ts-ignore + public registerToCraftingManager(manager: cn.nukkit.inventory.CraftingManager): void; + // @ts-ignore + public getType(): cn.nukkit.inventory.RecipeType; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingGrid.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingGrid.d.ts new file mode 100644 index 00000000..af217a62 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingGrid.d.ts @@ -0,0 +1,9 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class CraftingGrid extends cn.nukkit.inventory.PlayerUIComponent { + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingManager.Entry.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingManager.Entry.d.ts new file mode 100644 index 00000000..7e1e38ed --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingManager.Entry.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace CraftingManager { + // @ts-ignore + class Entry extends java.lang.Object { + // @ts-ignore + constructor(resultItemId: number, resultMeta: number, ingredientItemId: number, ingredientMeta: number, recipeShape: string, resultAmount: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingManager.d.ts new file mode 100644 index 00000000..eec0b749 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingManager.d.ts @@ -0,0 +1,53 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class CraftingManager extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public recipes: java.util.Collection; + // @ts-ignore + public static packet: cn.nukkit.network.protocol.BatchPacket; + // @ts-ignore + protected shapedRecipes: java.util.Map; + // @ts-ignore + public furnaceRecipes: java.util.Map; + // @ts-ignore + public brewingRecipes: java.util.Map; + // @ts-ignore + public containerRecipes: java.util.Map; + // @ts-ignore + protected shapelessRecipes: java.util.Map; + // @ts-ignore + public static recipeComparator: java.util.Comparator; + // @ts-ignore + public rebuildPacket(): void; + // @ts-ignore + public getRecipes(): java.util.Collection; + // @ts-ignore + public getFurnaceRecipes(): java.util.Map; + // @ts-ignore + public matchFurnaceRecipe(input: cn.nukkit.item.Item): cn.nukkit.inventory.FurnaceRecipe; + // @ts-ignore + public registerFurnaceRecipe(recipe: cn.nukkit.inventory.FurnaceRecipe): void; + // @ts-ignore + public registerShapedRecipe(recipe: cn.nukkit.inventory.ShapedRecipe): void; + // @ts-ignore + public registerRecipe(recipe: cn.nukkit.inventory.Recipe): void; + // @ts-ignore + public registerShapelessRecipe(recipe: cn.nukkit.inventory.ShapelessRecipe): void; + // @ts-ignore + public registerBrewingRecipe(recipe: cn.nukkit.inventory.BrewingRecipe): void; + // @ts-ignore + public registerContainerRecipe(recipe: cn.nukkit.inventory.ContainerRecipe): void; + // @ts-ignore + public matchBrewingRecipe(input: cn.nukkit.item.Item, potion: cn.nukkit.item.Item): cn.nukkit.inventory.BrewingRecipe; + // @ts-ignore + public matchContainerRecipe(input: cn.nukkit.item.Item, potion: cn.nukkit.item.Item): cn.nukkit.inventory.ContainerRecipe; + // @ts-ignore + public matchRecipe(inputMap: cn.nukkit.item.Item, primaryOutput: cn.nukkit.item.Item, extraOutputMap: cn.nukkit.item.Item): cn.nukkit.inventory.CraftingRecipe; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingRecipe.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingRecipe.d.ts new file mode 100644 index 00000000..fe2dd0e2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CraftingRecipe.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + interface CraftingRecipe extends cn.nukkit.inventory.Recipe { + // @ts-ignore + getRecipeId(): string; + // @ts-ignore + getId(): java.util.UUID; + // @ts-ignore + setId(id: java.util.UUID): void; + // @ts-ignore + requiresCraftingTable(): boolean; + // @ts-ignore + getExtraResults(): java.util.List; + // @ts-ignore + getAllResults(): java.util.List; + // @ts-ignore + getPriority(): number; + /** + * Returns whether the specified list of crafting grid inputs and outputs matches this recipe. Outputs DO NOT + * include the primary result item. + */ + // @ts-ignore + matchItems(input: cn.nukkit.item.Item, output: cn.nukkit.item.Item): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CustomInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CustomInventory.d.ts new file mode 100644 index 00000000..3a5332fc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.CustomInventory.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + abstract class CustomInventory extends cn.nukkit.inventory.ContainerInventory { + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType) + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType, items: java.util.Map) + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType, items: java.util.Map, overrideSize: java.lang.Integer) + // @ts-ignore + constructor(holder: cn.nukkit.inventory.InventoryHolder, type: cn.nukkit.inventory.InventoryType, items: java.util.Map, overrideSize: java.lang.Integer, overrideTitle: string) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.DoubleChestInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.DoubleChestInventory.d.ts new file mode 100644 index 00000000..5f3b0d43 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.DoubleChestInventory.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class DoubleChestInventory extends cn.nukkit.inventory.ContainerInventory implements cn.nukkit.inventory.InventoryHolder { + // @ts-ignore + constructor(left: cn.nukkit.blockentity.BlockEntityChest, right: cn.nukkit.blockentity.BlockEntityChest) + // @ts-ignore + public getInventory(): cn.nukkit.inventory.Inventory; + // @ts-ignore + public getHolder(): cn.nukkit.blockentity.BlockEntityChest; + // @ts-ignore + public getItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public setItem(index: number, item: cn.nukkit.item.Item, send: boolean): boolean; + // @ts-ignore + public clear(index: number): boolean; + // @ts-ignore + public getContents(): java.util.Map; + // @ts-ignore + public setContents(items: java.util.Map): void; + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + // @ts-ignore + public getLeftSide(): cn.nukkit.inventory.ChestInventory; + // @ts-ignore + public getRightSide(): cn.nukkit.inventory.ChestInventory; + // @ts-ignore + public sendSlot(inv: cn.nukkit.inventory.Inventory, index: number, players: cn.nukkit.Player): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.EnchantInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.EnchantInventory.d.ts new file mode 100644 index 00000000..0670a7fe --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.EnchantInventory.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class EnchantInventory extends cn.nukkit.inventory.FakeBlockUIComponent { + // @ts-ignore + constructor(playerUI: cn.nukkit.inventory.PlayerUIInventory, position: cn.nukkit.level.Position) + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FakeBlockMenu.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FakeBlockMenu.d.ts new file mode 100644 index 00000000..afd4f9c7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FakeBlockMenu.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class FakeBlockMenu extends cn.nukkit.level.Position implements cn.nukkit.inventory.InventoryHolder { + // @ts-ignore + constructor(inventory: cn.nukkit.inventory.Inventory, pos: cn.nukkit.level.Position) + // @ts-ignore + public getInventory(): cn.nukkit.inventory.Inventory; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FakeBlockUIComponent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FakeBlockUIComponent.d.ts new file mode 100644 index 00000000..5d8ff34e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FakeBlockUIComponent.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class FakeBlockUIComponent extends cn.nukkit.inventory.PlayerUIComponent { + // @ts-ignore + public getHolder(): cn.nukkit.inventory.FakeBlockMenu; + // @ts-ignore + public open(who: cn.nukkit.Player): boolean; + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.Fuel.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.Fuel.d.ts new file mode 100644 index 00000000..4db10978 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.Fuel.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + abstract class Fuel extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static duration: java.util.Map; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FurnaceInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FurnaceInventory.d.ts new file mode 100644 index 00000000..2b5e82e1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FurnaceInventory.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class FurnaceInventory extends cn.nukkit.inventory.ContainerInventory { + // @ts-ignore + constructor(furnace: cn.nukkit.blockentity.BlockEntityFurnace) + // @ts-ignore + public getHolder(): cn.nukkit.blockentity.BlockEntityFurnace; + // @ts-ignore + public getResult(): cn.nukkit.item.Item; + // @ts-ignore + public getFuel(): cn.nukkit.item.Item; + // @ts-ignore + public getSmelting(): cn.nukkit.item.Item; + // @ts-ignore + public setResult(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public setFuel(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public setSmelting(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public onSlotChange(index: number, before: cn.nukkit.item.Item, send: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FurnaceRecipe.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FurnaceRecipe.d.ts new file mode 100644 index 00000000..caf8cd82 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.FurnaceRecipe.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class FurnaceRecipe extends java.lang.Object implements cn.nukkit.inventory.Recipe { + // @ts-ignore + constructor(result: cn.nukkit.item.Item, ingredient: cn.nukkit.item.Item) + // @ts-ignore + public setInput(item: cn.nukkit.item.Item): void; + // @ts-ignore + public getInput(): cn.nukkit.item.Item; + // @ts-ignore + public getResult(): cn.nukkit.item.Item; + // @ts-ignore + public registerToCraftingManager(manager: cn.nukkit.inventory.CraftingManager): void; + // @ts-ignore + public getType(): cn.nukkit.inventory.RecipeType; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.HopperInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.HopperInventory.d.ts new file mode 100644 index 00000000..b9dbbe28 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.HopperInventory.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class HopperInventory extends cn.nukkit.inventory.ContainerInventory { + // @ts-ignore + constructor(hopper: cn.nukkit.blockentity.BlockEntityHopper) + // @ts-ignore + public getHolder(): cn.nukkit.blockentity.BlockEntityHopper; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.Inventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.Inventory.d.ts new file mode 100644 index 00000000..47c07c00 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.Inventory.d.ts @@ -0,0 +1,89 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + interface Inventory { + // @ts-ignore + MAX_STACK: number; + // @ts-ignore + getSize(): number; + // @ts-ignore + getMaxStackSize(): number; + // @ts-ignore + setMaxStackSize(size: number): void; + // @ts-ignore + getName(): string; + // @ts-ignore + getTitle(): string; + // @ts-ignore + getItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + setItem(index: number, item: cn.nukkit.item.Item): boolean; + // @ts-ignore + setItem(index: number, item: cn.nukkit.item.Item, send: boolean): boolean; + // @ts-ignore + addItem(slots: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + canAddItem(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + removeItem(slots: cn.nukkit.item.Item): cn.nukkit.item.Item[]; + // @ts-ignore + getContents(): java.util.Map; + // @ts-ignore + setContents(items: java.util.Map): void; + // @ts-ignore + sendContents(player: cn.nukkit.Player): void; + // @ts-ignore + sendContents(players: cn.nukkit.Player): void; + // @ts-ignore + sendContents(players: java.util.Collection): void; + // @ts-ignore + sendSlot(index: number, player: cn.nukkit.Player): void; + // @ts-ignore + sendSlot(index: number, players: cn.nukkit.Player): void; + // @ts-ignore + sendSlot(index: number, players: java.util.Collection): void; + // @ts-ignore + contains(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + all(item: cn.nukkit.item.Item): java.util.Map; + // @ts-ignore + first(item: cn.nukkit.item.Item): number; + // @ts-ignore + first(item: cn.nukkit.item.Item, exact: boolean): number; + // @ts-ignore + firstEmpty(item: cn.nukkit.item.Item): number; + // @ts-ignore + decreaseCount(slot: number): void; + // @ts-ignore + remove(item: cn.nukkit.item.Item): void; + // @ts-ignore + clear(index: number): boolean; + // @ts-ignore + clear(index: number, send: boolean): boolean; + // @ts-ignore + clearAll(): void; + // @ts-ignore + isFull(): boolean; + // @ts-ignore + isEmpty(): boolean; + // @ts-ignore + getViewers(): java.util.Set; + // @ts-ignore + getType(): cn.nukkit.inventory.InventoryType; + // @ts-ignore + getHolder(): cn.nukkit.inventory.InventoryHolder; + // @ts-ignore + onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + open(who: cn.nukkit.Player): boolean; + // @ts-ignore + close(who: cn.nukkit.Player): void; + // @ts-ignore + onClose(who: cn.nukkit.Player): void; + // @ts-ignore + onSlotChange(index: number, before: cn.nukkit.item.Item, send: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.InventoryHolder.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.InventoryHolder.d.ts new file mode 100644 index 00000000..30a34c20 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.InventoryHolder.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + interface InventoryHolder { + // @ts-ignore + getInventory(): cn.nukkit.inventory.Inventory; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.InventoryType.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.InventoryType.d.ts new file mode 100644 index 00000000..187d6ce8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.InventoryType.d.ts @@ -0,0 +1,53 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class InventoryType extends java.lang.Enum { + // @ts-ignore + public static CHEST: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static ENDER_CHEST: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static DOUBLE_CHEST: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static PLAYER: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static FURNACE: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static CRAFTING: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static WORKBENCH: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static BREWING_STAND: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static ANVIL: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static ENCHANT_TABLE: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static DISPENSER: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static DROPPER: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static HOPPER: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static UI: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static SHULKER_BOX: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static BEACON: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static OFFHAND: cn.nukkit.inventory.InventoryType; + // @ts-ignore + public static values(): cn.nukkit.inventory.InventoryType[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.inventory.InventoryType; + // @ts-ignore + public getDefaultSize(): number; + // @ts-ignore + public getDefaultTitle(): string; + // @ts-ignore + public getNetworkType(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.MixRecipe.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.MixRecipe.d.ts new file mode 100644 index 00000000..acc27dc9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.MixRecipe.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + abstract class MixRecipe extends java.lang.Object implements cn.nukkit.inventory.Recipe { + // @ts-ignore + constructor(input: cn.nukkit.item.Item, ingredient: cn.nukkit.item.Item, output: cn.nukkit.item.Item) + // @ts-ignore + public getIngredient(): cn.nukkit.item.Item; + // @ts-ignore + public getInput(): cn.nukkit.item.Item; + // @ts-ignore + public getResult(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerCursorInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerCursorInventory.d.ts new file mode 100644 index 00000000..c3346bce --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerCursorInventory.d.ts @@ -0,0 +1,14 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class PlayerCursorInventory extends cn.nukkit.inventory.PlayerUIComponent { + /** + * This override is here for documentation and code completion purposes only. + */ + // @ts-ignore + public getHolder(): cn.nukkit.Player; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerEnderChestInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerEnderChestInventory.d.ts new file mode 100644 index 00000000..bde15157 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerEnderChestInventory.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class PlayerEnderChestInventory extends cn.nukkit.inventory.BaseInventory { + // @ts-ignore + constructor(player: cn.nukkit.entity.EntityHumanType) + // @ts-ignore + public getHolder(): cn.nukkit.entity.EntityHuman; + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerInventory.d.ts new file mode 100644 index 00000000..4289a4f5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerInventory.d.ts @@ -0,0 +1,109 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class PlayerInventory extends cn.nukkit.inventory.BaseInventory { + // @ts-ignore + constructor(player: cn.nukkit.entity.EntityHumanType) + // @ts-ignore + protected itemInHandIndex: number; + // @ts-ignore + public getSize(): number; + // @ts-ignore + public setSize(size: number): void; + /** + * Called when a client equips a hotbar inventorySlot. This method should not be used by plugins. + * This method will call PlayerItemHeldEvent. + */ + // @ts-ignore + public equipItem(slot: number): boolean; + // @ts-ignore + public getHotbarSlotIndex(index: number): number; + // @ts-ignore + public setHotbarSlotIndex(index: number, slot: number): void; + // @ts-ignore + public getHeldItemIndex(): number; + // @ts-ignore + public setHeldItemIndex(index: number): void; + // @ts-ignore + public setHeldItemIndex(index: number, send: boolean): void; + // @ts-ignore + public getItemInHand(): cn.nukkit.item.Item; + // @ts-ignore + public setItemInHand(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getHeldItemSlot(): number; + // @ts-ignore + public setHeldItemSlot(slot: number): void; + // @ts-ignore + public sendHeldItem(players: cn.nukkit.Player): void; + // @ts-ignore + public sendHeldItem(players: java.util.Collection): void; + // @ts-ignore + public onSlotChange(index: number, before: cn.nukkit.item.Item, send: boolean): void; + // @ts-ignore + public getHotbarSize(): number; + // @ts-ignore + public getArmorItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public setArmorItem(index: number, item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public setArmorItem(index: number, item: cn.nukkit.item.Item, ignoreArmorEvents: boolean): boolean; + // @ts-ignore + public getHelmet(): cn.nukkit.item.Item; + // @ts-ignore + public getChestplate(): cn.nukkit.item.Item; + // @ts-ignore + public getLeggings(): cn.nukkit.item.Item; + // @ts-ignore + public getBoots(): cn.nukkit.item.Item; + // @ts-ignore + public setHelmet(helmet: cn.nukkit.item.Item): boolean; + // @ts-ignore + public setChestplate(chestplate: cn.nukkit.item.Item): boolean; + // @ts-ignore + public setLeggings(leggings: cn.nukkit.item.Item): boolean; + // @ts-ignore + public setBoots(boots: cn.nukkit.item.Item): boolean; + // @ts-ignore + public setItem(index: number, item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public clear(index: number, send: boolean): boolean; + // @ts-ignore + public getArmorContents(): cn.nukkit.item.Item[]; + // @ts-ignore + public clearAll(): void; + // @ts-ignore + public sendArmorContents(player: cn.nukkit.Player): void; + // @ts-ignore + public sendArmorContents(players: cn.nukkit.Player): void; + // @ts-ignore + public setArmorContents(items: cn.nukkit.item.Item): void; + // @ts-ignore + public sendArmorContents(players: java.util.Collection): void; + // @ts-ignore + public sendArmorSlot(index: number, player: cn.nukkit.Player): void; + // @ts-ignore + public sendArmorSlot(index: number, players: cn.nukkit.Player): void; + // @ts-ignore + public sendArmorSlot(index: number, players: java.util.Collection): void; + // @ts-ignore + public sendContents(player: cn.nukkit.Player): void; + // @ts-ignore + public sendContents(players: java.util.Collection): void; + // @ts-ignore + public sendContents(players: cn.nukkit.Player): void; + // @ts-ignore + public sendSlot(index: number, player: cn.nukkit.Player): void; + // @ts-ignore + public sendSlot(index: number, players: java.util.Collection): void; + // @ts-ignore + public sendSlot(index: number, players: cn.nukkit.Player): void; + // @ts-ignore + public sendCreativeContents(): void; + // @ts-ignore + public getHolder(): cn.nukkit.entity.EntityHuman; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerOffhandInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerOffhandInventory.d.ts new file mode 100644 index 00000000..b9751fa8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerOffhandInventory.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class PlayerOffhandInventory extends cn.nukkit.inventory.BaseInventory { + // @ts-ignore + constructor(holder: cn.nukkit.entity.EntityHumanType) + // @ts-ignore + public setSize(size: number): void; + // @ts-ignore + public onSlotChange(index: number, before: cn.nukkit.item.Item, send: boolean): void; + // @ts-ignore + public sendContents(players: cn.nukkit.Player): void; + // @ts-ignore + public sendSlot(index: number, players: cn.nukkit.Player): void; + // @ts-ignore + public getHolder(): cn.nukkit.entity.EntityHuman; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerUIComponent.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerUIComponent.d.ts new file mode 100644 index 00000000..5e2bca7a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerUIComponent.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class PlayerUIComponent extends cn.nukkit.inventory.BaseInventory { + // @ts-ignore + public getSize(): number; + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public setMaxStackSize(size: number): void; + // @ts-ignore + public getTitle(): string; + // @ts-ignore + public getItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public setItem(index: number, item: cn.nukkit.item.Item, send: boolean): boolean; + // @ts-ignore + public getContents(): java.util.Map; + // @ts-ignore + public sendContents(players: cn.nukkit.Player): void; + // @ts-ignore + public sendSlot(index: number, players: cn.nukkit.Player): void; + // @ts-ignore + public getViewers(): java.util.Set; + // @ts-ignore + public getType(): cn.nukkit.inventory.InventoryType; + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + public open(who: cn.nukkit.Player): boolean; + // @ts-ignore + public close(who: cn.nukkit.Player): void; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + // @ts-ignore + public onSlotChange(index: number, before: cn.nukkit.item.Item, send: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerUIInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerUIInventory.d.ts new file mode 100644 index 00000000..f140b701 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.PlayerUIInventory.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class PlayerUIInventory extends cn.nukkit.inventory.BaseInventory { + // @ts-ignore + constructor(player: cn.nukkit.Player) + // @ts-ignore + public getCursorInventory(): cn.nukkit.inventory.PlayerCursorInventory; + // @ts-ignore + public getCraftingGrid(): cn.nukkit.inventory.CraftingGrid; + // @ts-ignore + public getBigCraftingGrid(): cn.nukkit.inventory.BigCraftingGrid; + // @ts-ignore + public setSize(size: number): void; + // @ts-ignore + public sendSlot(index: number, target: cn.nukkit.Player): void; + // @ts-ignore + public sendContents(target: cn.nukkit.Player): void; + // @ts-ignore + public getSize(): number; + // @ts-ignore + public getHolder(): cn.nukkit.Player; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.Recipe.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.Recipe.d.ts new file mode 100644 index 00000000..a6e6cd97 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.Recipe.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + interface Recipe { + // @ts-ignore + getResult(): cn.nukkit.item.Item; + // @ts-ignore + registerToCraftingManager(manager: cn.nukkit.inventory.CraftingManager): void; + // @ts-ignore + getType(): cn.nukkit.inventory.RecipeType; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.RecipeType.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.RecipeType.d.ts new file mode 100644 index 00000000..c2a2926f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.RecipeType.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class RecipeType extends java.lang.Enum { + // @ts-ignore + public static SHAPELESS: cn.nukkit.inventory.RecipeType; + // @ts-ignore + public static SHAPED: cn.nukkit.inventory.RecipeType; + // @ts-ignore + public static FURNACE: cn.nukkit.inventory.RecipeType; + // @ts-ignore + public static FURNACE_DATA: cn.nukkit.inventory.RecipeType; + // @ts-ignore + public static MULTI: cn.nukkit.inventory.RecipeType; + // @ts-ignore + public static SHULKER_BOX: cn.nukkit.inventory.RecipeType; + // @ts-ignore + public static SHAPELESS_CHEMISTRY: cn.nukkit.inventory.RecipeType; + // @ts-ignore + public static SHAPED_CHEMISTRY: cn.nukkit.inventory.RecipeType; + // @ts-ignore + public static values(): cn.nukkit.inventory.RecipeType[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.inventory.RecipeType; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapedRecipe.Entry.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapedRecipe.Entry.d.ts new file mode 100644 index 00000000..e987b3ce --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapedRecipe.Entry.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace ShapedRecipe { + // @ts-ignore + class Entry extends java.lang.Object { + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapedRecipe.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapedRecipe.d.ts new file mode 100644 index 00000000..4378e33f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapedRecipe.d.ts @@ -0,0 +1,56 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class ShapedRecipe extends java.lang.Object implements cn.nukkit.inventory.CraftingRecipe { + // @ts-ignore + constructor(primaryResult: cn.nukkit.item.Item, shape: string, ingredients: java.util.Map, extraResults: java.util.List) + /** + * Constructs a ShapedRecipe instance. + */ + // @ts-ignore + constructor(recipeId: string, priority: number, primaryResult: cn.nukkit.item.Item, shape: string, ingredients: java.util.Map, extraResults: java.util.List) + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getHeight(): number; + // @ts-ignore + public getResult(): cn.nukkit.item.Item; + // @ts-ignore + public getRecipeId(): string; + // @ts-ignore + public getId(): java.util.UUID; + // @ts-ignore + public setId(uuid: java.util.UUID): void; + // @ts-ignore + public setIngredient(key: string, item: cn.nukkit.item.Item): cn.nukkit.inventory.ShapedRecipe; + // @ts-ignore + public setIngredient(key: string, item: cn.nukkit.item.Item): cn.nukkit.inventory.ShapedRecipe; + // @ts-ignore + public getIngredientList(): java.util.List; + // @ts-ignore + public getIngredientMap(): java.util.Map; + // @ts-ignore + public getIngredient(x: number, y: number): cn.nukkit.item.Item; + // @ts-ignore + public getShape(): java.lang.String[]; + // @ts-ignore + public registerToCraftingManager(manager: cn.nukkit.inventory.CraftingManager): void; + // @ts-ignore + public getType(): cn.nukkit.inventory.RecipeType; + // @ts-ignore + public getExtraResults(): java.util.List; + // @ts-ignore + public getAllResults(): java.util.List; + // @ts-ignore + public getPriority(): number; + // @ts-ignore + public matchItems(input: cn.nukkit.item.Item, output: cn.nukkit.item.Item): boolean; + // @ts-ignore + public toString(): string; + // @ts-ignore + public requiresCraftingTable(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapelessRecipe.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapelessRecipe.d.ts new file mode 100644 index 00000000..3d776a0c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShapelessRecipe.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class ShapelessRecipe extends java.lang.Object implements cn.nukkit.inventory.CraftingRecipe { + // @ts-ignore + constructor(result: cn.nukkit.item.Item, ingredients: java.util.Collection) + // @ts-ignore + constructor(recipeId: string, priority: number, result: cn.nukkit.item.Item, ingredients: java.util.Collection) + // @ts-ignore + public getResult(): cn.nukkit.item.Item; + // @ts-ignore + public getRecipeId(): string; + // @ts-ignore + public getId(): java.util.UUID; + // @ts-ignore + public setId(uuid: java.util.UUID): void; + // @ts-ignore + public getIngredientList(): java.util.List; + // @ts-ignore + public getIngredientCount(): number; + // @ts-ignore + public registerToCraftingManager(manager: cn.nukkit.inventory.CraftingManager): void; + // @ts-ignore + public getType(): cn.nukkit.inventory.RecipeType; + // @ts-ignore + public requiresCraftingTable(): boolean; + // @ts-ignore + public getExtraResults(): java.util.List; + // @ts-ignore + public getAllResults(): java.util.List; + // @ts-ignore + public getPriority(): number; + // @ts-ignore + public matchItems(input: cn.nukkit.item.Item, output: cn.nukkit.item.Item): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShulkerBoxInventory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShulkerBoxInventory.d.ts new file mode 100644 index 00000000..2b9d1c6a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.ShulkerBoxInventory.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + // @ts-ignore + class ShulkerBoxInventory extends cn.nukkit.inventory.ContainerInventory { + // @ts-ignore + constructor(box: cn.nukkit.blockentity.BlockEntityShulkerBox) + // @ts-ignore + public getHolder(): cn.nukkit.blockentity.BlockEntityShulkerBox; + // @ts-ignore + public onOpen(who: cn.nukkit.Player): void; + // @ts-ignore + public onClose(who: cn.nukkit.Player): void; + // @ts-ignore + public canAddItem(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public sendSlot(index: number, players: cn.nukkit.Player): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.CraftingTransaction.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.CraftingTransaction.d.ts new file mode 100644 index 00000000..2952d891 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.CraftingTransaction.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + // @ts-ignore + class CraftingTransaction extends cn.nukkit.inventory.transaction.InventoryTransaction { + // @ts-ignore + constructor(source: cn.nukkit.Player, actions: java.util.List) + // @ts-ignore + protected gridSize: number; + // @ts-ignore + protected inputs: cn.nukkit.item.Item[][]; + // @ts-ignore + protected secondaryOutputs: cn.nukkit.item.Item[][]; + // @ts-ignore + protected primaryOutput: cn.nukkit.item.Item; + // @ts-ignore + protected recipe: cn.nukkit.inventory.CraftingRecipe; + // @ts-ignore + public setInput(index: number, item: cn.nukkit.item.Item): void; + // @ts-ignore + public getInputMap(): cn.nukkit.item.Item[][]; + // @ts-ignore + public setExtraOutput(index: number, item: cn.nukkit.item.Item): void; + // @ts-ignore + public getPrimaryOutput(): cn.nukkit.item.Item; + // @ts-ignore + public setPrimaryOutput(item: cn.nukkit.item.Item): void; + // @ts-ignore + public getRecipe(): cn.nukkit.inventory.CraftingRecipe; + // @ts-ignore + public canExecute(): boolean; + // @ts-ignore + protected callExecuteEvent(): boolean; + // @ts-ignore + protected sendInventories(): void; + // @ts-ignore + public execute(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.InventoryTransaction.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.InventoryTransaction.d.ts new file mode 100644 index 00000000..61dc333c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.InventoryTransaction.d.ts @@ -0,0 +1,64 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + // @ts-ignore + class InventoryTransaction extends java.lang.Object { + // @ts-ignore + constructor(source: cn.nukkit.Player, actions: java.util.List) + // @ts-ignore + constructor(source: cn.nukkit.Player, actions: java.util.List, init: boolean) + // @ts-ignore + protected source: cn.nukkit.Player; + // @ts-ignore + protected inventories: java.util.Set; + // @ts-ignore + protected actions: java.util.Set; + // @ts-ignore + protected init(source: cn.nukkit.Player, actions: java.util.List): void; + // @ts-ignore + public getSource(): cn.nukkit.Player; + // @ts-ignore + public getCreationTime(): number; + // @ts-ignore + public getInventories(): java.util.Set; + // @ts-ignore + public getActions(): java.util.Set; + // @ts-ignore + public addAction(action: cn.nukkit.inventory.transaction.action.InventoryAction): void; + /** + * This method should not be used by plugins, it's used to add tracked inventories for InventoryActions + * involving inventories. + */ + // @ts-ignore + public addInventory(inventory: cn.nukkit.inventory.Inventory): void; + // @ts-ignore + protected matchItems(needItems: java.util.List, haveItems: java.util.List): boolean; + // @ts-ignore + protected sendInventories(): void; + /** + * Iterates over SlotChangeActions in this transaction and compacts any which refer to the same inventorySlot in the same + * inventory so they can be correctly handled. + *

+ * Under normal circumstances, the same inventorySlot would never be changed more than once in a single transaction. However, + * due to the way things like the crafting grid are "implemented" in MCPE 1.2 (a.k.a. hacked-in), we may get + * multiple inventorySlot changes referring to the same inventorySlot in a single transaction. These multiples are not even guaranteed + * to be in the correct order (inventorySlot splitting in the crafting grid for example, causes the actions to be sent in the + * wrong order), so this method also tries to chain them into order. + *

+ */ + // @ts-ignore + protected squashDuplicateSlotChanges(): boolean; + // @ts-ignore + public canExecute(): boolean; + // @ts-ignore + protected callExecuteEvent(): boolean; + // @ts-ignore + public execute(): boolean; + // @ts-ignore + public hasExecuted(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CraftingTakeResultAction.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CraftingTakeResultAction.d.ts new file mode 100644 index 00000000..91c70535 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CraftingTakeResultAction.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace action { + // @ts-ignore + class CraftingTakeResultAction extends cn.nukkit.inventory.transaction.action.InventoryAction { + // @ts-ignore + constructor(sourceItem: cn.nukkit.item.Item, targetItem: cn.nukkit.item.Item) + // @ts-ignore + public onAddToTransaction(transaction: cn.nukkit.inventory.transaction.InventoryTransaction): void; + // @ts-ignore + public isValid(source: cn.nukkit.Player): boolean; + // @ts-ignore + public execute(source: cn.nukkit.Player): boolean; + // @ts-ignore + public onExecuteSuccess($source: cn.nukkit.Player): void; + // @ts-ignore + public onExecuteFail(source: cn.nukkit.Player): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CraftingTransferMaterialAction.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CraftingTransferMaterialAction.d.ts new file mode 100644 index 00000000..082a7fd8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CraftingTransferMaterialAction.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace action { + // @ts-ignore + class CraftingTransferMaterialAction extends cn.nukkit.inventory.transaction.action.InventoryAction { + // @ts-ignore + constructor(sourceItem: cn.nukkit.item.Item, targetItem: cn.nukkit.item.Item, slot: number) + // @ts-ignore + public onAddToTransaction(transaction: cn.nukkit.inventory.transaction.InventoryTransaction): void; + // @ts-ignore + public isValid(source: cn.nukkit.Player): boolean; + // @ts-ignore + public execute(source: cn.nukkit.Player): boolean; + // @ts-ignore + public onExecuteSuccess($source: cn.nukkit.Player): void; + // @ts-ignore + public onExecuteFail(source: cn.nukkit.Player): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CreativeInventoryAction.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CreativeInventoryAction.d.ts new file mode 100644 index 00000000..4532cdb0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.CreativeInventoryAction.d.ts @@ -0,0 +1,40 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace action { + // @ts-ignore + class CreativeInventoryAction extends cn.nukkit.inventory.transaction.action.InventoryAction { + // @ts-ignore + constructor(source: cn.nukkit.item.Item, target: cn.nukkit.item.Item, action: number) + // @ts-ignore + public static TYPE_DELETE_ITEM: number; + // @ts-ignore + public static TYPE_CREATE_ITEM: number; + // @ts-ignore + protected actionType: number; + /** + * Checks that the player is in creative, and (if creating an item) that the item exists in the creative inventory. + */ + // @ts-ignore + public isValid(source: cn.nukkit.Player): boolean; + /** + * Returns the type of the action. + */ + // @ts-ignore + public getActionType(): number; + /** + * No need to do anything extra here: this type just provides a place for items to disappear or appear from. + */ + // @ts-ignore + public execute(source: cn.nukkit.Player): boolean; + // @ts-ignore + public onExecuteSuccess(source: cn.nukkit.Player): void; + // @ts-ignore + public onExecuteFail(source: cn.nukkit.Player): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.DropItemAction.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.DropItemAction.d.ts new file mode 100644 index 00000000..ba338e85 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.DropItemAction.d.ts @@ -0,0 +1,32 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace action { + // @ts-ignore + class DropItemAction extends cn.nukkit.inventory.transaction.action.InventoryAction { + // @ts-ignore + constructor(source: cn.nukkit.item.Item, target: cn.nukkit.item.Item) + /** + * Verifies that the source item of a drop-item action must be air. This is not strictly necessary, just a sanity + * check. + */ + // @ts-ignore + public isValid(source: cn.nukkit.Player): boolean; + // @ts-ignore + public onPreExecute(source: cn.nukkit.Player): boolean; + /** + * Drops the target item in front of the player. + */ + // @ts-ignore + public execute(source: cn.nukkit.Player): boolean; + // @ts-ignore + public onExecuteSuccess(source: cn.nukkit.Player): void; + // @ts-ignore + public onExecuteFail(source: cn.nukkit.Player): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.InventoryAction.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.InventoryAction.d.ts new file mode 100644 index 00000000..8f55be8a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.InventoryAction.d.ts @@ -0,0 +1,64 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace action { + // @ts-ignore + abstract class InventoryAction extends java.lang.Object { + // @ts-ignore + constructor(sourceItem: cn.nukkit.item.Item, targetItem: cn.nukkit.item.Item) + // @ts-ignore + protected sourceItem: cn.nukkit.item.Item; + // @ts-ignore + protected targetItem: cn.nukkit.item.Item; + // @ts-ignore + public getCreationTime(): number; + /** + * Returns the item that was present before the action took place. + */ + // @ts-ignore + public getSourceItem(): cn.nukkit.item.Item; + /** + * Returns the item that the action attempted to replace the source item with. + */ + // @ts-ignore + public getTargetItem(): cn.nukkit.item.Item; + /** + * Called by inventory transactions before any actions are processed. If this returns false, the transaction will + * be cancelled. + */ + // @ts-ignore + public onPreExecute(source: cn.nukkit.Player): boolean; + /** + * Returns whether this action is currently valid. This should perform any necessary sanity checks. + */ + // @ts-ignore + public abstract isValid(source: cn.nukkit.Player): boolean; + /** + * Called when the action is added to the specified InventoryTransaction. + */ + // @ts-ignore + public onAddToTransaction(transaction: cn.nukkit.inventory.transaction.InventoryTransaction): void; + /** + * Performs actions needed to complete the inventory-action server-side. Returns if it was successful. Will return + * false if plugins cancelled events. This will only be called if the transaction which it is part of is considered + * valid. + */ + // @ts-ignore + public abstract execute(source: cn.nukkit.Player): boolean; + /** + * Performs additional actions when this inventory-action completed successfully. + */ + // @ts-ignore + public abstract onExecuteSuccess(source: cn.nukkit.Player): void; + /** + * Performs additional actions when this inventory-action did not complete successfully. + */ + // @ts-ignore + public abstract onExecuteFail(source: cn.nukkit.Player): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.SlotChangeAction.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.SlotChangeAction.d.ts new file mode 100644 index 00000000..33b45659 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.action.SlotChangeAction.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace action { + // @ts-ignore + class SlotChangeAction extends cn.nukkit.inventory.transaction.action.InventoryAction { + // @ts-ignore + constructor(inventory: cn.nukkit.inventory.Inventory, inventorySlot: number, sourceItem: cn.nukkit.item.Item, targetItem: cn.nukkit.item.Item) + // @ts-ignore + protected inventory: cn.nukkit.inventory.Inventory; + /** + * Returns the inventory involved in this action. + */ + // @ts-ignore + public getInventory(): cn.nukkit.inventory.Inventory; + /** + * Returns the inventorySlot in the inventory which this action modified. + */ + // @ts-ignore + public getSlot(): number; + /** + * Checks if the item in the inventory at the specified inventorySlot is the same as this action's source item. + */ + // @ts-ignore + public isValid(source: cn.nukkit.Player): boolean; + /** + * Sets the item into the target inventory. + */ + // @ts-ignore + public execute(source: cn.nukkit.Player): boolean; + /** + * Sends inventorySlot changes to other viewers of the inventory. This will not send any change back to the source Player. + */ + // @ts-ignore + public onExecuteSuccess(source: cn.nukkit.Player): void; + /** + * Sends the original inventorySlot contents to the source player to revert the action. + */ + // @ts-ignore + public onExecuteFail(source: cn.nukkit.Player): void; + // @ts-ignore + public onAddToTransaction(transaction: cn.nukkit.inventory.transaction.InventoryTransaction): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.ReleaseItemData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.ReleaseItemData.d.ts new file mode 100644 index 00000000..587c5422 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.ReleaseItemData.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace data { + // @ts-ignore + class ReleaseItemData extends java.lang.Object implements cn.nukkit.inventory.transaction.data.TransactionData { + // @ts-ignore + constructor() + // @ts-ignore + public actionType: number; + // @ts-ignore + public hotbarSlot: number; + // @ts-ignore + public itemInHand: cn.nukkit.item.Item; + // @ts-ignore + public headRot: cn.nukkit.math.Vector3; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.TransactionData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.TransactionData.d.ts new file mode 100644 index 00000000..0d3413e5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.TransactionData.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace data { + // @ts-ignore + interface TransactionData { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.UseItemData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.UseItemData.d.ts new file mode 100644 index 00000000..96849fdf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.UseItemData.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace data { + // @ts-ignore + class UseItemData extends java.lang.Object implements cn.nukkit.inventory.transaction.data.TransactionData { + // @ts-ignore + constructor() + // @ts-ignore + public actionType: number; + // @ts-ignore + public blockPos: cn.nukkit.math.BlockVector3; + // @ts-ignore + public face: cn.nukkit.math.BlockFace; + // @ts-ignore + public hotbarSlot: number; + // @ts-ignore + public itemInHand: cn.nukkit.item.Item; + // @ts-ignore + public playerPos: cn.nukkit.math.Vector3; + // @ts-ignore + public clickPos: cn.nukkit.math.Vector3f; + // @ts-ignore + public blockRuntimeId: number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.UseItemOnEntityData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.UseItemOnEntityData.d.ts new file mode 100644 index 00000000..500ede3c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.inventory.transaction.data.UseItemOnEntityData.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace inventory { + namespace transaction { + namespace data { + // @ts-ignore + class UseItemOnEntityData extends java.lang.Object implements cn.nukkit.inventory.transaction.data.TransactionData { + // @ts-ignore + constructor() + // @ts-ignore + public entityRuntimeId: number; + // @ts-ignore + public actionType: number; + // @ts-ignore + public hotbarSlot: number; + // @ts-ignore + public itemInHand: cn.nukkit.item.Item; + // @ts-ignore + public playerPos: cn.nukkit.math.Vector3; + // @ts-ignore + public clickPos: cn.nukkit.math.Vector3; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.Item.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.Item.d.ts new file mode 100644 index 00000000..936c3f76 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.Item.d.ts @@ -0,0 +1,216 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class Item extends java.lang.Object implements cn.nukkit.block.BlockID, cn.nukkit.item.ItemID { + // @ts-ignore + constructor(id: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number, name: string) + // @ts-ignore + protected static UNKNOWN_STR: string; + // @ts-ignore + public static list: java.lang.Class[]; + // @ts-ignore + protected block: cn.nukkit.block.Block; + // @ts-ignore + protected id: number; + // @ts-ignore + protected meta: number; + // @ts-ignore + public count: number; + // @ts-ignore + protected durability: number; + // @ts-ignore + protected name: string; + // @ts-ignore + public hasMeta(): boolean; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public static init(): void; + // @ts-ignore + public static clearCreativeItems(): void; + // @ts-ignore + public static getCreativeItems(): java.util.ArrayList; + // @ts-ignore + public static addCreativeItem(item: cn.nukkit.item.Item): void; + // @ts-ignore + public static removeCreativeItem(item: cn.nukkit.item.Item): void; + // @ts-ignore + public static isCreativeItem(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public static getCreativeItem(index: number): cn.nukkit.item.Item; + // @ts-ignore + public static getCreativeItemIndex(item: cn.nukkit.item.Item): number; + // @ts-ignore + public static get(id: number): cn.nukkit.item.Item; + // @ts-ignore + public static get(id: number, meta: java.lang.Integer): cn.nukkit.item.Item; + // @ts-ignore + public static get(id: number, meta: java.lang.Integer, count: number): cn.nukkit.item.Item; + // @ts-ignore + public static get(id: number, meta: java.lang.Integer, count: number, tags: number): cn.nukkit.item.Item; + // @ts-ignore + public static fromString(str: string): cn.nukkit.item.Item; + // @ts-ignore + public static fromJson(data: java.util.Map): cn.nukkit.item.Item; + // @ts-ignore + public static fromStringMultiple(str: string): cn.nukkit.item.Item[]; + // @ts-ignore + public setCompoundTag(tag: cn.nukkit.nbt.tag.CompoundTag): cn.nukkit.item.Item; + // @ts-ignore + public setCompoundTag(tags: number): cn.nukkit.item.Item; + // @ts-ignore + public getCompoundTag(): number[]; + // @ts-ignore + public hasCompoundTag(): boolean; + // @ts-ignore + public hasCustomBlockData(): boolean; + // @ts-ignore + public clearCustomBlockData(): cn.nukkit.item.Item; + // @ts-ignore + public setCustomBlockData(compoundTag: cn.nukkit.nbt.tag.CompoundTag): cn.nukkit.item.Item; + // @ts-ignore + public getCustomBlockData(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public hasEnchantments(): boolean; + // @ts-ignore + public getEnchantment(id: number): cn.nukkit.item.enchantment.Enchantment; + // @ts-ignore + public getEnchantment(id: number): cn.nukkit.item.enchantment.Enchantment; + // @ts-ignore + public addEnchantment(enchantments: cn.nukkit.item.enchantment.Enchantment): void; + // @ts-ignore + public getEnchantments(): cn.nukkit.item.enchantment.Enchantment[]; + // @ts-ignore + public hasCustomName(): boolean; + // @ts-ignore + public getCustomName(): string; + // @ts-ignore + public setCustomName(name: string): cn.nukkit.item.Item; + // @ts-ignore + public clearCustomName(): cn.nukkit.item.Item; + // @ts-ignore + public getLore(): java.lang.String[]; + // @ts-ignore + public setLore(lines: string): cn.nukkit.item.Item; + // @ts-ignore + public getNamedTagEntry(name: string): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public getNamedTag(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public setNamedTag(tag: cn.nukkit.nbt.tag.CompoundTag): cn.nukkit.item.Item; + // @ts-ignore + public clearNamedTag(): cn.nukkit.item.Item; + // @ts-ignore + public static parseCompoundTag(tag: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public writeCompoundTag(tag: cn.nukkit.nbt.tag.CompoundTag): number[]; + // @ts-ignore + public getCount(): number; + // @ts-ignore + public setCount(count: number): void; + // @ts-ignore + public isNull(): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public canBePlaced(): boolean; + // @ts-ignore + public getBlock(): cn.nukkit.block.Block; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(meta: java.lang.Integer): void; + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public getFuelTime(): java.lang.Short; + // @ts-ignore + public useOn(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public useOn(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public isTool(): boolean; + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isPickaxe(): boolean; + // @ts-ignore + public isAxe(): boolean; + // @ts-ignore + public isSword(): boolean; + // @ts-ignore + public isShovel(): boolean; + // @ts-ignore + public isHoe(): boolean; + // @ts-ignore + public isShears(): boolean; + // @ts-ignore + public isArmor(): boolean; + // @ts-ignore + public isHelmet(): boolean; + // @ts-ignore + public isChestplate(): boolean; + // @ts-ignore + public isLeggings(): boolean; + // @ts-ignore + public isBoots(): boolean; + // @ts-ignore + public getEnchantAbility(): number; + // @ts-ignore + public getAttackDamage(): number; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getToughness(): number; + // @ts-ignore + public isUnbreakable(): boolean; + // @ts-ignore + public onUse(player: cn.nukkit.Player, ticksUsed: number): boolean; + // @ts-ignore + public onRelease(player: cn.nukkit.Player, ticksUsed: number): boolean; + // @ts-ignore + public toString(): string; + // @ts-ignore + public getDestroySpeed(block: cn.nukkit.block.Block, player: cn.nukkit.Player): number; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + /** + * Called when a player uses the item on air, for example throwing a projectile. + * Returns whether the item was changed, for example count decrease or durability change. + */ + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public equals(item: java.lang.Object): boolean; + // @ts-ignore + public equals(item: cn.nukkit.item.Item, checkDamage: boolean): boolean; + // @ts-ignore + public equals(item: cn.nukkit.item.Item, checkDamage: boolean, checkCompound: boolean): boolean; + /** + * Returns whether the specified item stack has the same ID, damage, NBT and count as this item stack. + */ + // @ts-ignore + public equalsExact(other: cn.nukkit.item.Item): boolean; + // @ts-ignore + public deepEquals(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public deepEquals(item: cn.nukkit.item.Item, checkDamage: boolean): boolean; + // @ts-ignore + public deepEquals(item: cn.nukkit.item.Item, checkDamage: boolean, checkCompound: boolean): boolean; + // @ts-ignore + public clone(): cn.nukkit.item.Item; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemApple.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemApple.d.ts new file mode 100644 index 00000000..2e1f53fe --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemApple.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemApple extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAppleGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAppleGold.d.ts new file mode 100644 index 00000000..38018ed8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAppleGold.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemAppleGold extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAppleGoldEnchanted.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAppleGoldEnchanted.d.ts new file mode 100644 index 00000000..b8737fc0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAppleGoldEnchanted.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemAppleGoldEnchanted extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemArmor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemArmor.d.ts new file mode 100644 index 00000000..5ef17f5a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemArmor.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + abstract class ItemArmor extends cn.nukkit.item.Item implements cn.nukkit.item.ItemDurable { + // @ts-ignore + constructor(id: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number, name: string) + // @ts-ignore + public static TIER_LEATHER: number; + // @ts-ignore + public static TIER_IRON: number; + // @ts-ignore + public static TIER_CHAIN: number; + // @ts-ignore + public static TIER_GOLD: number; + // @ts-ignore + public static TIER_DIAMOND: number; + // @ts-ignore + public static TIER_OTHER: number; + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public isArmor(): boolean; + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public getEnchantAbility(): number; + // @ts-ignore + public isUnbreakable(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemArrow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemArrow.d.ts new file mode 100644 index 00000000..255be785 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemArrow.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemArrow extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeDiamond.d.ts new file mode 100644 index 00000000..4726fbc6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeDiamond.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemAxeDiamond extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isAxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeGold.d.ts new file mode 100644 index 00000000..7178fa2e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeGold.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemAxeGold extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isAxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeIron.d.ts new file mode 100644 index 00000000..3fba7666 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeIron.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemAxeIron extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isAxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeStone.d.ts new file mode 100644 index 00000000..3f5e7a65 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeStone.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemAxeStone extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isAxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeWood.d.ts new file mode 100644 index 00000000..82ab6ba9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemAxeWood.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemAxeWood extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isAxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBanner.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBanner.d.ts new file mode 100644 index 00000000..8073c953 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBanner.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBanner extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public getBaseColor(): number; + // @ts-ignore + public setBaseColor(color: cn.nukkit.utils.DyeColor): void; + // @ts-ignore + public getType(): number; + // @ts-ignore + public setType(type: number): void; + // @ts-ignore + public addPattern(pattern: cn.nukkit.utils.BannerPattern): void; + // @ts-ignore + public getPattern(index: number): cn.nukkit.utils.BannerPattern; + // @ts-ignore + public removePattern(index: number): void; + // @ts-ignore + public getPatternsSize(): number; + // @ts-ignore + public correctNBT(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBed.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBed.d.ts new file mode 100644 index 00000000..d076a8b7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBed.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBed extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeefRaw.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeefRaw.d.ts new file mode 100644 index 00000000..b27436d8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeefRaw.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBeefRaw extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeetroot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeetroot.d.ts new file mode 100644 index 00000000..06f7c9f8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeetroot.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBeetroot extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeetrootSoup.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeetrootSoup.d.ts new file mode 100644 index 00000000..b4f32446 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBeetrootSoup.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBeetrootSoup extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlazePowder.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlazePowder.d.ts new file mode 100644 index 00000000..903bf0af --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlazePowder.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBlazePowder extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlazeRod.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlazeRod.d.ts new file mode 100644 index 00000000..b4885af2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlazeRod.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBlazeRod extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlock.d.ts new file mode 100644 index 00000000..554656a7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBlock.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBlock extends cn.nukkit.item.Item { + // @ts-ignore + constructor(block: cn.nukkit.block.Block) + // @ts-ignore + constructor(block: cn.nukkit.block.Block, meta: java.lang.Integer) + // @ts-ignore + constructor(block: cn.nukkit.block.Block, meta: java.lang.Integer, count: number) + // @ts-ignore + public setDamage(meta: java.lang.Integer): void; + // @ts-ignore + public clone(): cn.nukkit.item.ItemBlock; + // @ts-ignore + public getBlock(): cn.nukkit.block.Block; + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBoat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBoat.d.ts new file mode 100644 index 00000000..50a02f4d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBoat.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBoat extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBone.d.ts new file mode 100644 index 00000000..30e19954 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBone.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBone extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBook.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBook.d.ts new file mode 100644 index 00000000..1cb43948 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBook.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBook extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getEnchantAbility(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBookEnchanted.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBookEnchanted.d.ts new file mode 100644 index 00000000..c285ad0c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBookEnchanted.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBookEnchanted extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBookWritten.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBookWritten.d.ts new file mode 100644 index 00000000..cd15ffa7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBookWritten.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBookWritten extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + protected isWritten: boolean; + // @ts-ignore + public writeBook(author: string, title: string, pages: string): cn.nukkit.item.Item; + // @ts-ignore + public writeBook(author: string, title: string, pages: cn.nukkit.nbt.tag.ListTag): cn.nukkit.item.Item; + // @ts-ignore + public getAuthor(): string; + // @ts-ignore + public getTitle(): string; + // @ts-ignore + public getPages(): java.lang.String[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsChain.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsChain.d.ts new file mode 100644 index 00000000..e5ff6270 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsChain.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBootsChain extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isBoots(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsDiamond.d.ts new file mode 100644 index 00000000..df7d3296 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsDiamond.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBootsDiamond extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isBoots(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public getToughness(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsGold.d.ts new file mode 100644 index 00000000..7e9ebbf5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsGold.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBootsGold extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isBoots(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsIron.d.ts new file mode 100644 index 00000000..cdff3888 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsIron.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBootsIron extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isBoots(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsLeather.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsLeather.d.ts new file mode 100644 index 00000000..a980b2bc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBootsLeather.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBootsLeather extends cn.nukkit.item.ItemColorArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isBoots(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBow.d.ts new file mode 100644 index 00000000..ebe0459f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBow.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBow extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public getEnchantAbility(): number; + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public onRelease(player: cn.nukkit.Player, ticksUsed: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBowl.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBowl.d.ts new file mode 100644 index 00000000..7ea0537a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBowl.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBowl extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBread.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBread.d.ts new file mode 100644 index 00000000..7ee1585e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBread.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBread extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBrewingStand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBrewingStand.d.ts new file mode 100644 index 00000000..83f373a7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBrewingStand.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBrewingStand extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBrick.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBrick.d.ts new file mode 100644 index 00000000..bf73d07f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBrick.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBrick extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBucket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBucket.d.ts new file mode 100644 index 00000000..04422a4c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemBucket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemBucket extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + protected static getName(meta: number): string; + // @ts-ignore + public static getDamageByTarget(target: number): number; + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public onUse(player: cn.nukkit.Player, ticksUsed: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCake.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCake.d.ts new file mode 100644 index 00000000..deef311a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCake.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemCake extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrot.d.ts new file mode 100644 index 00000000..ad87c832 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrot.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemCarrot extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrotGolden.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrotGolden.d.ts new file mode 100644 index 00000000..e9c24034 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrotGolden.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemCarrotGolden extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrotOnAStick.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrotOnAStick.d.ts new file mode 100644 index 00000000..285110bd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCarrotOnAStick.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemCarrotOnAStick extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCauldron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCauldron.d.ts new file mode 100644 index 00000000..ec3d694c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCauldron.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemCauldron extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateChain.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateChain.d.ts new file mode 100644 index 00000000..d493aa02 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateChain.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemChestplateChain extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isChestplate(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateDiamond.d.ts new file mode 100644 index 00000000..520db765 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateDiamond.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemChestplateDiamond extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isChestplate(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public getToughness(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateGold.d.ts new file mode 100644 index 00000000..f676ddd3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateGold.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemChestplateGold extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isChestplate(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateIron.d.ts new file mode 100644 index 00000000..d33c2287 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateIron.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemChestplateIron extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isChestplate(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateLeather.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateLeather.d.ts new file mode 100644 index 00000000..43048f1a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChestplateLeather.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemChestplateLeather extends cn.nukkit.item.ItemColorArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isChestplate(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChickenCooked.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChickenCooked.d.ts new file mode 100644 index 00000000..2b93dc15 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChickenCooked.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemChickenCooked extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChickenRaw.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChickenRaw.d.ts new file mode 100644 index 00000000..d31acc51 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChickenRaw.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemChickenRaw extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChorusFruit.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChorusFruit.d.ts new file mode 100644 index 00000000..9bfb1b0b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemChorusFruit.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemChorusFruit extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public onUse(player: cn.nukkit.Player, ticksUsed: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClay.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClay.d.ts new file mode 100644 index 00000000..786f5f23 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClay.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemClay extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClock.d.ts new file mode 100644 index 00000000..98017664 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClock.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemClock extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClownfish.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClownfish.d.ts new file mode 100644 index 00000000..8ce34a36 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemClownfish.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemClownfish extends cn.nukkit.item.ItemFish { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCoal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCoal.d.ts new file mode 100644 index 00000000..8e9a907b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCoal.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemCoal extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemColorArmor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemColorArmor.d.ts new file mode 100644 index 00000000..0a5ff094 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemColorArmor.d.ts @@ -0,0 +1,42 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + abstract class ItemColorArmor extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor(id: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number, name: string) + /** + * Set leather armor color + */ + // @ts-ignore + public setColor(dyeColor: number): cn.nukkit.item.ItemColorArmor; + /** + * Set leather armor color + */ + // @ts-ignore + public setColor(dyeColor: cn.nukkit.utils.DyeColor): cn.nukkit.item.ItemColorArmor; + /** + * Set leather armor color + */ + // @ts-ignore + public setColor(color: cn.nukkit.utils.BlockColor): cn.nukkit.item.ItemColorArmor; + /** + * Set leather armor color + */ + // @ts-ignore + public setColor(r: number, g: number, b: number): cn.nukkit.item.ItemColorArmor; + /** + * Get color of Leather Item + */ + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCompass.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCompass.d.ts new file mode 100644 index 00000000..e8817e8e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCompass.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemCompass extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCookie.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCookie.d.ts new file mode 100644 index 00000000..ed4107d2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemCookie.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemCookie extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDiamond.d.ts new file mode 100644 index 00000000..ab28ca3f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDiamond.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDiamond extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorAcacia.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorAcacia.d.ts new file mode 100644 index 00000000..da45f210 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorAcacia.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDoorAcacia extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorBirch.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorBirch.d.ts new file mode 100644 index 00000000..a58b2060 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorBirch.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDoorBirch extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorDarkOak.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorDarkOak.d.ts new file mode 100644 index 00000000..876cdf58 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorDarkOak.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDoorDarkOak extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorIron.d.ts new file mode 100644 index 00000000..7f16b12a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorIron.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDoorIron extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorJungle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorJungle.d.ts new file mode 100644 index 00000000..6e1b454a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorJungle.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDoorJungle extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorSpruce.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorSpruce.d.ts new file mode 100644 index 00000000..94c2a00f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorSpruce.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDoorSpruce extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorWood.d.ts new file mode 100644 index 00000000..0111362c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDoorWood.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDoorWood extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDriedKelp.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDriedKelp.d.ts new file mode 100644 index 00000000..75f9029f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDriedKelp.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDriedKelp extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDurable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDurable.d.ts new file mode 100644 index 00000000..aba5f4b9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDurable.d.ts @@ -0,0 +1,9 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + interface ItemDurable { + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDye.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDye.d.ts new file mode 100644 index 00000000..5bb91d86 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemDye.d.ts @@ -0,0 +1,57 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemDye extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(dyeColor: cn.nukkit.utils.DyeColor) + // @ts-ignore + constructor(dyeColor: cn.nukkit.utils.DyeColor, amount: number) + // @ts-ignore + constructor(meta: java.lang.Integer, amount: number) + // @ts-ignore + public static WHITE: number; + // @ts-ignore + public static ORANGE: number; + // @ts-ignore + public static MAGENTA: number; + // @ts-ignore + public static LIGHT_BLUE: number; + // @ts-ignore + public static YELLOW: number; + // @ts-ignore + public static LIME: number; + // @ts-ignore + public static PINK: number; + // @ts-ignore + public static GRAY: number; + // @ts-ignore + public static LIGHT_GRAY: number; + // @ts-ignore + public static CYAN: number; + // @ts-ignore + public static PURPLE: number; + // @ts-ignore + public static BLUE: number; + // @ts-ignore + public static BROWN: number; + // @ts-ignore + public static GREEN: number; + // @ts-ignore + public static RED: number; + // @ts-ignore + public static BLACK: number; + // @ts-ignore + public static getColor(meta: number): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeColor(): cn.nukkit.utils.DyeColor; + // @ts-ignore + public static getColorName(meta: number): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEdible.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEdible.d.ts new file mode 100644 index 00000000..8c745cb7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEdible.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + abstract class ItemEdible extends cn.nukkit.item.Item { + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number, name: string) + // @ts-ignore + constructor(id: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number) + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public onUse(player: cn.nukkit.Player, ticksUsed: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEgg.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEgg.d.ts new file mode 100644 index 00000000..e3642f4f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEgg.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemEgg extends cn.nukkit.item.ProjectileItem { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getProjectileEntityType(): string; + // @ts-ignore + public getThrowForce(): number; + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemElytra.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemElytra.d.ts new file mode 100644 index 00000000..d1facd2c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemElytra.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemElytra extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isArmor(): boolean; + // @ts-ignore + public isChestplate(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEmerald.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEmerald.d.ts new file mode 100644 index 00000000..b46775e0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEmerald.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemEmerald extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEndCrystal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEndCrystal.d.ts new file mode 100644 index 00000000..fcddc08b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEndCrystal.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemEndCrystal extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEnderEye.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEnderEye.d.ts new file mode 100644 index 00000000..72f80235 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEnderEye.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemEnderEye extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEnderPearl.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEnderPearl.d.ts new file mode 100644 index 00000000..c677bd4c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemEnderPearl.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemEnderPearl extends cn.nukkit.item.ProjectileItem { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public getProjectileEntityType(): string; + // @ts-ignore + public getThrowForce(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemExpBottle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemExpBottle.d.ts new file mode 100644 index 00000000..bc69e277 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemExpBottle.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemExpBottle extends cn.nukkit.item.ProjectileItem { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getProjectileEntityType(): string; + // @ts-ignore + public getThrowForce(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFeather.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFeather.d.ts new file mode 100644 index 00000000..89b1524c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFeather.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemFeather extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFireCharge.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFireCharge.d.ts new file mode 100644 index 00000000..967019e8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFireCharge.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemFireCharge extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType.d.ts new file mode 100644 index 00000000..60816329 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace ItemFirework { + namespace FireworkExplosion { + // @ts-ignore + class ExplosionType extends java.lang.Enum { + // @ts-ignore + public static SMALL_BALL: cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType; + // @ts-ignore + public static LARGE_BALL: cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType; + // @ts-ignore + public static STAR_SHAPED: cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType; + // @ts-ignore + public static CREEPER_SHAPED: cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType; + // @ts-ignore + public static BURST: cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType; + // @ts-ignore + public static values(): cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.FireworkExplosion.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.FireworkExplosion.d.ts new file mode 100644 index 00000000..ca666adc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.FireworkExplosion.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace ItemFirework { + // @ts-ignore + class FireworkExplosion extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public getColors(): java.util.List; + // @ts-ignore + public getFades(): java.util.List; + // @ts-ignore + public hasFlicker(): boolean; + // @ts-ignore + public hasTrail(): boolean; + // @ts-ignore + public getType(): cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType; + // @ts-ignore + public setFlicker(flicker: boolean): cn.nukkit.item.ItemFirework.FireworkExplosion; + // @ts-ignore + public setTrail(trail: boolean): cn.nukkit.item.ItemFirework.FireworkExplosion; + // @ts-ignore + public type(type: cn.nukkit.item.ItemFirework.FireworkExplosion.ExplosionType): cn.nukkit.item.ItemFirework.FireworkExplosion; + // @ts-ignore + public addColor(color: cn.nukkit.utils.DyeColor): cn.nukkit.item.ItemFirework.FireworkExplosion; + // @ts-ignore + public addFade(fade: cn.nukkit.utils.DyeColor): cn.nukkit.item.ItemFirework.FireworkExplosion; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.d.ts new file mode 100644 index 00000000..c94eae94 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFirework.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemFirework extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public addExplosion(explosion: cn.nukkit.item.ItemFirework.FireworkExplosion): void; + // @ts-ignore + public clearExplosions(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFish.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFish.d.ts new file mode 100644 index 00000000..a1b9490e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFish.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemFish extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number, name: string) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFishCooked.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFishCooked.d.ts new file mode 100644 index 00000000..cd024673 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFishCooked.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemFishCooked extends cn.nukkit.item.ItemFish { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFishingRod.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFishingRod.d.ts new file mode 100644 index 00000000..1073ee57 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFishingRod.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemFishingRod extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getEnchantAbility(): number; + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlint.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlint.d.ts new file mode 100644 index 00000000..ad7c77d2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlint.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemFlint extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlintSteel.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlintSteel.d.ts new file mode 100644 index 00000000..04607177 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlintSteel.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemFlintSteel extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlowerPot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlowerPot.d.ts new file mode 100644 index 00000000..bef67f9e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemFlowerPot.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemFlowerPot extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGhastTear.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGhastTear.d.ts new file mode 100644 index 00000000..6aa984c1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGhastTear.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemGhastTear extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGlassBottle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGlassBottle.d.ts new file mode 100644 index 00000000..1ce00319 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGlassBottle.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemGlassBottle extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGlowstoneDust.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGlowstoneDust.d.ts new file mode 100644 index 00000000..88c56dda --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGlowstoneDust.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemGlowstoneDust extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGunpowder.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGunpowder.d.ts new file mode 100644 index 00000000..f8d20bbf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemGunpowder.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemGunpowder extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetChain.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetChain.d.ts new file mode 100644 index 00000000..fcbb4f96 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetChain.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHelmetChain extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isHelmet(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetDiamond.d.ts new file mode 100644 index 00000000..d6c556f3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetDiamond.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHelmetDiamond extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isHelmet(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public getToughness(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetGold.d.ts new file mode 100644 index 00000000..4ce42671 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetGold.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHelmetGold extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isHelmet(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetIron.d.ts new file mode 100644 index 00000000..bbaa1ab1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetIron.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHelmetIron extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isHelmet(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetLeather.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetLeather.d.ts new file mode 100644 index 00000000..539aee03 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHelmetLeather.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHelmetLeather extends cn.nukkit.item.ItemColorArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isHelmet(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeDiamond.d.ts new file mode 100644 index 00000000..4ef9698d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeDiamond.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHoeDiamond extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isHoe(): boolean; + // @ts-ignore + public getTier(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeGold.d.ts new file mode 100644 index 00000000..7cce3672 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeGold.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHoeGold extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isHoe(): boolean; + // @ts-ignore + public getTier(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeIron.d.ts new file mode 100644 index 00000000..224072ab --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeIron.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHoeIron extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isHoe(): boolean; + // @ts-ignore + public getTier(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeStone.d.ts new file mode 100644 index 00000000..9c702711 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeStone.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHoeStone extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isHoe(): boolean; + // @ts-ignore + public getTier(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeWood.d.ts new file mode 100644 index 00000000..6734c9de --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHoeWood.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHoeWood extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isHoe(): boolean; + // @ts-ignore + public getTier(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHopper.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHopper.d.ts new file mode 100644 index 00000000..96d1b1fa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHopper.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHopper extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorDiamond.d.ts new file mode 100644 index 00000000..1bc551a3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorDiamond.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHorseArmorDiamond extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorGold.d.ts new file mode 100644 index 00000000..7f74b5ad --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorGold.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHorseArmorGold extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorIron.d.ts new file mode 100644 index 00000000..31a82624 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorIron.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHorseArmorIron extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorLeather.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorLeather.d.ts new file mode 100644 index 00000000..43f01da9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemHorseArmorLeather.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemHorseArmorLeather extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemID.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemID.d.ts new file mode 100644 index 00000000..d622f371 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemID.d.ts @@ -0,0 +1,479 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + interface ItemID { + // @ts-ignore + IRON_SHOVEL: number; + // @ts-ignore + IRON_PICKAXE: number; + // @ts-ignore + IRON_AXE: number; + // @ts-ignore + FLINT_STEEL: number; + // @ts-ignore + FLINT_AND_STEEL: number; + // @ts-ignore + APPLE: number; + // @ts-ignore + BOW: number; + // @ts-ignore + ARROW: number; + // @ts-ignore + COAL: number; + // @ts-ignore + DIAMOND: number; + // @ts-ignore + IRON_INGOT: number; + // @ts-ignore + GOLD_INGOT: number; + // @ts-ignore + IRON_SWORD: number; + // @ts-ignore + WOODEN_SWORD: number; + // @ts-ignore + WOODEN_SHOVEL: number; + // @ts-ignore + WOODEN_PICKAXE: number; + // @ts-ignore + WOODEN_AXE: number; + // @ts-ignore + STONE_SWORD: number; + // @ts-ignore + STONE_SHOVEL: number; + // @ts-ignore + STONE_PICKAXE: number; + // @ts-ignore + STONE_AXE: number; + // @ts-ignore + DIAMOND_SWORD: number; + // @ts-ignore + DIAMOND_SHOVEL: number; + // @ts-ignore + DIAMOND_PICKAXE: number; + // @ts-ignore + DIAMOND_AXE: number; + // @ts-ignore + STICK: number; + // @ts-ignore + STICKS: number; + // @ts-ignore + BOWL: number; + // @ts-ignore + MUSHROOM_STEW: number; + // @ts-ignore + GOLD_SWORD: number; + // @ts-ignore + GOLDEN_SWORD: number; + // @ts-ignore + GOLD_SHOVEL: number; + // @ts-ignore + GOLDEN_SHOVEL: number; + // @ts-ignore + GOLD_PICKAXE: number; + // @ts-ignore + GOLDEN_PICKAXE: number; + // @ts-ignore + GOLD_AXE: number; + // @ts-ignore + GOLDEN_AXE: number; + // @ts-ignore + STRING: number; + // @ts-ignore + FEATHER: number; + // @ts-ignore + GUNPOWDER: number; + // @ts-ignore + WOODEN_HOE: number; + // @ts-ignore + STONE_HOE: number; + // @ts-ignore + IRON_HOE: number; + // @ts-ignore + DIAMOND_HOE: number; + // @ts-ignore + GOLD_HOE: number; + // @ts-ignore + GOLDEN_HOE: number; + // @ts-ignore + SEEDS: number; + // @ts-ignore + WHEAT_SEEDS: number; + // @ts-ignore + WHEAT: number; + // @ts-ignore + BREAD: number; + // @ts-ignore + LEATHER_CAP: number; + // @ts-ignore + LEATHER_TUNIC: number; + // @ts-ignore + LEATHER_PANTS: number; + // @ts-ignore + LEATHER_BOOTS: number; + // @ts-ignore + CHAIN_HELMET: number; + // @ts-ignore + CHAIN_CHESTPLATE: number; + // @ts-ignore + CHAIN_LEGGINGS: number; + // @ts-ignore + CHAIN_BOOTS: number; + // @ts-ignore + IRON_HELMET: number; + // @ts-ignore + IRON_CHESTPLATE: number; + // @ts-ignore + IRON_LEGGINGS: number; + // @ts-ignore + IRON_BOOTS: number; + // @ts-ignore + DIAMOND_HELMET: number; + // @ts-ignore + DIAMOND_CHESTPLATE: number; + // @ts-ignore + DIAMOND_LEGGINGS: number; + // @ts-ignore + DIAMOND_BOOTS: number; + // @ts-ignore + GOLD_HELMET: number; + // @ts-ignore + GOLD_CHESTPLATE: number; + // @ts-ignore + GOLD_LEGGINGS: number; + // @ts-ignore + GOLD_BOOTS: number; + // @ts-ignore + FLINT: number; + // @ts-ignore + RAW_PORKCHOP: number; + // @ts-ignore + COOKED_PORKCHOP: number; + // @ts-ignore + PAINTING: number; + // @ts-ignore + GOLDEN_APPLE: number; + // @ts-ignore + SIGN: number; + // @ts-ignore + WOODEN_DOOR: number; + // @ts-ignore + BUCKET: number; + // @ts-ignore + MINECART: number; + // @ts-ignore + SADDLE: number; + // @ts-ignore + IRON_DOOR: number; + // @ts-ignore + REDSTONE: number; + // @ts-ignore + REDSTONE_DUST: number; + // @ts-ignore + SNOWBALL: number; + // @ts-ignore + BOAT: number; + // @ts-ignore + LEATHER: number; + // @ts-ignore + KELP: number; + // @ts-ignore + BRICK: number; + // @ts-ignore + CLAY: number; + // @ts-ignore + SUGARCANE: number; + // @ts-ignore + SUGAR_CANE: number; + // @ts-ignore + SUGAR_CANES: number; + // @ts-ignore + PAPER: number; + // @ts-ignore + BOOK: number; + // @ts-ignore + SLIMEBALL: number; + // @ts-ignore + MINECART_WITH_CHEST: number; + // @ts-ignore + EGG: number; + // @ts-ignore + COMPASS: number; + // @ts-ignore + FISHING_ROD: number; + // @ts-ignore + CLOCK: number; + // @ts-ignore + GLOWSTONE_DUST: number; + // @ts-ignore + RAW_FISH: number; + // @ts-ignore + COOKED_FISH: number; + // @ts-ignore + DYE: number; + // @ts-ignore + BONE: number; + // @ts-ignore + SUGAR: number; + // @ts-ignore + CAKE: number; + // @ts-ignore + BED: number; + // @ts-ignore + REPEATER: number; + // @ts-ignore + COOKIE: number; + // @ts-ignore + MAP: number; + // @ts-ignore + SHEARS: number; + // @ts-ignore + MELON: number; + // @ts-ignore + MELON_SLICE: number; + // @ts-ignore + PUMPKIN_SEEDS: number; + // @ts-ignore + MELON_SEEDS: number; + // @ts-ignore + RAW_BEEF: number; + // @ts-ignore + STEAK: number; + // @ts-ignore + COOKED_BEEF: number; + // @ts-ignore + RAW_CHICKEN: number; + // @ts-ignore + COOKED_CHICKEN: number; + // @ts-ignore + ROTTEN_FLESH: number; + // @ts-ignore + ENDER_PEARL: number; + // @ts-ignore + BLAZE_ROD: number; + // @ts-ignore + GHAST_TEAR: number; + // @ts-ignore + GOLD_NUGGET: number; + // @ts-ignore + GOLDEN_NUGGET: number; + // @ts-ignore + NETHER_WART: number; + // @ts-ignore + POTION: number; + // @ts-ignore + GLASS_BOTTLE: number; + // @ts-ignore + BOTTLE: number; + // @ts-ignore + SPIDER_EYE: number; + // @ts-ignore + FERMENTED_SPIDER_EYE: number; + // @ts-ignore + BLAZE_POWDER: number; + // @ts-ignore + MAGMA_CREAM: number; + // @ts-ignore + BREWING_STAND: number; + // @ts-ignore + BREWING: number; + // @ts-ignore + CAULDRON: number; + // @ts-ignore + ENDER_EYE: number; + // @ts-ignore + GLISTERING_MELON: number; + // @ts-ignore + SPAWN_EGG: number; + // @ts-ignore + EXPERIENCE_BOTTLE: number; + // @ts-ignore + FIRE_CHARGE: number; + // @ts-ignore + BOOK_AND_QUILL: number; + // @ts-ignore + WRITTEN_BOOK: number; + // @ts-ignore + EMERALD: number; + // @ts-ignore + ITEM_FRAME: number; + // @ts-ignore + FLOWER_POT: number; + // @ts-ignore + CARROT: number; + // @ts-ignore + CARROTS: number; + // @ts-ignore + POTATO: number; + // @ts-ignore + POTATOES: number; + // @ts-ignore + BAKED_POTATO: number; + // @ts-ignore + BAKED_POTATOES: number; + // @ts-ignore + POISONOUS_POTATO: number; + // @ts-ignore + EMPTY_MAP: number; + // @ts-ignore + GOLDEN_CARROT: number; + // @ts-ignore + SKULL: number; + // @ts-ignore + CARROT_ON_A_STICK: number; + // @ts-ignore + NETHER_STAR: number; + // @ts-ignore + PUMPKIN_PIE: number; + // @ts-ignore + FIREWORKS: number; + // @ts-ignore + FIREWORKSCHARGE: number; + // @ts-ignore + ENCHANTED_BOOK: number; + // @ts-ignore + ENCHANT_BOOK: number; + // @ts-ignore + COMPARATOR: number; + // @ts-ignore + NETHER_BRICK: number; + // @ts-ignore + QUARTZ: number; + // @ts-ignore + NETHER_QUARTZ: number; + // @ts-ignore + MINECART_WITH_TNT: number; + // @ts-ignore + MINECART_WITH_HOPPER: number; + // @ts-ignore + PRISMARINE_SHARD: number; + // @ts-ignore + HOPPER: number; + // @ts-ignore + RAW_RABBIT: number; + // @ts-ignore + COOKED_RABBIT: number; + // @ts-ignore + RABBIT_STEW: number; + // @ts-ignore + RABBIT_FOOT: number; + // @ts-ignore + RABBIT_HIDE: number; + // @ts-ignore + LEATHER_HORSE_ARMOR: number; + // @ts-ignore + IRON_HORSE_ARMOR: number; + // @ts-ignore + GOLD_HORSE_ARMOR: number; + // @ts-ignore + DIAMOND_HORSE_ARMOR: number; + // @ts-ignore + LEAD: number; + // @ts-ignore + NAME_TAG: number; + // @ts-ignore + PRISMARINE_CRYSTALS: number; + // @ts-ignore + RAW_MUTTON: number; + // @ts-ignore + COOKED_MUTTON: number; + // @ts-ignore + ARMOR_STAND: number; + // @ts-ignore + END_CRYSTAL: number; + // @ts-ignore + SPRUCE_DOOR: number; + // @ts-ignore + BIRCH_DOOR: number; + // @ts-ignore + JUNGLE_DOOR: number; + // @ts-ignore + ACACIA_DOOR: number; + // @ts-ignore + DARK_OAK_DOOR: number; + // @ts-ignore + CHORUS_FRUIT: number; + // @ts-ignore + POPPED_CHORUS_FRUIT: number; + // @ts-ignore + DRAGON_BREATH: number; + // @ts-ignore + SPLASH_POTION: number; + // @ts-ignore + LINGERING_POTION: number; + // @ts-ignore + COMMAND_BLOCK_MINECART: number; + // @ts-ignore + ELYTRA: number; + // @ts-ignore + SHULKER_SHELL: number; + // @ts-ignore + BANNER: number; + // @ts-ignore + TOTEM: number; + // @ts-ignore + IRON_NUGGET: number; + // @ts-ignore + TRIDENT: number; + // @ts-ignore + BEETROOT: number; + // @ts-ignore + BEETROOT_SEEDS: number; + // @ts-ignore + BEETROOT_SEED: number; + // @ts-ignore + BEETROOT_SOUP: number; + // @ts-ignore + RAW_SALMON: number; + // @ts-ignore + CLOWNFISH: number; + // @ts-ignore + PUFFERFISH: number; + // @ts-ignore + COOKED_SALMON: number; + // @ts-ignore + DRIED_KELP: number; + // @ts-ignore + NAUTILUS_SHELL: number; + // @ts-ignore + GOLDEN_APPLE_ENCHANTED: number; + // @ts-ignore + HEART_OF_THE_SEA: number; + // @ts-ignore + SCUTE: number; + // @ts-ignore + TURTLE_SHELL: number; + // @ts-ignore + PHANTOM_MEMBRANE: number; + // @ts-ignore + SWEET_BERRIES: number; + // @ts-ignore + RECORD_13: number; + // @ts-ignore + RECORD_CAT: number; + // @ts-ignore + RECORD_BLOCKS: number; + // @ts-ignore + RECORD_CHIRP: number; + // @ts-ignore + RECORD_FAR: number; + // @ts-ignore + RECORD_MALL: number; + // @ts-ignore + RECORD_MELLOHI: number; + // @ts-ignore + RECORD_STAL: number; + // @ts-ignore + RECORD_STRAD: number; + // @ts-ignore + RECORD_WARD: number; + // @ts-ignore + RECORD_11: number; + // @ts-ignore + RECORD_WAIT: number; + // @ts-ignore + SHIELD: number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemIngotGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemIngotGold.d.ts new file mode 100644 index 00000000..4c363c32 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemIngotGold.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemIngotGold extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemIngotIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemIngotIron.d.ts new file mode 100644 index 00000000..c3a0ff69 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemIngotIron.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemIngotIron extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemItemFrame.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemItemFrame.d.ts new file mode 100644 index 00000000..207dd404 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemItemFrame.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemItemFrame extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeather.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeather.d.ts new file mode 100644 index 00000000..7f29e8ae --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeather.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemLeather extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsChain.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsChain.d.ts new file mode 100644 index 00000000..45bd7f4e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsChain.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemLeggingsChain extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isLeggings(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsDiamond.d.ts new file mode 100644 index 00000000..590158b4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsDiamond.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemLeggingsDiamond extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public isLeggings(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public getToughness(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsGold.d.ts new file mode 100644 index 00000000..188ef9e8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsGold.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemLeggingsGold extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isLeggings(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsIron.d.ts new file mode 100644 index 00000000..ccbb02ce --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsIron.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemLeggingsIron extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isLeggings(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsLeather.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsLeather.d.ts new file mode 100644 index 00000000..658f4563 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemLeggingsLeather.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemLeggingsLeather extends cn.nukkit.item.ItemColorArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isLeggings(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMagmaCream.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMagmaCream.d.ts new file mode 100644 index 00000000..1d6940e4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMagmaCream.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMagmaCream extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMap.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMap.d.ts new file mode 100644 index 00000000..5b6a357a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMap.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMap extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public static mapCount: number; + // @ts-ignore + public setImage(file: java.io.File): void; + // @ts-ignore + public setImage(image: java.awt.image.BufferedImage): void; + // @ts-ignore + protected loadImageFromNBT(): java.awt.image.BufferedImage; + // @ts-ignore + public getMapId(): number; + // @ts-ignore + public sendImage(p: cn.nukkit.Player): void; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMelon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMelon.d.ts new file mode 100644 index 00000000..7eb46928 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMelon.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMelon extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMelonGlistering.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMelonGlistering.d.ts new file mode 100644 index 00000000..fd6bdf5c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMelonGlistering.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMelonGlistering extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecart.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecart.d.ts new file mode 100644 index 00000000..8e10492a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecart.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMinecart extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartChest.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartChest.d.ts new file mode 100644 index 00000000..0c68354d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartChest.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMinecartChest extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartHopper.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartHopper.d.ts new file mode 100644 index 00000000..1d36ce05 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartHopper.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMinecartHopper extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartTNT.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartTNT.d.ts new file mode 100644 index 00000000..7b4f9a91 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMinecartTNT.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMinecartTNT extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMushroomStew.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMushroomStew.d.ts new file mode 100644 index 00000000..6e7630ea --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMushroomStew.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMushroomStew extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMuttonCooked.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMuttonCooked.d.ts new file mode 100644 index 00000000..0127d14c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMuttonCooked.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMuttonCooked extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMuttonRaw.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMuttonRaw.d.ts new file mode 100644 index 00000000..d77f7ed4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemMuttonRaw.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemMuttonRaw extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherBrick.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherBrick.d.ts new file mode 100644 index 00000000..05f2097f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherBrick.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemNetherBrick extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherStar.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherStar.d.ts new file mode 100644 index 00000000..b832606b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherStar.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemNetherStar extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherWart.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherWart.d.ts new file mode 100644 index 00000000..c8d6cc1b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNetherWart.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemNetherWart extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNuggetGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNuggetGold.d.ts new file mode 100644 index 00000000..c4d545bf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemNuggetGold.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemNuggetGold extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPainting.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPainting.d.ts new file mode 100644 index 00000000..995ad115 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPainting.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPainting extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPaper.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPaper.d.ts new file mode 100644 index 00000000..95a581dd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPaper.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPaper extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeDiamond.d.ts new file mode 100644 index 00000000..397111e6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeDiamond.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPickaxeDiamond extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isPickaxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeGold.d.ts new file mode 100644 index 00000000..1bd372b0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeGold.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPickaxeGold extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isPickaxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeIron.d.ts new file mode 100644 index 00000000..fdb9751b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeIron.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPickaxeIron extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isPickaxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeStone.d.ts new file mode 100644 index 00000000..b7555d2e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeStone.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPickaxeStone extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isPickaxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeWood.d.ts new file mode 100644 index 00000000..2a2b714f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPickaxeWood.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPickaxeWood extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isPickaxe(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPorkchopCooked.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPorkchopCooked.d.ts new file mode 100644 index 00000000..85a629a9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPorkchopCooked.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPorkchopCooked extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPorkchopRaw.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPorkchopRaw.d.ts new file mode 100644 index 00000000..c9eda09a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPorkchopRaw.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPorkchopRaw extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotato.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotato.d.ts new file mode 100644 index 00000000..c3d54be6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotato.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPotato extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number, name: string) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotatoBaked.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotatoBaked.d.ts new file mode 100644 index 00000000..423157f6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotatoBaked.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPotatoBaked extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotatoPoisonous.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotatoPoisonous.d.ts new file mode 100644 index 00000000..c8368561 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotatoPoisonous.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPotatoPoisonous extends cn.nukkit.item.ItemPotato { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotion.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotion.d.ts new file mode 100644 index 00000000..7a82a9aa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotion.d.ts @@ -0,0 +1,95 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPotion extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public static NO_EFFECTS: number; + // @ts-ignore + public static MUNDANE: number; + // @ts-ignore + public static MUNDANE_II: number; + // @ts-ignore + public static THICK: number; + // @ts-ignore + public static AWKWARD: number; + // @ts-ignore + public static NIGHT_VISION: number; + // @ts-ignore + public static NIGHT_VISION_LONG: number; + // @ts-ignore + public static INVISIBLE: number; + // @ts-ignore + public static INVISIBLE_LONG: number; + // @ts-ignore + public static LEAPING: number; + // @ts-ignore + public static LEAPING_LONG: number; + // @ts-ignore + public static LEAPING_II: number; + // @ts-ignore + public static FIRE_RESISTANCE: number; + // @ts-ignore + public static FIRE_RESISTANCE_LONG: number; + // @ts-ignore + public static SPEED: number; + // @ts-ignore + public static SPEED_LONG: number; + // @ts-ignore + public static SPEED_II: number; + // @ts-ignore + public static SLOWNESS: number; + // @ts-ignore + public static SLOWNESS_LONG: number; + // @ts-ignore + public static WATER_BREATHING: number; + // @ts-ignore + public static WATER_BREATHING_LONG: number; + // @ts-ignore + public static INSTANT_HEALTH: number; + // @ts-ignore + public static INSTANT_HEALTH_II: number; + // @ts-ignore + public static HARMING: number; + // @ts-ignore + public static HARMING_II: number; + // @ts-ignore + public static POISON: number; + // @ts-ignore + public static POISON_LONG: number; + // @ts-ignore + public static POISON_II: number; + // @ts-ignore + public static REGENERATION: number; + // @ts-ignore + public static REGENERATION_LONG: number; + // @ts-ignore + public static REGENERATION_II: number; + // @ts-ignore + public static STRENGTH: number; + // @ts-ignore + public static STRENGTH_LONG: number; + // @ts-ignore + public static STRENGTH_II: number; + // @ts-ignore + public static WEAKNESS: number; + // @ts-ignore + public static WEAKNESS_LONG: number; + // @ts-ignore + public static DECAY: number; + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public onUse(player: cn.nukkit.Player, ticksUsed: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotionLingering.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotionLingering.d.ts new file mode 100644 index 00000000..fd477eb0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotionLingering.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPotionLingering extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotionSplash.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotionSplash.d.ts new file mode 100644 index 00000000..b5f441ad --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPotionSplash.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPotionSplash extends cn.nukkit.item.ProjectileItem { + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public getProjectileEntityType(): string; + // @ts-ignore + public getThrowForce(): number; + // @ts-ignore + protected correctNBT(nbt: cn.nukkit.nbt.tag.CompoundTag): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPrismarineCrystals.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPrismarineCrystals.d.ts new file mode 100644 index 00000000..abfb0e22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPrismarineCrystals.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPrismarineCrystals extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPrismarineShard.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPrismarineShard.d.ts new file mode 100644 index 00000000..200ab8b9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPrismarineShard.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPrismarineShard extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPufferfish.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPufferfish.d.ts new file mode 100644 index 00000000..fb612b46 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPufferfish.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPufferfish extends cn.nukkit.item.ItemFish { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPumpkinPie.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPumpkinPie.d.ts new file mode 100644 index 00000000..e0874a21 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemPumpkinPie.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemPumpkinPie extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemQuartz.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemQuartz.d.ts new file mode 100644 index 00000000..5a5293a6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemQuartz.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemQuartz extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitCooked.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitCooked.d.ts new file mode 100644 index 00000000..429b6502 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitCooked.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRabbitCooked extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitFoot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitFoot.d.ts new file mode 100644 index 00000000..c7241f00 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitFoot.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRabbitFoot extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitRaw.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitRaw.d.ts new file mode 100644 index 00000000..d332759c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitRaw.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRabbitRaw extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitStew.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitStew.d.ts new file mode 100644 index 00000000..e68ab1ce --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRabbitStew.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRabbitStew extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord.d.ts new file mode 100644 index 00000000..37695c22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + abstract class ItemRecord extends cn.nukkit.item.Item { + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public abstract getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord11.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord11.d.ts new file mode 100644 index 00000000..2ab3c495 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord11.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecord11 extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord13.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord13.d.ts new file mode 100644 index 00000000..333a1c0d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecord13.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecord13 extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordBlocks.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordBlocks.d.ts new file mode 100644 index 00000000..ce98dcc2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordBlocks.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordBlocks extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordCat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordCat.d.ts new file mode 100644 index 00000000..b50323ec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordCat.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordCat extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordChirp.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordChirp.d.ts new file mode 100644 index 00000000..5807cba5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordChirp.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordChirp extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordFar.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordFar.d.ts new file mode 100644 index 00000000..c81eec1e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordFar.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordFar extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordMall.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordMall.d.ts new file mode 100644 index 00000000..9ab040ba --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordMall.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordMall extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordMellohi.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordMellohi.d.ts new file mode 100644 index 00000000..59d2e1e4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordMellohi.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordMellohi extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordStal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordStal.d.ts new file mode 100644 index 00000000..3e6b1822 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordStal.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordStal extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordStrad.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordStrad.d.ts new file mode 100644 index 00000000..999d9ab3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordStrad.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordStrad extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordWait.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordWait.d.ts new file mode 100644 index 00000000..84d3ded8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordWait.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordWait extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordWard.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordWard.d.ts new file mode 100644 index 00000000..2f043a42 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRecordWard.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRecordWard extends cn.nukkit.item.ItemRecord { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getSoundId(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstone.d.ts new file mode 100644 index 00000000..5db15e19 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstone.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRedstone extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstoneComparator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstoneComparator.d.ts new file mode 100644 index 00000000..975107b9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstoneComparator.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRedstoneComparator extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstoneRepeater.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstoneRepeater.d.ts new file mode 100644 index 00000000..aeb3dfba --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRedstoneRepeater.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRedstoneRepeater extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRottenFlesh.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRottenFlesh.d.ts new file mode 100644 index 00000000..230cf408 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemRottenFlesh.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemRottenFlesh extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSaddle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSaddle.d.ts new file mode 100644 index 00000000..f4fbf0d4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSaddle.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSaddle extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSalmon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSalmon.d.ts new file mode 100644 index 00000000..37816bf1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSalmon.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSalmon extends cn.nukkit.item.ItemFish { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSalmonCooked.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSalmonCooked.d.ts new file mode 100644 index 00000000..fecafaf7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSalmonCooked.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSalmonCooked extends cn.nukkit.item.ItemFish { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsBeetroot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsBeetroot.d.ts new file mode 100644 index 00000000..6bd0ccbb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsBeetroot.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSeedsBeetroot extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsMelon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsMelon.d.ts new file mode 100644 index 00000000..097ad64c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsMelon.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSeedsMelon extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsPumpkin.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsPumpkin.d.ts new file mode 100644 index 00000000..dd050161 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsPumpkin.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSeedsPumpkin extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsWheat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsWheat.d.ts new file mode 100644 index 00000000..7647a0d4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSeedsWheat.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSeedsWheat extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShears.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShears.d.ts new file mode 100644 index 00000000..434cde76 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShears.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemShears extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isShears(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShield.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShield.d.ts new file mode 100644 index 00000000..c638faff --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShield.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemShield extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelDiamond.d.ts new file mode 100644 index 00000000..16300139 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelDiamond.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemShovelDiamond extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isShovel(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelGold.d.ts new file mode 100644 index 00000000..656d1547 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelGold.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemShovelGold extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isShovel(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelIron.d.ts new file mode 100644 index 00000000..183f9bd3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelIron.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemShovelIron extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isShovel(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelStone.d.ts new file mode 100644 index 00000000..3f5d37c1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelStone.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemShovelStone extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isShovel(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelWood.d.ts new file mode 100644 index 00000000..2bf9c823 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemShovelWood.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemShovelWood extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isShovel(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSign.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSign.d.ts new file mode 100644 index 00000000..4417f7f9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSign.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSign extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSkull.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSkull.d.ts new file mode 100644 index 00000000..421828d4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSkull.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSkull extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public static SKELETON_SKULL: number; + // @ts-ignore + public static WITHER_SKELETON_SKULL: number; + // @ts-ignore + public static ZOMBIE_HEAD: number; + // @ts-ignore + public static HEAD: number; + // @ts-ignore + public static CREEPER_HEAD: number; + // @ts-ignore + public static DRAGON_HEAD: number; + // @ts-ignore + public static getItemSkullName(meta: number): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSlimeball.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSlimeball.d.ts new file mode 100644 index 00000000..4f6869f2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSlimeball.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSlimeball extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSnowball.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSnowball.d.ts new file mode 100644 index 00000000..85bc3616 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSnowball.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSnowball extends cn.nukkit.item.ProjectileItem { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public getProjectileEntityType(): string; + // @ts-ignore + public getThrowForce(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpawnEgg.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpawnEgg.d.ts new file mode 100644 index 00000000..78024c23 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpawnEgg.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSpawnEgg extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public canBeActivated(): boolean; + // @ts-ignore + public onActivate(level: cn.nukkit.level.Level, player: cn.nukkit.Player, block: cn.nukkit.block.Block, target: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpiderEye.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpiderEye.d.ts new file mode 100644 index 00000000..124b7d04 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpiderEye.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSpiderEye extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpiderEyeFermented.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpiderEyeFermented.d.ts new file mode 100644 index 00000000..b29f8c85 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSpiderEyeFermented.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSpiderEyeFermented extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSteak.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSteak.d.ts new file mode 100644 index 00000000..cad85faf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSteak.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSteak extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemStick.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemStick.d.ts new file mode 100644 index 00000000..16ee9155 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemStick.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemStick extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemString.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemString.d.ts new file mode 100644 index 00000000..9566aa6d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemString.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemString extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSugar.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSugar.d.ts new file mode 100644 index 00000000..5166e560 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSugar.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSugar extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSugarcane.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSugarcane.d.ts new file mode 100644 index 00000000..99a9edb7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSugarcane.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSugarcane extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSweetBerries.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSweetBerries.d.ts new file mode 100644 index 00000000..9d356365 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSweetBerries.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSweetBerries extends cn.nukkit.item.ItemEdible { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordDiamond.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordDiamond.d.ts new file mode 100644 index 00000000..e498311c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordDiamond.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSwordDiamond extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isSword(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordGold.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordGold.d.ts new file mode 100644 index 00000000..10693376 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordGold.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSwordGold extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isSword(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordIron.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordIron.d.ts new file mode 100644 index 00000000..a91ec6ec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordIron.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSwordIron extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isSword(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordStone.d.ts new file mode 100644 index 00000000..18b19f7e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordStone.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSwordStone extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isSword(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordWood.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordWood.d.ts new file mode 100644 index 00000000..ee50b409 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemSwordWood.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemSwordWood extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isSword(): boolean; + // @ts-ignore + public getTier(): number; + // @ts-ignore + public getAttackDamage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTool.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTool.d.ts new file mode 100644 index 00000000..e770249b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTool.d.ts @@ -0,0 +1,83 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + abstract class ItemTool extends cn.nukkit.item.Item implements cn.nukkit.item.ItemDurable { + // @ts-ignore + constructor(id: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number, name: string) + // @ts-ignore + public static TIER_WOODEN: number; + // @ts-ignore + public static TIER_GOLD: number; + // @ts-ignore + public static TIER_STONE: number; + // @ts-ignore + public static TIER_IRON: number; + // @ts-ignore + public static TIER_DIAMOND: number; + // @ts-ignore + public static TYPE_NONE: number; + // @ts-ignore + public static TYPE_SWORD: number; + // @ts-ignore + public static TYPE_SHOVEL: number; + // @ts-ignore + public static TYPE_PICKAXE: number; + // @ts-ignore + public static TYPE_AXE: number; + // @ts-ignore + public static TYPE_SHEARS: number; + // @ts-ignore + public static DURABILITY_WOODEN: number; + // @ts-ignore + public static DURABILITY_GOLD: number; + // @ts-ignore + public static DURABILITY_STONE: number; + // @ts-ignore + public static DURABILITY_IRON: number; + // @ts-ignore + public static DURABILITY_DIAMOND: number; + // @ts-ignore + public static DURABILITY_FLINT_STEEL: number; + // @ts-ignore + public static DURABILITY_SHEARS: number; + // @ts-ignore + public static DURABILITY_BOW: number; + // @ts-ignore + public static DURABILITY_TRIDENT: number; + // @ts-ignore + public static DURABILITY_FISHING_ROD: number; + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public useOn(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public useOn(entity: cn.nukkit.entity.Entity): boolean; + // @ts-ignore + public isUnbreakable(): boolean; + // @ts-ignore + public isPickaxe(): boolean; + // @ts-ignore + public isAxe(): boolean; + // @ts-ignore + public isSword(): boolean; + // @ts-ignore + public isShovel(): boolean; + // @ts-ignore + public isHoe(): boolean; + // @ts-ignore + public isShears(): boolean; + // @ts-ignore + public isTool(): boolean; + // @ts-ignore + public getEnchantAbility(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTotem.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTotem.d.ts new file mode 100644 index 00000000..59f33566 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTotem.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemTotem extends cn.nukkit.item.Item { + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxStackSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTrident.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTrident.d.ts new file mode 100644 index 00000000..e1c09d36 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTrident.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemTrident extends cn.nukkit.item.ItemTool { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public isSword(): boolean; + // @ts-ignore + public getAttackDamage(): number; + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public onRelease(player: cn.nukkit.Player, ticksUsed: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTurtleShell.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTurtleShell.d.ts new file mode 100644 index 00000000..de20363d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemTurtleShell.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemTurtleShell extends cn.nukkit.item.ItemArmor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + // @ts-ignore + public getTier(): number; + // @ts-ignore + public isHelmet(): boolean; + // @ts-ignore + public getArmorPoints(): number; + // @ts-ignore + public getMaxDurability(): number; + // @ts-ignore + public getToughness(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemWheat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemWheat.d.ts new file mode 100644 index 00000000..1bc24c05 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ItemWheat.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + class ItemWheat extends cn.nukkit.item.Item { + // @ts-ignore + constructor() + // @ts-ignore + constructor(meta: java.lang.Integer) + // @ts-ignore + constructor(meta: java.lang.Integer, count: number) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.ProjectileItem.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.ProjectileItem.d.ts new file mode 100644 index 00000000..5d089be5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.ProjectileItem.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + // @ts-ignore + abstract class ProjectileItem extends cn.nukkit.item.Item { + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number, name: string) + // @ts-ignore + public abstract getProjectileEntityType(): string; + // @ts-ignore + public abstract getThrowForce(): number; + // @ts-ignore + public onClickAir(player: cn.nukkit.Player, directionVector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + protected correctNBT(nbt: cn.nukkit.nbt.tag.CompoundTag): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.Enchantment.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.Enchantment.d.ts new file mode 100644 index 00000000..417bda3c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.Enchantment.d.ts @@ -0,0 +1,139 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + abstract class Enchantment extends java.lang.Object { + // @ts-ignore + constructor(id: number, name: string, weight: number, type: cn.nukkit.item.enchantment.EnchantmentType) + // @ts-ignore + protected static enchantments: cn.nukkit.item.enchantment.Enchantment[]; + // @ts-ignore + public static ID_PROTECTION_ALL: number; + // @ts-ignore + public static ID_PROTECTION_FIRE: number; + // @ts-ignore + public static ID_PROTECTION_FALL: number; + // @ts-ignore + public static ID_PROTECTION_EXPLOSION: number; + // @ts-ignore + public static ID_PROTECTION_PROJECTILE: number; + // @ts-ignore + public static ID_THORNS: number; + // @ts-ignore + public static ID_WATER_BREATHING: number; + // @ts-ignore + public static ID_WATER_WALKER: number; + // @ts-ignore + public static ID_WATER_WORKER: number; + // @ts-ignore + public static ID_DAMAGE_ALL: number; + // @ts-ignore + public static ID_DAMAGE_SMITE: number; + // @ts-ignore + public static ID_DAMAGE_ARTHROPODS: number; + // @ts-ignore + public static ID_KNOCKBACK: number; + // @ts-ignore + public static ID_FIRE_ASPECT: number; + // @ts-ignore + public static ID_LOOTING: number; + // @ts-ignore + public static ID_EFFICIENCY: number; + // @ts-ignore + public static ID_SILK_TOUCH: number; + // @ts-ignore + public static ID_DURABILITY: number; + // @ts-ignore + public static ID_FORTUNE_DIGGING: number; + // @ts-ignore + public static ID_BOW_POWER: number; + // @ts-ignore + public static ID_BOW_KNOCKBACK: number; + // @ts-ignore + public static ID_BOW_FLAME: number; + // @ts-ignore + public static ID_BOW_INFINITY: number; + // @ts-ignore + public static ID_FORTUNE_FISHING: number; + // @ts-ignore + public static ID_LURE: number; + // @ts-ignore + public static ID_FROST_WALKER: number; + // @ts-ignore + public static ID_MENDING: number; + // @ts-ignore + public static ID_BINDING_CURSE: number; + // @ts-ignore + public static ID_VANISHING_CURSE: number; + // @ts-ignore + public static ID_TRIDENT_IMPALING: number; + // @ts-ignore + public static ID_TRIDENT_RIPTIDE: number; + // @ts-ignore + public static ID_TRIDENT_LOYALTY: number; + // @ts-ignore + public static ID_TRIDENT_CHANNELING: number; + // @ts-ignore + public id: number; + // @ts-ignore + public type: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + protected level: number; + // @ts-ignore + protected name: string; + // @ts-ignore + public static words: java.lang.String[]; + // @ts-ignore + public static init(): void; + // @ts-ignore + public static get(id: number): cn.nukkit.item.enchantment.Enchantment; + // @ts-ignore + public static getEnchantment(id: number): cn.nukkit.item.enchantment.Enchantment; + // @ts-ignore + public static getEnchantments(): cn.nukkit.item.enchantment.Enchantment[]; + // @ts-ignore + public getLevel(): number; + // @ts-ignore + public setLevel(level: number): cn.nukkit.item.enchantment.Enchantment; + // @ts-ignore + public setLevel(level: number, safe: boolean): cn.nukkit.item.enchantment.Enchantment; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getWeight(): number; + // @ts-ignore + public getMinLevel(): number; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public getMaxEnchantableLevel(): number; + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getProtectionFactor(event: cn.nukkit.event.entity.EntityDamageEvent): number; + // @ts-ignore + public getDamageBonus(entity: cn.nukkit.entity.Entity): number; + // @ts-ignore + public doPostAttack(attacker: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public doPostHurt(attacker: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public isCompatibleWith(enchantment: cn.nukkit.item.enchantment.Enchantment): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public canEnchant(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public isMajor(): boolean; + // @ts-ignore + protected clone(): cn.nukkit.item.enchantment.Enchantment; + // @ts-ignore + public static getRandomName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentBindingCurse.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentBindingCurse.d.ts new file mode 100644 index 00000000..b2c33d9c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentBindingCurse.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentBindingCurse extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentDurability.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentDurability.d.ts new file mode 100644 index 00000000..0314f498 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentDurability.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentDurability extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public isCompatibleWith(enchantment: cn.nukkit.item.enchantment.Enchantment): boolean; + // @ts-ignore + public canEnchant(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public static negateDamage(item: cn.nukkit.item.Item, level: number, random: java.util.Random): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentEfficiency.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentEfficiency.d.ts new file mode 100644 index 00000000..905dedcc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentEfficiency.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentEfficiency extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public canEnchant(item: cn.nukkit.item.Item): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentEntry.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentEntry.d.ts new file mode 100644 index 00000000..0d955a16 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentEntry.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentEntry extends java.lang.Object { + // @ts-ignore + constructor(enchantments: cn.nukkit.item.enchantment.Enchantment, cost: number, randomName: string) + // @ts-ignore + public getEnchantments(): cn.nukkit.item.enchantment.Enchantment[]; + // @ts-ignore + public getCost(): number; + // @ts-ignore + public getRandomName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentFireAspect.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentFireAspect.d.ts new file mode 100644 index 00000000..35d7caa7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentFireAspect.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentFireAspect extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public doPostAttack(attacker: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentFrostWalker.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentFrostWalker.d.ts new file mode 100644 index 00000000..170df97a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentFrostWalker.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentFrostWalker extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentKnockback.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentKnockback.d.ts new file mode 100644 index 00000000..16c77f22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentKnockback.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentKnockback extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentList.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentList.d.ts new file mode 100644 index 00000000..fd1b584e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentList.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentList extends java.lang.Object { + // @ts-ignore + constructor(size: number) + // @ts-ignore + public setSlot(slot: number, entry: cn.nukkit.item.enchantment.EnchantmentEntry): cn.nukkit.item.enchantment.EnchantmentList; + // @ts-ignore + public getSlot(slot: number): cn.nukkit.item.enchantment.EnchantmentEntry; + // @ts-ignore + public getSize(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentLure.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentLure.d.ts new file mode 100644 index 00000000..7118e8d5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentLure.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentLure extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentMending.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentMending.d.ts new file mode 100644 index 00000000..58a80c74 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentMending.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentMending extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public isCompatibleWith(enchantment: cn.nukkit.item.enchantment.Enchantment): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentSilkTouch.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentSilkTouch.d.ts new file mode 100644 index 00000000..246b9564 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentSilkTouch.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentSilkTouch extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public isCompatibleWith(enchantment: cn.nukkit.item.enchantment.Enchantment): boolean; + // @ts-ignore + public canEnchant(item: cn.nukkit.item.Item): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentThorns.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentThorns.d.ts new file mode 100644 index 00000000..9c7db326 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentThorns.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentThorns extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public doPostAttack(attacker: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentType.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentType.d.ts new file mode 100644 index 00000000..d4de22a5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentType.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentType extends java.lang.Enum { + // @ts-ignore + public static ALL: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static ARMOR: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static ARMOR_HEAD: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static ARMOR_TORSO: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static ARMOR_LEGS: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static ARMOR_FEET: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static SWORD: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static DIGGER: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static FISHING_ROD: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static BREAKABLE: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static BOW: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static WEARABLE: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static TRIDENT: cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public static values(): cn.nukkit.item.enchantment.EnchantmentType[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.item.enchantment.EnchantmentType; + // @ts-ignore + public canEnchantItem(item: cn.nukkit.item.Item): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentVanishingCurse.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentVanishingCurse.d.ts new file mode 100644 index 00000000..fc057ff8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentVanishingCurse.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentVanishingCurse extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterBreath.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterBreath.d.ts new file mode 100644 index 00000000..3f07c265 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterBreath.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentWaterBreath extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterWalker.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterWalker.d.ts new file mode 100644 index 00000000..ec43ac7b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterWalker.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentWaterWalker extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterWorker.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterWorker.d.ts new file mode 100644 index 00000000..2c50a7ee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.EnchantmentWaterWorker.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentWaterWorker extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBow.d.ts new file mode 100644 index 00000000..20a4efdd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBow.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace bow { + // @ts-ignore + abstract class EnchantmentBow extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor(id: number, name: string, weight: number) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowFlame.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowFlame.d.ts new file mode 100644 index 00000000..5c9fc6ff --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowFlame.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace bow { + // @ts-ignore + class EnchantmentBowFlame extends cn.nukkit.item.enchantment.bow.EnchantmentBow { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowInfinity.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowInfinity.d.ts new file mode 100644 index 00000000..1bbd8b18 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowInfinity.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace bow { + // @ts-ignore + class EnchantmentBowInfinity extends cn.nukkit.item.enchantment.bow.EnchantmentBow { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowKnockback.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowKnockback.d.ts new file mode 100644 index 00000000..73bd87db --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowKnockback.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace bow { + // @ts-ignore + class EnchantmentBowKnockback extends cn.nukkit.item.enchantment.bow.EnchantmentBow { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowPower.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowPower.d.ts new file mode 100644 index 00000000..d5c0adc2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.bow.EnchantmentBowPower.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace bow { + // @ts-ignore + class EnchantmentBowPower extends cn.nukkit.item.enchantment.bow.EnchantmentBow { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE.d.ts new file mode 100644 index 00000000..635fa4bc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace damage { + namespace EnchantmentDamage { + // @ts-ignore + class TYPE extends java.lang.Enum { + // @ts-ignore + public static ALL: cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE; + // @ts-ignore + public static SMITE: cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE; + // @ts-ignore + public static ARTHROPODS: cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE; + // @ts-ignore + public static values(): cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamage.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamage.d.ts new file mode 100644 index 00000000..9e4a19dd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamage.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace damage { + // @ts-ignore + abstract class EnchantmentDamage extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor(id: number, name: string, weight: number, type: cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE) + // @ts-ignore + protected damageType: cn.nukkit.item.enchantment.damage.EnchantmentDamage.TYPE; + // @ts-ignore + public isCompatibleWith(enchantment: cn.nukkit.item.enchantment.Enchantment): boolean; + // @ts-ignore + public canEnchant(item: cn.nukkit.item.Item): boolean; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isMajor(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageAll.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageAll.d.ts new file mode 100644 index 00000000..c841c355 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageAll.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace damage { + // @ts-ignore + class EnchantmentDamageAll extends cn.nukkit.item.enchantment.damage.EnchantmentDamage { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantableLevel(): number; + // @ts-ignore + public getDamageBonus(entity: cn.nukkit.entity.Entity): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageArthropods.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageArthropods.d.ts new file mode 100644 index 00000000..080a59de --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageArthropods.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace damage { + // @ts-ignore + class EnchantmentDamageArthropods extends cn.nukkit.item.enchantment.damage.EnchantmentDamage { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getDamageBonus(entity: cn.nukkit.entity.Entity): number; + // @ts-ignore + public doPostAttack(attacker: cn.nukkit.entity.Entity, entity: cn.nukkit.entity.Entity): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageSmite.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageSmite.d.ts new file mode 100644 index 00000000..4f117645 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.damage.EnchantmentDamageSmite.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace damage { + // @ts-ignore + class EnchantmentDamageSmite extends cn.nukkit.item.enchantment.damage.EnchantmentDamage { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getDamageBonus(entity: cn.nukkit.entity.Entity): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLoot.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLoot.d.ts new file mode 100644 index 00000000..77a7408e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLoot.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace loot { + // @ts-ignore + abstract class EnchantmentLoot extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor(id: number, name: string, weight: number, type: cn.nukkit.item.enchantment.EnchantmentType) + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public isCompatibleWith(enchantment: cn.nukkit.item.enchantment.Enchantment): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootDigging.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootDigging.d.ts new file mode 100644 index 00000000..23fc1853 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootDigging.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace loot { + // @ts-ignore + class EnchantmentLootDigging extends cn.nukkit.item.enchantment.loot.EnchantmentLoot { + // @ts-ignore + constructor() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootFishing.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootFishing.d.ts new file mode 100644 index 00000000..a46c5a22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootFishing.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace loot { + // @ts-ignore + class EnchantmentLootFishing extends cn.nukkit.item.enchantment.loot.EnchantmentLoot { + // @ts-ignore + constructor() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootWeapon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootWeapon.d.ts new file mode 100644 index 00000000..7a4ce7dc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.loot.EnchantmentLootWeapon.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace loot { + // @ts-ignore + class EnchantmentLootWeapon extends cn.nukkit.item.enchantment.loot.EnchantmentLoot { + // @ts-ignore + constructor() + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE.d.ts new file mode 100644 index 00000000..f727bdea --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace protection { + namespace EnchantmentProtection { + // @ts-ignore + class TYPE extends java.lang.Enum { + // @ts-ignore + public static ALL: cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE; + // @ts-ignore + public static FIRE: cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE; + // @ts-ignore + public static FALL: cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE; + // @ts-ignore + public static EXPLOSION: cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE; + // @ts-ignore + public static PROJECTILE: cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE; + // @ts-ignore + public static values(): cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtection.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtection.d.ts new file mode 100644 index 00000000..b88dcda4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtection.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace protection { + // @ts-ignore + abstract class EnchantmentProtection extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor(id: number, name: string, weight: number, type: cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE) + // @ts-ignore + protected protectionType: cn.nukkit.item.enchantment.protection.EnchantmentProtection.TYPE; + // @ts-ignore + public isCompatibleWith(enchantment: cn.nukkit.item.enchantment.Enchantment): boolean; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getTypeModifier(): number; + // @ts-ignore + public isMajor(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionAll.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionAll.d.ts new file mode 100644 index 00000000..93c159da --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionAll.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace protection { + // @ts-ignore + class EnchantmentProtectionAll extends cn.nukkit.item.enchantment.protection.EnchantmentProtection { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getTypeModifier(): number; + // @ts-ignore + public getProtectionFactor(e: cn.nukkit.event.entity.EntityDamageEvent): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionExplosion.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionExplosion.d.ts new file mode 100644 index 00000000..469f2f0a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionExplosion.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace protection { + // @ts-ignore + class EnchantmentProtectionExplosion extends cn.nukkit.item.enchantment.protection.EnchantmentProtection { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getTypeModifier(): number; + // @ts-ignore + public getProtectionFactor(e: cn.nukkit.event.entity.EntityDamageEvent): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionFall.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionFall.d.ts new file mode 100644 index 00000000..8131b2c7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionFall.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace protection { + // @ts-ignore + class EnchantmentProtectionFall extends cn.nukkit.item.enchantment.protection.EnchantmentProtection { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getTypeModifier(): number; + // @ts-ignore + public getProtectionFactor(e: cn.nukkit.event.entity.EntityDamageEvent): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionFire.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionFire.d.ts new file mode 100644 index 00000000..5ded0df5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionFire.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace protection { + // @ts-ignore + class EnchantmentProtectionFire extends cn.nukkit.item.enchantment.protection.EnchantmentProtection { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getTypeModifier(): number; + // @ts-ignore + public getProtectionFactor(e: cn.nukkit.event.entity.EntityDamageEvent): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionProjectile.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionProjectile.d.ts new file mode 100644 index 00000000..6e539782 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.protection.EnchantmentProtectionProjectile.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace protection { + // @ts-ignore + class EnchantmentProtectionProjectile extends cn.nukkit.item.enchantment.protection.EnchantmentProtection { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getTypeModifier(): number; + // @ts-ignore + public getProtectionFactor(e: cn.nukkit.event.entity.EntityDamageEvent): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTrident.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTrident.d.ts new file mode 100644 index 00000000..0e33fb22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTrident.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace trident { + // @ts-ignore + abstract class EnchantmentTrident extends cn.nukkit.item.enchantment.Enchantment { + // @ts-ignore + constructor(id: number, name: string, weight: number) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentChanneling.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentChanneling.d.ts new file mode 100644 index 00000000..4a76da88 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentChanneling.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace trident { + // @ts-ignore + class EnchantmentTridentChanneling extends cn.nukkit.item.enchantment.trident.EnchantmentTrident { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentImpaling.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentImpaling.d.ts new file mode 100644 index 00000000..523d00c1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentImpaling.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace trident { + // @ts-ignore + class EnchantmentTridentImpaling extends cn.nukkit.item.enchantment.trident.EnchantmentTrident { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentLoyalty.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentLoyalty.d.ts new file mode 100644 index 00000000..ccd2554a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentLoyalty.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace trident { + // @ts-ignore + class EnchantmentTridentLoyalty extends cn.nukkit.item.enchantment.trident.EnchantmentTrident { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentRiptide.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentRiptide.d.ts new file mode 100644 index 00000000..94db1334 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.enchantment.trident.EnchantmentTridentRiptide.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace enchantment { + namespace trident { + // @ts-ignore + class EnchantmentTridentRiptide extends cn.nukkit.item.enchantment.trident.EnchantmentTrident { + // @ts-ignore + constructor() + // @ts-ignore + public getMinEnchantAbility(level: number): number; + // @ts-ignore + public getMaxEnchantAbility(level: number): number; + // @ts-ignore + public getMaxLevel(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.food.Food.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.Food.d.ts new file mode 100644 index 00000000..e8d02a3e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.Food.d.ts @@ -0,0 +1,121 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace food { + // @ts-ignore + abstract class Food extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static apple: cn.nukkit.item.food.Food; + // @ts-ignore + public static apple_golden: cn.nukkit.item.food.Food; + // @ts-ignore + public static apple_golden_enchanted: cn.nukkit.item.food.Food; + // @ts-ignore + public static beef_raw: cn.nukkit.item.food.Food; + // @ts-ignore + public static beetroot: cn.nukkit.item.food.Food; + // @ts-ignore + public static beetroot_soup: cn.nukkit.item.food.Food; + // @ts-ignore + public static bread: cn.nukkit.item.food.Food; + // @ts-ignore + public static cake_slice: cn.nukkit.item.food.Food; + // @ts-ignore + public static carrot: cn.nukkit.item.food.Food; + // @ts-ignore + public static carrot_golden: cn.nukkit.item.food.Food; + // @ts-ignore + public static chicken_raw: cn.nukkit.item.food.Food; + // @ts-ignore + public static chicken_cooked: cn.nukkit.item.food.Food; + // @ts-ignore + public static chorus_fruit: cn.nukkit.item.food.Food; + // @ts-ignore + public static cookie: cn.nukkit.item.food.Food; + // @ts-ignore + public static melon_slice: cn.nukkit.item.food.Food; + // @ts-ignore + public static milk: cn.nukkit.item.food.Food; + // @ts-ignore + public static mushroom_stew: cn.nukkit.item.food.Food; + // @ts-ignore + public static mutton_cooked: cn.nukkit.item.food.Food; + // @ts-ignore + public static mutton_raw: cn.nukkit.item.food.Food; + // @ts-ignore + public static porkchop_cooked: cn.nukkit.item.food.Food; + // @ts-ignore + public static porkchop_raw: cn.nukkit.item.food.Food; + // @ts-ignore + public static potato_raw: cn.nukkit.item.food.Food; + // @ts-ignore + public static potato_baked: cn.nukkit.item.food.Food; + // @ts-ignore + public static potato_poisonous: cn.nukkit.item.food.Food; + // @ts-ignore + public static pumpkin_pie: cn.nukkit.item.food.Food; + // @ts-ignore + public static rabbit_cooked: cn.nukkit.item.food.Food; + // @ts-ignore + public static rabbit_raw: cn.nukkit.item.food.Food; + // @ts-ignore + public static rabbit_stew: cn.nukkit.item.food.Food; + // @ts-ignore + public static rotten_flesh: cn.nukkit.item.food.Food; + // @ts-ignore + public static spider_eye: cn.nukkit.item.food.Food; + // @ts-ignore + public static steak: cn.nukkit.item.food.Food; + // @ts-ignore + public static clownfish: cn.nukkit.item.food.Food; + // @ts-ignore + public static fish_cooked: cn.nukkit.item.food.Food; + // @ts-ignore + public static fish_raw: cn.nukkit.item.food.Food; + // @ts-ignore + public static salmon_cooked: cn.nukkit.item.food.Food; + // @ts-ignore + public static salmon_raw: cn.nukkit.item.food.Food; + // @ts-ignore + public static pufferfish: cn.nukkit.item.food.Food; + // @ts-ignore + public static dried_kelp: cn.nukkit.item.food.Food; + // @ts-ignore + public static sweet_berries: cn.nukkit.item.food.Food; + // @ts-ignore + protected restoreFood: number; + // @ts-ignore + protected restoreSaturation: number; + // @ts-ignore + protected relativeIDs: java.util.List; + // @ts-ignore + public static registerFood(food: cn.nukkit.item.food.Food, plugin: cn.nukkit.plugin.Plugin): cn.nukkit.item.food.Food; + // @ts-ignore + public static getByRelative(item: cn.nukkit.item.Item): cn.nukkit.item.food.Food; + // @ts-ignore + public static getByRelative(block: cn.nukkit.block.Block): cn.nukkit.item.food.Food; + // @ts-ignore + public static getByRelative(relativeID: number, meta: number): cn.nukkit.item.food.Food; + // @ts-ignore + public eatenBy(player: cn.nukkit.Player): boolean; + // @ts-ignore + protected onEatenBy(player: cn.nukkit.Player): boolean; + // @ts-ignore + public addRelative(relativeID: number): cn.nukkit.item.food.Food; + // @ts-ignore + public addRelative(relativeID: number, meta: number): cn.nukkit.item.food.Food; + // @ts-ignore + public getRestoreFood(): number; + // @ts-ignore + public setRestoreFood(restoreFood: number): cn.nukkit.item.food.Food; + // @ts-ignore + public getRestoreSaturation(): number; + // @ts-ignore + public setRestoreSaturation(restoreSaturation: number): cn.nukkit.item.food.Food; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodChorusFruit.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodChorusFruit.d.ts new file mode 100644 index 00000000..39ef6f9c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodChorusFruit.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace food { + // @ts-ignore + class FoodChorusFruit extends cn.nukkit.item.food.FoodNormal { + // @ts-ignore + constructor() + // @ts-ignore + protected onEatenBy(player: cn.nukkit.Player): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodEffective.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodEffective.d.ts new file mode 100644 index 00000000..e67a5751 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodEffective.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace food { + // @ts-ignore + class FoodEffective extends cn.nukkit.item.food.Food { + // @ts-ignore + constructor(restoreFood: number, restoreSaturation: number) + // @ts-ignore + protected effects: java.util.Map; + // @ts-ignore + public addEffect(effect: cn.nukkit.potion.Effect): cn.nukkit.item.food.FoodEffective; + // @ts-ignore + public addChanceEffect(chance: number, effect: cn.nukkit.potion.Effect): cn.nukkit.item.food.FoodEffective; + // @ts-ignore + protected onEatenBy(player: cn.nukkit.Player): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodInBowl.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodInBowl.d.ts new file mode 100644 index 00000000..9ba335cd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodInBowl.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace food { + // @ts-ignore + class FoodInBowl extends cn.nukkit.item.food.Food { + // @ts-ignore + constructor(restoreFood: number, restoreSaturation: number) + // @ts-ignore + protected onEatenBy(player: cn.nukkit.Player): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodMilk.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodMilk.d.ts new file mode 100644 index 00000000..83414656 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodMilk.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace food { + // @ts-ignore + class FoodMilk extends cn.nukkit.item.food.Food { + // @ts-ignore + constructor() + // @ts-ignore + protected onEatenBy(player: cn.nukkit.Player): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodNormal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodNormal.d.ts new file mode 100644 index 00000000..260908e2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.food.FoodNormal.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace food { + // @ts-ignore + class FoodNormal extends cn.nukkit.item.food.Food { + // @ts-ignore + constructor(restoreFood: number, restoreSaturation: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.ConstantItemSelector.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.ConstantItemSelector.d.ts new file mode 100644 index 00000000..915928aa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.ConstantItemSelector.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace randomitem { + // @ts-ignore + class ConstantItemSelector extends cn.nukkit.item.randomitem.Selector { + // @ts-ignore + constructor(id: number, parent: cn.nukkit.item.randomitem.Selector) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, parent: cn.nukkit.item.randomitem.Selector) + // @ts-ignore + constructor(id: number, meta: java.lang.Integer, count: number, parent: cn.nukkit.item.randomitem.Selector) + // @ts-ignore + constructor(item: cn.nukkit.item.Item, parent: cn.nukkit.item.randomitem.Selector) + // @ts-ignore + protected item: cn.nukkit.item.Item; + // @ts-ignore + public getItem(): cn.nukkit.item.Item; + // @ts-ignore + public select(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.Fishing.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.Fishing.d.ts new file mode 100644 index 00000000..3dfa58a6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.Fishing.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace randomitem { + // @ts-ignore + class Fishing extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static ROOT_FISHING: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static FISHES: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static TREASURES: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNKS: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static FISH: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static SALMON: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static CLOWNFISH: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static PUFFERFISH: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static TREASURE_BOW: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static TREASURE_ENCHANTED_BOOK: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static TREASURE_FISHING_ROD: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static TREASURE_NAME_TAG: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static TREASURE_SADDLE: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_BOWL: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_FISHING_ROD: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_LEATHER: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_LEATHER_BOOTS: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_ROTTEN_FLESH: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_STICK: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_STRING_ITEM: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_WATTER_BOTTLE: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_BONE: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_INK_SAC: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static JUNK_TRIPWIRE_HOOK: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static getFishingResult(rod: cn.nukkit.item.Item): cn.nukkit.item.Item; + // @ts-ignore + public static getFishingResult(fortuneLevel: number, lureLevel: number): cn.nukkit.item.Item; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.RandomItem.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.RandomItem.d.ts new file mode 100644 index 00000000..c78c8d28 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.RandomItem.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace randomitem { + // @ts-ignore + class RandomItem extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static ROOT: cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static putSelector(selector: cn.nukkit.item.randomitem.Selector): cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public static putSelector(selector: cn.nukkit.item.randomitem.Selector, chance: number): cn.nukkit.item.randomitem.Selector; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.Selector.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.Selector.d.ts new file mode 100644 index 00000000..6953d798 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.item.randomitem.Selector.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace item { + namespace randomitem { + // @ts-ignore + class Selector extends java.lang.Object { + // @ts-ignore + constructor(parent: cn.nukkit.item.randomitem.Selector) + // @ts-ignore + public setParent(parent: cn.nukkit.item.randomitem.Selector): cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public getParent(): cn.nukkit.item.randomitem.Selector; + // @ts-ignore + public select(): java.lang.Object; + // @ts-ignore + public static selectRandom(selectorChanceMap: java.util.Map): cn.nukkit.item.randomitem.Selector; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.lang.BaseLang.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.lang.BaseLang.d.ts new file mode 100644 index 00000000..45e1695a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.lang.BaseLang.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace lang { + // @ts-ignore + class BaseLang extends java.lang.Object { + // @ts-ignore + constructor(lang: string) + // @ts-ignore + constructor(lang: string, path: string) + // @ts-ignore + constructor(lang: string, path: string, fallback: string) + // @ts-ignore + public static FALLBACK_LANGUAGE: string; + // @ts-ignore + protected langName: string; + // @ts-ignore + protected lang: java.util.Map; + // @ts-ignore + protected fallbackLang: java.util.Map; + // @ts-ignore + public getLangMap(): java.util.Map; + // @ts-ignore + public getFallbackLangMap(): java.util.Map; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getLang(): string; + // @ts-ignore + protected loadLang(path: string): java.util.Map; + // @ts-ignore + protected loadLang(stream: java.io.InputStream): java.util.Map; + // @ts-ignore + public translateString(str: string): string; + // @ts-ignore + public translateString(str: string, params: string): string; + // @ts-ignore + public translateString(str: string, params: java.lang.Object): string; + // @ts-ignore + public translateString(str: string, param: string, onlyPrefix: string): string; + // @ts-ignore + public translateString(str: string, params: string, onlyPrefix: string): string; + // @ts-ignore + public translate(c: cn.nukkit.lang.TextContainer): string; + // @ts-ignore + public internalGet(id: string): string; + // @ts-ignore + public get(id: string): string; + // @ts-ignore + protected parseTranslation(text: string): string; + // @ts-ignore + protected parseTranslation(text: string, onlyPrefix: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.lang.TextContainer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.lang.TextContainer.d.ts new file mode 100644 index 00000000..eccd9c0e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.lang.TextContainer.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace lang { + // @ts-ignore + class TextContainer extends java.lang.Object { + // @ts-ignore + constructor(text: string) + // @ts-ignore + protected text: string; + // @ts-ignore + public setText(text: string): void; + // @ts-ignore + public getText(): string; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): cn.nukkit.lang.TextContainer; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.lang.TranslationContainer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.lang.TranslationContainer.d.ts new file mode 100644 index 00000000..c571819a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.lang.TranslationContainer.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace lang { + // @ts-ignore + class TranslationContainer extends cn.nukkit.lang.TextContainer { + // @ts-ignore + constructor(text: string) + // @ts-ignore + constructor(text: string, params: string) + // @ts-ignore + constructor(text: string, params: string) + // @ts-ignore + protected params: java.lang.String[]; + // @ts-ignore + public getParameters(): java.lang.String[]; + // @ts-ignore + public setParameters(params: string): void; + // @ts-ignore + public getParameter(i: number): string; + // @ts-ignore + public setParameter(i: number, str: string): void; + // @ts-ignore + public clone(): cn.nukkit.lang.TranslationContainer; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkLoader.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkLoader.d.ts new file mode 100644 index 00000000..b1621b94 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkLoader.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + interface ChunkLoader { + // @ts-ignore + getLoaderId(): number; + // @ts-ignore + isLoaderActive(): boolean; + // @ts-ignore + getPosition(): cn.nukkit.level.Position; + // @ts-ignore + getX(): number; + // @ts-ignore + getZ(): number; + // @ts-ignore + getLevel(): cn.nukkit.level.Level; + // @ts-ignore + onChunkChanged(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + onChunkLoaded(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + onChunkUnloaded(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + onChunkPopulated(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + onBlockChanged(block: cn.nukkit.math.Vector3): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkManager.d.ts new file mode 100644 index 00000000..c5c50263 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkManager.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + interface ChunkManager { + // @ts-ignore + getBlockIdAt(x: number, y: number, z: number): number; + // @ts-ignore + setBlockFullIdAt(x: number, y: number, z: number, fullId: number): void; + // @ts-ignore + setBlockIdAt(x: number, y: number, z: number, id: number): void; + // @ts-ignore + setBlockAt(x: number, y: number, z: number, id: number): void; + // @ts-ignore + setBlockAt(x: number, y: number, z: number, id: number, data: number): void; + // @ts-ignore + getBlockDataAt(x: number, y: number, z: number): number; + // @ts-ignore + setBlockDataAt(x: number, y: number, z: number, data: number): void; + // @ts-ignore + getChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + setChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + setChunk(chunkX: number, chunkZ: number, chunk: cn.nukkit.level.format.generic.BaseFullChunk): void; + // @ts-ignore + getSeed(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkPosition.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkPosition.d.ts new file mode 100644 index 00000000..3f8ccc86 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.ChunkPosition.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class ChunkPosition extends java.lang.Object { + // @ts-ignore + constructor(i: number, j: number, k: number) + // @ts-ignore + constructor(vec3d: cn.nukkit.math.Vector3) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public equals(object: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.EnumLevel.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.EnumLevel.d.ts new file mode 100644 index 00000000..80142e17 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.EnumLevel.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class EnumLevel extends java.lang.Enum { + // @ts-ignore + public static OVERWORLD: cn.nukkit.level.EnumLevel; + // @ts-ignore + public static NETHER: cn.nukkit.level.EnumLevel; + // @ts-ignore + public static values(): cn.nukkit.level.EnumLevel[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.level.EnumLevel; + // @ts-ignore + public getLevel(): cn.nukkit.level.Level; + // @ts-ignore + public static initLevels(): void; + // @ts-ignore + public static getOtherNetherPair(current: cn.nukkit.level.Level): cn.nukkit.level.Level; + // @ts-ignore + public static moveToNether(current: cn.nukkit.level.Position): cn.nukkit.level.Position; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.Explosion.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.Explosion.d.ts new file mode 100644 index 00000000..c0486b33 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.Explosion.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class Explosion extends java.lang.Object { + // @ts-ignore + constructor(center: cn.nukkit.level.Position, size: number, what: cn.nukkit.entity.Entity) + // @ts-ignore + public explode(): boolean; + // @ts-ignore + public explodeA(): boolean; + // @ts-ignore + public explodeB(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRule.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRule.d.ts new file mode 100644 index 00000000..b2415079 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRule.d.ts @@ -0,0 +1,61 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class GameRule extends java.lang.Enum { + // @ts-ignore + public static COMMAND_BLOCK_OUTPUT: cn.nukkit.level.GameRule; + // @ts-ignore + public static DO_DAYLIGHT_CYCLE: cn.nukkit.level.GameRule; + // @ts-ignore + public static DO_ENTITY_DROPS: cn.nukkit.level.GameRule; + // @ts-ignore + public static DO_FIRE_TICK: cn.nukkit.level.GameRule; + // @ts-ignore + public static DO_IMMEDIATE_RESPAWN: cn.nukkit.level.GameRule; + // @ts-ignore + public static DO_MOB_LOOT: cn.nukkit.level.GameRule; + // @ts-ignore + public static DO_MOB_SPAWNING: cn.nukkit.level.GameRule; + // @ts-ignore + public static DO_TILE_DROPS: cn.nukkit.level.GameRule; + // @ts-ignore + public static DO_WEATHER_CYCLE: cn.nukkit.level.GameRule; + // @ts-ignore + public static DROWNING_DAMAGE: cn.nukkit.level.GameRule; + // @ts-ignore + public static FALL_DAMAGE: cn.nukkit.level.GameRule; + // @ts-ignore + public static FIRE_DAMAGE: cn.nukkit.level.GameRule; + // @ts-ignore + public static KEEP_INVENTORY: cn.nukkit.level.GameRule; + // @ts-ignore + public static MOB_GRIEFING: cn.nukkit.level.GameRule; + // @ts-ignore + public static NATURAL_REGENERATION: cn.nukkit.level.GameRule; + // @ts-ignore + public static PVP: cn.nukkit.level.GameRule; + // @ts-ignore + public static RANDOM_TICK_SPEED: cn.nukkit.level.GameRule; + // @ts-ignore + public static SEND_COMMAND_FEEDBACK: cn.nukkit.level.GameRule; + // @ts-ignore + public static SHOW_COORDINATES: cn.nukkit.level.GameRule; + // @ts-ignore + public static TNT_EXPLODES: cn.nukkit.level.GameRule; + // @ts-ignore + public static SHOW_DEATH_MESSAGE: cn.nukkit.level.GameRule; + // @ts-ignore + public static values(): cn.nukkit.level.GameRule[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.level.GameRule; + // @ts-ignore + public static parseString(gameRuleString: string): java.util.Optional; + // @ts-ignore + public static getNames(): java.lang.String[]; + // @ts-ignore + public getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.Type.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.Type.d.ts new file mode 100644 index 00000000..0476e4ea --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.Type.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace GameRules { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static UNKNOWN: cn.nukkit.level.GameRules.Type; + // @ts-ignore + public static BOOLEAN: cn.nukkit.level.GameRules.Type; + // @ts-ignore + public static INTEGER: cn.nukkit.level.GameRules.Type; + // @ts-ignore + public static FLOAT: cn.nukkit.level.GameRules.Type; + // @ts-ignore + public static values(): cn.nukkit.level.GameRules.Type[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.level.GameRules.Type; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.Value.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.Value.d.ts new file mode 100644 index 00000000..5cdfe3df --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.Value.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace GameRules { + // @ts-ignore + class Value extends java.lang.Object { + // @ts-ignore + constructor(type: cn.nukkit.level.GameRules.Type, value: java.lang.Object) + // @ts-ignore + public getType(): cn.nukkit.level.GameRules.Type; + // @ts-ignore + public write(pk: cn.nukkit.utils.BinaryStream): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.d.ts new file mode 100644 index 00000000..429518e7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.GameRules.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class GameRules extends java.lang.Object { + // @ts-ignore + public static getDefault(): cn.nukkit.level.GameRules; + // @ts-ignore + public getGameRules(): java.util.Map; + // @ts-ignore + public isStale(): boolean; + // @ts-ignore + public refresh(): void; + // @ts-ignore + public setGameRule(gameRule: cn.nukkit.level.GameRule, value: boolean): void; + // @ts-ignore + public setGameRule(gameRule: cn.nukkit.level.GameRule, value: number): void; + // @ts-ignore + public setGameRule(gameRule: cn.nukkit.level.GameRule, value: number): void; + // @ts-ignore + public setGameRules(gameRule: cn.nukkit.level.GameRule, value: string): void; + // @ts-ignore + public getBoolean(gameRule: cn.nukkit.level.GameRule): boolean; + // @ts-ignore + public getInteger(gameRule: cn.nukkit.level.GameRule): number; + // @ts-ignore + public getFloat(gameRule: cn.nukkit.level.GameRule): number; + // @ts-ignore + public getString(gameRule: cn.nukkit.level.GameRule): string; + // @ts-ignore + public getGameRuleType(gameRule: cn.nukkit.level.GameRule): cn.nukkit.level.GameRules.Type; + // @ts-ignore + public hasRule(gameRule: cn.nukkit.level.GameRule): boolean; + // @ts-ignore + public getRules(): cn.nukkit.level.GameRule[]; + // @ts-ignore + public writeNBT(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public readNBT(nbt: cn.nukkit.nbt.tag.CompoundTag): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.GlobalBlockPalette.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.GlobalBlockPalette.d.ts new file mode 100644 index 00000000..5a97eca3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.GlobalBlockPalette.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class GlobalBlockPalette extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static BLOCK_PALETTE: number[]; + // @ts-ignore + public static getOrCreateRuntimeId(id: number, meta: number): number; + // @ts-ignore + public static getOrCreateRuntimeId(legacyId: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.Level.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.Level.d.ts new file mode 100644 index 00000000..ebda32d4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.Level.d.ts @@ -0,0 +1,540 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class Level extends java.lang.Object implements cn.nukkit.level.ChunkManager, cn.nukkit.metadata.Metadatable { + // @ts-ignore + constructor(server: cn.nukkit.Server, name: string, path: string, provider: java.lang.Class) + // @ts-ignore + public static COMPRESSION_LEVEL: number; + // @ts-ignore + public static BLOCK_UPDATE_NORMAL: number; + // @ts-ignore + public static BLOCK_UPDATE_RANDOM: number; + // @ts-ignore + public static BLOCK_UPDATE_SCHEDULED: number; + // @ts-ignore + public static BLOCK_UPDATE_WEAK: number; + // @ts-ignore + public static BLOCK_UPDATE_TOUCH: number; + // @ts-ignore + public static BLOCK_UPDATE_REDSTONE: number; + // @ts-ignore + public static BLOCK_UPDATE_TICK: number; + // @ts-ignore + public static TIME_DAY: number; + // @ts-ignore + public static TIME_NOON: number; + // @ts-ignore + public static TIME_SUNSET: number; + // @ts-ignore + public static TIME_NIGHT: number; + // @ts-ignore + public static TIME_MIDNIGHT: number; + // @ts-ignore + public static TIME_SUNRISE: number; + // @ts-ignore + public static TIME_FULL: number; + // @ts-ignore + public static DIMENSION_OVERWORLD: number; + // @ts-ignore + public static DIMENSION_NETHER: number; + // @ts-ignore + public static DIMENSION_THE_END: number; + // @ts-ignore + public static MAX_BLOCK_CACHE: number; + // @ts-ignore + public updateEntities: any; + // @ts-ignore + public skyLightSubtracted: number; + // @ts-ignore + public sleepTicks: number; + // @ts-ignore + public timings: cn.nukkit.timings.LevelTimings; + // @ts-ignore + public tickRateTime: number; + // @ts-ignore + public tickRateCounter: number; + // @ts-ignore + public gameRules: cn.nukkit.level.GameRules; + // @ts-ignore + public static chunkHash(x: number, z: number): number; + // @ts-ignore + public static blockHash(x: number, y: number, z: number): number; + // @ts-ignore + public static localBlockHash(x: number, y: number, z: number): string; + // @ts-ignore + public static getBlockXYZ(chunkHash: number, blockHash: string): cn.nukkit.math.Vector3; + // @ts-ignore + public static chunkBlockHash(x: number, y: number, z: number): number; + // @ts-ignore + public static getHashX(hash: number): number; + // @ts-ignore + public static getHashZ(hash: number): number; + // @ts-ignore + public static getBlockXYZ(hash: cn.nukkit.math.BlockVector3): cn.nukkit.math.Vector3; + // @ts-ignore + public static getChunkXZ(hash: number): cn.nukkit.level.format.Chunk.Entry; + // @ts-ignore + public static generateChunkLoaderId(loader: cn.nukkit.level.ChunkLoader): number; + // @ts-ignore + public getTickRate(): number; + // @ts-ignore + public getTickRateTime(): number; + // @ts-ignore + public setTickRate(tickRate: number): void; + // @ts-ignore + public initLevel(): void; + // @ts-ignore + public getGenerator(): cn.nukkit.level.generator.Generator; + // @ts-ignore + public getBlockMetadata(): cn.nukkit.metadata.BlockMetadataStore; + // @ts-ignore + public getServer(): cn.nukkit.Server; + // @ts-ignore + public getProvider(): cn.nukkit.level.format.LevelProvider; + // @ts-ignore + public getId(): number; + // @ts-ignore + public close(): void; + // @ts-ignore + public addSound(pos: cn.nukkit.math.Vector3, sound: cn.nukkit.level.Sound): void; + // @ts-ignore + public addSound(pos: cn.nukkit.math.Vector3, sound: cn.nukkit.level.Sound, volume: number, pitch: number): void; + // @ts-ignore + public addSound(pos: cn.nukkit.math.Vector3, sound: cn.nukkit.level.Sound, volume: number, pitch: number, players: java.util.Collection): void; + // @ts-ignore + public addSound(pos: cn.nukkit.math.Vector3, sound: cn.nukkit.level.Sound, volume: number, pitch: number, players: cn.nukkit.Player): void; + // @ts-ignore + public addLevelEvent(pos: cn.nukkit.math.Vector3, event: number): void; + // @ts-ignore + public addLevelSoundEvent(pos: cn.nukkit.math.Vector3, type: number, data: number, entityType: number): void; + // @ts-ignore + public addLevelSoundEvent(pos: cn.nukkit.math.Vector3, type: number, data: number, entityType: number, isBaby: boolean, isGlobal: boolean): void; + // @ts-ignore + public addLevelSoundEvent(pos: cn.nukkit.math.Vector3, type: number): void; + /** + * Broadcasts sound to players + */ + // @ts-ignore + public addLevelSoundEvent(pos: cn.nukkit.math.Vector3, type: number, data: number): void; + // @ts-ignore + public addLevelSoundEvent(pos: cn.nukkit.math.Vector3, type: number, data: number, identifier: string, isBaby: boolean, isGlobal: boolean): void; + // @ts-ignore + public addParticle(particle: cn.nukkit.level.particle.Particle): void; + // @ts-ignore + public addParticle(particle: cn.nukkit.level.particle.Particle, player: cn.nukkit.Player): void; + // @ts-ignore + public addParticle(particle: cn.nukkit.level.particle.Particle, players: cn.nukkit.Player): void; + // @ts-ignore + public addParticle(particle: cn.nukkit.level.particle.Particle, players: java.util.Collection): void; + // @ts-ignore + public addParticleEffect(pos: cn.nukkit.math.Vector3, particleEffect: cn.nukkit.level.ParticleEffect): void; + // @ts-ignore + public addParticleEffect(pos: cn.nukkit.math.Vector3, particleEffect: cn.nukkit.level.ParticleEffect, uniqueEntityId: number): void; + // @ts-ignore + public addParticleEffect(pos: cn.nukkit.math.Vector3, particleEffect: cn.nukkit.level.ParticleEffect, uniqueEntityId: number, dimensionId: number): void; + // @ts-ignore + public addParticleEffect(pos: cn.nukkit.math.Vector3, particleEffect: cn.nukkit.level.ParticleEffect, uniqueEntityId: number, dimensionId: number, players: java.util.Collection): void; + // @ts-ignore + public addParticleEffect(pos: cn.nukkit.math.Vector3, particleEffect: cn.nukkit.level.ParticleEffect, uniqueEntityId: number, dimensionId: number, players: cn.nukkit.Player): void; + // @ts-ignore + public addParticleEffect(pos: cn.nukkit.math.Vector3f, identifier: string, uniqueEntityId: number, dimensionId: number, players: cn.nukkit.Player): void; + // @ts-ignore + public getAutoSave(): boolean; + // @ts-ignore + public setAutoSave(autoSave: boolean): void; + // @ts-ignore + public unload(): boolean; + // @ts-ignore + public unload(force: boolean): boolean; + // @ts-ignore + public getChunkPlayers(chunkX: number, chunkZ: number): java.util.Map; + // @ts-ignore + public getChunkLoaders(chunkX: number, chunkZ: number): cn.nukkit.level.ChunkLoader[]; + // @ts-ignore + public addChunkPacket(chunkX: number, chunkZ: number, packet: cn.nukkit.network.protocol.DataPacket): void; + // @ts-ignore + public registerChunkLoader(loader: cn.nukkit.level.ChunkLoader, chunkX: number, chunkZ: number): void; + // @ts-ignore + public registerChunkLoader(loader: cn.nukkit.level.ChunkLoader, chunkX: number, chunkZ: number, autoLoad: boolean): void; + // @ts-ignore + public unregisterChunkLoader(loader: cn.nukkit.level.ChunkLoader, chunkX: number, chunkZ: number): void; + // @ts-ignore + public checkTime(): void; + // @ts-ignore + public sendTime(players: cn.nukkit.Player): void; + // @ts-ignore + public sendTime(): void; + // @ts-ignore + public getGameRules(): cn.nukkit.level.GameRules; + // @ts-ignore + public doTick(currentTick: number): void; + // @ts-ignore + public adjustPosToNearbyEntity(pos: cn.nukkit.math.Vector3): cn.nukkit.math.Vector3; + // @ts-ignore + public checkSleep(): void; + // @ts-ignore + public sendBlockExtraData(x: number, y: number, z: number, id: number, data: number): void; + // @ts-ignore + public sendBlockExtraData(x: number, y: number, z: number, id: number, data: number, players: java.util.Collection): void; + // @ts-ignore + public sendBlockExtraData(x: number, y: number, z: number, id: number, data: number, players: cn.nukkit.Player): void; + // @ts-ignore + public sendBlocks(target: cn.nukkit.Player, blocks: cn.nukkit.math.Vector3): void; + // @ts-ignore + public sendBlocks(target: cn.nukkit.Player, blocks: cn.nukkit.math.Vector3, flags: number): void; + // @ts-ignore + public sendBlocks(target: cn.nukkit.Player, blocks: cn.nukkit.math.Vector3, flags: number, optimizeRebuilds: boolean): void; + // @ts-ignore + public sendBlocks(target: cn.nukkit.Player, blocks: cn.nukkit.math.Vector3, flags: number, dataLayer: number): void; + // @ts-ignore + public sendBlocks(target: cn.nukkit.Player, blocks: cn.nukkit.math.Vector3, flags: number, dataLayer: number, optimizeRebuilds: boolean): void; + // @ts-ignore + public save(): boolean; + // @ts-ignore + public save(force: boolean): boolean; + // @ts-ignore + public saveChunks(): void; + // @ts-ignore + public updateAroundRedstone(pos: cn.nukkit.math.Vector3, face: cn.nukkit.math.BlockFace): void; + // @ts-ignore + public updateComparatorOutputLevel(v: cn.nukkit.math.Vector3): void; + // @ts-ignore + public updateAround(pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + public updateAround(x: number, y: number, z: number): void; + // @ts-ignore + public scheduleUpdate(pos: cn.nukkit.block.Block, delay: number): void; + // @ts-ignore + public scheduleUpdate(block: cn.nukkit.block.Block, pos: cn.nukkit.math.Vector3, delay: number): void; + // @ts-ignore + public scheduleUpdate(block: cn.nukkit.block.Block, pos: cn.nukkit.math.Vector3, delay: number, priority: number): void; + // @ts-ignore + public scheduleUpdate(block: cn.nukkit.block.Block, pos: cn.nukkit.math.Vector3, delay: number, priority: number, checkArea: boolean): void; + // @ts-ignore + public cancelSheduledUpdate(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public isUpdateScheduled(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public isBlockTickPending(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public getPendingBlockUpdates(chunk: cn.nukkit.level.format.FullChunk): java.util.Set; + // @ts-ignore + public getPendingBlockUpdates(boundingBox: cn.nukkit.math.AxisAlignedBB): java.util.Set; + // @ts-ignore + public getCollisionBlocks(bb: cn.nukkit.math.AxisAlignedBB): cn.nukkit.block.Block[]; + // @ts-ignore + public getCollisionBlocks(bb: cn.nukkit.math.AxisAlignedBB, targetFirst: boolean): cn.nukkit.block.Block[]; + // @ts-ignore + public isFullBlock(pos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public getCollisionCubes(entity: cn.nukkit.entity.Entity, bb: cn.nukkit.math.AxisAlignedBB): cn.nukkit.math.AxisAlignedBB[]; + // @ts-ignore + public getCollisionCubes(entity: cn.nukkit.entity.Entity, bb: cn.nukkit.math.AxisAlignedBB, entities: boolean): cn.nukkit.math.AxisAlignedBB[]; + // @ts-ignore + public getCollisionCubes(entity: cn.nukkit.entity.Entity, bb: cn.nukkit.math.AxisAlignedBB, entities: boolean, solidEntities: boolean): cn.nukkit.math.AxisAlignedBB[]; + // @ts-ignore + public hasCollision(entity: cn.nukkit.entity.Entity, bb: cn.nukkit.math.AxisAlignedBB, entities: boolean): boolean; + // @ts-ignore + public getFullLight(pos: cn.nukkit.math.Vector3): number; + // @ts-ignore + public calculateSkylightSubtracted(tickDiff: number): number; + // @ts-ignore + public calculateCelestialAngle(time: number, tickDiff: number): number; + // @ts-ignore + public getMoonPhase(worldTime: number): number; + // @ts-ignore + public getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + public getBlock(pos: cn.nukkit.math.Vector3): cn.nukkit.block.Block; + // @ts-ignore + public getBlock(pos: cn.nukkit.math.Vector3, load: boolean): cn.nukkit.block.Block; + // @ts-ignore + public getBlock(x: number, y: number, z: number): cn.nukkit.block.Block; + // @ts-ignore + public getBlock(x: number, y: number, z: number, load: boolean): cn.nukkit.block.Block; + // @ts-ignore + public updateAllLight(pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + public updateBlockSkyLight(x: number, y: number, z: number): void; + // @ts-ignore + public updateBlockLight(map: java.util.Map): void; + // @ts-ignore + public addLightUpdate(x: number, y: number, z: number): void; + // @ts-ignore + public setBlockFullIdAt(x: number, y: number, z: number, fullId: number): void; + // @ts-ignore + public setBlock(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public setBlock(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block, direct: boolean): boolean; + // @ts-ignore + public setBlock(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block, direct: boolean, update: boolean): boolean; + // @ts-ignore + public setBlock(x: number, y: number, z: number, block: cn.nukkit.block.Block, direct: boolean, update: boolean): boolean; + // @ts-ignore + public dropItem(source: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item): void; + // @ts-ignore + public dropItem(source: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item, motion: cn.nukkit.math.Vector3): void; + // @ts-ignore + public dropItem(source: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item, motion: cn.nukkit.math.Vector3, delay: number): void; + // @ts-ignore + public dropItem(source: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item, motion: cn.nukkit.math.Vector3, dropAround: boolean, delay: number): void; + // @ts-ignore + public useBreakOn(vector: cn.nukkit.math.Vector3): cn.nukkit.item.Item; + // @ts-ignore + public useBreakOn(vector: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item): cn.nukkit.item.Item; + // @ts-ignore + public useBreakOn(vector: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item, player: cn.nukkit.Player): cn.nukkit.item.Item; + // @ts-ignore + public useBreakOn(vector: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item, player: cn.nukkit.Player, createParticles: boolean): cn.nukkit.item.Item; + // @ts-ignore + public useBreakOn(vector: cn.nukkit.math.Vector3, face: cn.nukkit.math.BlockFace, item: cn.nukkit.item.Item, player: cn.nukkit.Player, createParticles: boolean): cn.nukkit.item.Item; + // @ts-ignore + public dropExpOrb(source: cn.nukkit.math.Vector3, exp: number): void; + // @ts-ignore + public dropExpOrb(source: cn.nukkit.math.Vector3, exp: number, motion: cn.nukkit.math.Vector3): void; + // @ts-ignore + public dropExpOrb(source: cn.nukkit.math.Vector3, exp: number, motion: cn.nukkit.math.Vector3, delay: number): void; + // @ts-ignore + public useItemOn(vector: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number): cn.nukkit.item.Item; + // @ts-ignore + public useItemOn(vector: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player): cn.nukkit.item.Item; + // @ts-ignore + public useItemOn(vector: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item, face: cn.nukkit.math.BlockFace, fx: number, fy: number, fz: number, player: cn.nukkit.Player, playSound: boolean): cn.nukkit.item.Item; + // @ts-ignore + public isInSpawnRadius(vector3: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public getEntity(entityId: number): cn.nukkit.entity.Entity; + // @ts-ignore + public getEntities(): cn.nukkit.entity.Entity[]; + // @ts-ignore + public getCollidingEntities(bb: cn.nukkit.math.AxisAlignedBB): cn.nukkit.entity.Entity[]; + // @ts-ignore + public getCollidingEntities(bb: cn.nukkit.math.AxisAlignedBB, entity: cn.nukkit.entity.Entity): cn.nukkit.entity.Entity[]; + // @ts-ignore + public getNearbyEntities(bb: cn.nukkit.math.AxisAlignedBB): cn.nukkit.entity.Entity[]; + // @ts-ignore + public getNearbyEntities(bb: cn.nukkit.math.AxisAlignedBB, entity: cn.nukkit.entity.Entity): cn.nukkit.entity.Entity[]; + // @ts-ignore + public getNearbyEntities(bb: cn.nukkit.math.AxisAlignedBB, entity: cn.nukkit.entity.Entity, loadChunks: boolean): cn.nukkit.entity.Entity[]; + // @ts-ignore + public getBlockEntities(): java.util.Map; + // @ts-ignore + public getBlockEntityById(blockEntityId: number): cn.nukkit.blockentity.BlockEntity; + // @ts-ignore + public getPlayers(): java.util.Map; + // @ts-ignore + public getLoaders(): java.util.Map; + // @ts-ignore + public getBlockEntity(pos: cn.nukkit.math.Vector3): cn.nukkit.blockentity.BlockEntity; + // @ts-ignore + public getBlockEntityIfLoaded(pos: cn.nukkit.math.Vector3): cn.nukkit.blockentity.BlockEntity; + // @ts-ignore + public getChunkEntities(X: number, Z: number): java.util.Map; + // @ts-ignore + public getChunkEntities(X: number, Z: number, loadChunks: boolean): java.util.Map; + // @ts-ignore + public getChunkBlockEntities(X: number, Z: number): java.util.Map; + // @ts-ignore + public getBlockIdAt(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockIdAt(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public setBlockAt(x: number, y: number, z: number, id: number, data: number): void; + // @ts-ignore + public getBlockExtraDataAt(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockExtraDataAt(x: number, y: number, z: number, id: number, data: number): void; + // @ts-ignore + public getBlockDataAt(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockDataAt(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public getBlockSkyLightAt(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockSkyLightAt(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public getBlockLightAt(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockLightAt(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public getBiomeId(x: number, z: number): number; + // @ts-ignore + public setBiomeId(x: number, z: number, biomeId: number): void; + // @ts-ignore + public getHeightMap(x: number, z: number): number; + // @ts-ignore + public setHeightMap(x: number, z: number, value: number): void; + // @ts-ignore + public getChunks(): java.util.Map; + // @ts-ignore + public getChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public getChunk(chunkX: number, chunkZ: number, create: boolean): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public getChunkIfLoaded(chunkX: number, chunkZ: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public generateChunkCallback(x: number, z: number, chunk: cn.nukkit.level.format.generic.BaseFullChunk): void; + // @ts-ignore + public generateChunkCallback(x: number, z: number, chunk: cn.nukkit.level.format.generic.BaseFullChunk, isPopulated: boolean): void; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number, chunk: cn.nukkit.level.format.generic.BaseFullChunk): void; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number, chunk: cn.nukkit.level.format.generic.BaseFullChunk, unload: boolean): void; + // @ts-ignore + public getHighestBlockAt(x: number, z: number): number; + // @ts-ignore + public getMapColorAt(x: number, z: number): cn.nukkit.utils.BlockColor; + // @ts-ignore + public isChunkLoaded(x: number, z: number): boolean; + // @ts-ignore + public isChunkGenerated(x: number, z: number): boolean; + // @ts-ignore + public isChunkPopulated(x: number, z: number): boolean; + // @ts-ignore + public getSpawnLocation(): cn.nukkit.level.Position; + // @ts-ignore + public setSpawnLocation(pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + public requestChunk(x: number, z: number, player: cn.nukkit.Player): void; + // @ts-ignore + public chunkRequestCallback(timestamp: number, x: number, z: number, subChunkCount: number, payload: number): void; + // @ts-ignore + public removeEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public addEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public addBlockEntity(blockEntity: cn.nukkit.blockentity.BlockEntity): void; + // @ts-ignore + public scheduleBlockEntityUpdate(entity: cn.nukkit.blockentity.BlockEntity): void; + // @ts-ignore + public removeBlockEntity(entity: cn.nukkit.blockentity.BlockEntity): void; + // @ts-ignore + public isChunkInUse(x: number, z: number): boolean; + // @ts-ignore + public isChunkInUse(hash: number): boolean; + // @ts-ignore + public loadChunk(x: number, z: number): boolean; + // @ts-ignore + public loadChunk(x: number, z: number, generate: boolean): boolean; + // @ts-ignore + public unloadChunkRequest(x: number, z: number): boolean; + // @ts-ignore + public unloadChunkRequest(x: number, z: number, safe: boolean): boolean; + // @ts-ignore + public cancelUnloadChunkRequest(x: number, z: number): void; + // @ts-ignore + public cancelUnloadChunkRequest(hash: number): void; + // @ts-ignore + public unloadChunk(x: number, z: number): boolean; + // @ts-ignore + public unloadChunk(x: number, z: number, safe: boolean): boolean; + // @ts-ignore + public unloadChunk(x: number, z: number, safe: boolean, trySave: boolean): boolean; + // @ts-ignore + public isSpawnChunk(X: number, Z: number): boolean; + // @ts-ignore + public getSafeSpawn(): cn.nukkit.level.Position; + // @ts-ignore + public getSafeSpawn(spawn: cn.nukkit.math.Vector3): cn.nukkit.level.Position; + // @ts-ignore + public getTime(): number; + // @ts-ignore + public isDaytime(): boolean; + // @ts-ignore + public getCurrentTick(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getFolderName(): string; + // @ts-ignore + public setTime(time: number): void; + // @ts-ignore + public stopTime(): void; + // @ts-ignore + public startTime(): void; + // @ts-ignore + public getSeed(): number; + // @ts-ignore + public setSeed(seed: number): void; + // @ts-ignore + public populateChunk(x: number, z: number): boolean; + // @ts-ignore + public populateChunk(x: number, z: number, force: boolean): boolean; + // @ts-ignore + public generateChunk(x: number, z: number): void; + // @ts-ignore + public generateChunk(x: number, z: number, force: boolean): void; + // @ts-ignore + public regenerateChunk(x: number, z: number): void; + // @ts-ignore + public doChunkGarbageCollection(): void; + // @ts-ignore + public doGarbageCollection(allocatedTime: number): void; + // @ts-ignore + public unloadChunks(): void; + // @ts-ignore + public unloadChunks(force: boolean): void; + // @ts-ignore + public unloadChunks(maxUnload: number, force: boolean): void; + // @ts-ignore + public setMetadata(metadataKey: string, newMetadataValue: cn.nukkit.metadata.MetadataValue): void; + // @ts-ignore + public getMetadata(metadataKey: string): java.util.List; + // @ts-ignore + public hasMetadata(metadataKey: string): boolean; + // @ts-ignore + public removeMetadata(metadataKey: string, owningPlugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public addEntityMovement(entity: cn.nukkit.entity.Entity, x: number, y: number, z: number, yaw: number, pitch: number, headYaw: number): void; + // @ts-ignore + public isRaining(): boolean; + // @ts-ignore + public setRaining(raining: boolean): boolean; + // @ts-ignore + public getRainTime(): number; + // @ts-ignore + public setRainTime(rainTime: number): void; + // @ts-ignore + public isThundering(): boolean; + // @ts-ignore + public setThundering(thundering: boolean): boolean; + // @ts-ignore + public getThunderTime(): number; + // @ts-ignore + public setThunderTime(thunderTime: number): void; + // @ts-ignore + public sendWeather(players: cn.nukkit.Player): void; + // @ts-ignore + public sendWeather(player: cn.nukkit.Player): void; + // @ts-ignore + public sendWeather(players: java.util.Collection): void; + // @ts-ignore + public getDimension(): number; + // @ts-ignore + public canBlockSeeSky(pos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public getStrongPower(pos: cn.nukkit.math.Vector3, direction: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public getStrongPower(pos: cn.nukkit.math.Vector3): number; + // @ts-ignore + public isSidePowered(pos: cn.nukkit.math.Vector3, face: cn.nukkit.math.BlockFace): boolean; + // @ts-ignore + public getRedstonePower(pos: cn.nukkit.math.Vector3, face: cn.nukkit.math.BlockFace): number; + // @ts-ignore + public isBlockPowered(pos: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public isBlockIndirectlyGettingPowered(pos: cn.nukkit.math.Vector3): number; + // @ts-ignore + public isAreaLoaded(bb: cn.nukkit.math.AxisAlignedBB): boolean; + // @ts-ignore + public getUpdateLCG(): number; + // @ts-ignore + public createPortal(target: cn.nukkit.block.Block): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.Location.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.Location.d.ts new file mode 100644 index 00000000..4073bf1f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.Location.d.ts @@ -0,0 +1,79 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class Location extends cn.nukkit.level.Position { + // @ts-ignore + constructor() + // @ts-ignore + constructor(x: number) + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + constructor(x: number, y: number, z: number, level: cn.nukkit.level.Level) + // @ts-ignore + constructor(x: number, y: number, z: number) + // @ts-ignore + constructor(x: number, y: number, z: number, yaw: number) + // @ts-ignore + constructor(x: number, y: number, z: number, yaw: number, pitch: number) + // @ts-ignore + constructor(x: number, y: number, z: number, yaw: number, pitch: number, level: cn.nukkit.level.Level) + // @ts-ignore + public yaw: number; + // @ts-ignore + public pitch: number; + // @ts-ignore + public static fromObject(pos: cn.nukkit.math.Vector3): cn.nukkit.level.Location; + // @ts-ignore + public static fromObject(pos: cn.nukkit.math.Vector3, level: cn.nukkit.level.Level): cn.nukkit.level.Location; + // @ts-ignore + public static fromObject(pos: cn.nukkit.math.Vector3, level: cn.nukkit.level.Level, yaw: number): cn.nukkit.level.Location; + // @ts-ignore + public static fromObject(pos: cn.nukkit.math.Vector3, level: cn.nukkit.level.Level, yaw: number, pitch: number): cn.nukkit.level.Location; + // @ts-ignore + public getYaw(): number; + // @ts-ignore + public getPitch(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public getLocation(): cn.nukkit.level.Location; + // @ts-ignore + public add(x: number): cn.nukkit.level.Location; + // @ts-ignore + public add(x: number, y: number): cn.nukkit.level.Location; + // @ts-ignore + public add(x: number, y: number, z: number): cn.nukkit.level.Location; + // @ts-ignore + public add(x: cn.nukkit.math.Vector3): cn.nukkit.level.Location; + // @ts-ignore + public subtract(): cn.nukkit.level.Location; + // @ts-ignore + public subtract(x: number): cn.nukkit.level.Location; + // @ts-ignore + public subtract(x: number, y: number): cn.nukkit.level.Location; + // @ts-ignore + public subtract(x: number, y: number, z: number): cn.nukkit.level.Location; + // @ts-ignore + public subtract(x: cn.nukkit.math.Vector3): cn.nukkit.level.Location; + // @ts-ignore + public multiply(number: number): cn.nukkit.level.Location; + // @ts-ignore + public divide(number: number): cn.nukkit.level.Location; + // @ts-ignore + public ceil(): cn.nukkit.level.Location; + // @ts-ignore + public floor(): cn.nukkit.level.Location; + // @ts-ignore + public round(): cn.nukkit.level.Location; + // @ts-ignore + public abs(): cn.nukkit.level.Location; + // @ts-ignore + public getDirectionVector(): cn.nukkit.math.Vector3; + // @ts-ignore + public clone(): cn.nukkit.level.Location; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.MovingObjectPosition.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.MovingObjectPosition.d.ts new file mode 100644 index 00000000..d4012f86 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.MovingObjectPosition.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class MovingObjectPosition extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public typeOfHit: number; + // @ts-ignore + public blockX: number; + // @ts-ignore + public blockY: number; + // @ts-ignore + public blockZ: number; + // @ts-ignore + public sideHit: number; + // @ts-ignore + public hitVector: cn.nukkit.math.Vector3; + // @ts-ignore + public entityHit: cn.nukkit.entity.Entity; + // @ts-ignore + public static fromBlock(x: number, y: number, z: number, side: number, hitVector: cn.nukkit.math.Vector3): cn.nukkit.level.MovingObjectPosition; + // @ts-ignore + public static fromEntity(entity: cn.nukkit.entity.Entity): cn.nukkit.level.MovingObjectPosition; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.ParticleEffect.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.ParticleEffect.d.ts new file mode 100644 index 00000000..8231cd67 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.ParticleEffect.d.ts @@ -0,0 +1,247 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class ParticleEffect extends java.lang.Enum { + // @ts-ignore + public static ARROWSPELL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BALLOON_GAS: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BASIC_BUBBLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BASIC_BUBBLE_MANUAL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BASIC_CRIT: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BASIC_FLAME: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BASIC_PORTAL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BASIC_SMOKE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BLEACH: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BLOCK_DESTRUCT: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BLOCK_SLIDE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BREAKING_ITEM_ICON: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BREAKING_ITEM_TERRAIN: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BUBBLE_COLUMN_BUBBLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BUBBLE_COLUMN_DOWN: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static BUBBLE_COLUMN_UP: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CAMERA_SHOOT_EXPLOSION: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CAMPFIRE_SMOKE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CAMPFIRE_SMOKE_TALL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CAULDRONSPELL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CAULDRON_BUBBLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CAULDRON_SPLASH: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static COLORED_FLAME: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CONDUIT: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CONDUIT_ABSORB: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CONDUIT_ATTACK: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static CRITICAL_HIT: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static DOLPHIN_MOVE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static DRAGON_BREATH_FIRE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static DRAGON_BREATH_LINGERING: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static DRAGON_BREATH_TRAIL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static DRAGON_DEATH_EXPLOSION: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static DRAGON_DESTROY_BLOCK: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static DRAGON_DYING_EXPLOSION: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static ENCHANTING_TABLE_PARTICLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static ENDROD: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static END_CHEST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EVAPORATION_ELEPHANT_TOOTHPASTE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EVOCATION_FANG: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EVOKER_SPELL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EXPLOSION_CAULDRON: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EXPLOSION_DEATH: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EXPLOSION_EGG_DESTROY: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EXPLOSION_EYEOFENDER_DEATH: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EXPLOSION_LABTABLE_FIRE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EXPLOSION_LEVEL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EXPLOSION_MANUAL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static EYE_OF_ENDER_BUBBLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FALLING_BORDER_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FALLING_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FALLING_DUST_CONCRETE_POWDER: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FALLING_DUST_DRAGON_EGG: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FALLING_DUST_GRAVEL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FALLING_DUST_RED_SAND: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FALLING_DUST_SAND: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FALLING_DUST_SCAFFOLDING: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FALLING_DUST_TOP_SNOW: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FISH_HOOK: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static FISH_POS: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static GUARDIAN_ATTACK: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static GUARDIAN_WATER_MOVE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static HEART: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static HONEY_DRIP: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static HUGE_EXPLOSION_LAB_MISC: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static HUGE_EXPLOSION_LEVEL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static ICE_EVAPORATION: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static INK: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static KNOCKBACK_ROAR: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static LAB_TABLE_HEATBLOCK_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static LAB_TABLE_MISC_MYSTICAL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static LARGE_EXPLOSION_LEVEL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static LAVA_DRIP: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static LAVA_PARTICLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static LLAMA_SPIT: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static MAGNESIUM_SALTS: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static MOBFLAME: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static MOBFLAME_SINGLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static MOBSPELL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static MOB_BLOCK_SPAWN: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static MOB_PORTAL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static MYCELIUM_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static NECTAR_DRIP: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static NOTE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static OBSIDIAN_GLOW_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static PHANTOM_TRAIL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static PORTAL_DIRECTIONAL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static PORTAL_EAST_WEST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static PORTAL_NORTH_SOUTH: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static RAIN_SPLASH: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static REDSTONE_ORE_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static REDSTONE_REPEATER_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static REDSTONE_TORCH_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static REDSTONE_WIRE_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static RISING_BORDER_DUST: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static SHULKER_BULLET: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static SILVERFISH_GRIEF: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static SPARKLER: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static SPLASHPOTIONSPELL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static SPONGE_ABSORB_BUBBLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static SQUID_FLEE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static SQUID_INK_BUBBLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static SQUID_MOVE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static STUNNED: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static TOTEM: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static TOTEM_MANUAL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static UNDERWATER_TORCH_BUBBLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static VILLAGER_ANGRY: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static VILLAGER_HAPPY: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static WATER_DRIP: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static WATER_EVAPORATION_ACTOR: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static WATER_EVAPORATION_BUCKET: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static WATER_EVAPORATION_MANUAL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static WATER_SPASH_MANUAL: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static WATER_SPLASH: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static WATER_WAKE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static WITHER_BOSS_INVULNERABLE: cn.nukkit.level.ParticleEffect; + // @ts-ignore + public static values(): cn.nukkit.level.ParticleEffect[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.level.ParticleEffect; + // @ts-ignore + public getIdentifier(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.Position.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.Position.d.ts new file mode 100644 index 00000000..89434a26 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.Position.d.ts @@ -0,0 +1,81 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class Position extends cn.nukkit.math.Vector3 { + // @ts-ignore + constructor() + // @ts-ignore + constructor(x: number) + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + constructor(x: number, y: number, z: number) + // @ts-ignore + constructor(x: number, y: number, z: number, level: cn.nukkit.level.Level) + // @ts-ignore + public level: cn.nukkit.level.Level; + // @ts-ignore + public static fromObject(pos: cn.nukkit.math.Vector3): cn.nukkit.level.Position; + // @ts-ignore + public static fromObject(pos: cn.nukkit.math.Vector3, level: cn.nukkit.level.Level): cn.nukkit.level.Position; + // @ts-ignore + public getLevel(): cn.nukkit.level.Level; + // @ts-ignore + public setLevel(level: cn.nukkit.level.Level): cn.nukkit.level.Position; + // @ts-ignore + public isValid(): boolean; + // @ts-ignore + public setStrong(): boolean; + // @ts-ignore + public setWeak(): boolean; + // @ts-ignore + public getSide(face: cn.nukkit.math.BlockFace): cn.nukkit.level.Position; + // @ts-ignore + public getSide(face: cn.nukkit.math.BlockFace, step: number): cn.nukkit.level.Position; + // @ts-ignore + public toString(): string; + // @ts-ignore + public setComponents(x: number, y: number, z: number): cn.nukkit.level.Position; + // @ts-ignore + public getLevelBlock(): cn.nukkit.block.Block; + // @ts-ignore + public getLocation(): cn.nukkit.level.Location; + // @ts-ignore + public add(x: number): cn.nukkit.level.Position; + // @ts-ignore + public add(x: number, y: number): cn.nukkit.level.Position; + // @ts-ignore + public add(x: number, y: number, z: number): cn.nukkit.level.Position; + // @ts-ignore + public add(x: cn.nukkit.math.Vector3): cn.nukkit.level.Position; + // @ts-ignore + public subtract(): cn.nukkit.level.Position; + // @ts-ignore + public subtract(x: number): cn.nukkit.level.Position; + // @ts-ignore + public subtract(x: number, y: number): cn.nukkit.level.Position; + // @ts-ignore + public subtract(x: number, y: number, z: number): cn.nukkit.level.Position; + // @ts-ignore + public subtract(x: cn.nukkit.math.Vector3): cn.nukkit.level.Position; + // @ts-ignore + public multiply(number: number): cn.nukkit.level.Position; + // @ts-ignore + public divide(number: number): cn.nukkit.level.Position; + // @ts-ignore + public ceil(): cn.nukkit.level.Position; + // @ts-ignore + public floor(): cn.nukkit.level.Position; + // @ts-ignore + public round(): cn.nukkit.level.Position; + // @ts-ignore + public abs(): cn.nukkit.level.Position; + // @ts-ignore + public clone(): cn.nukkit.level.Position; + // @ts-ignore + public getChunk(): cn.nukkit.level.format.FullChunk; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.Sound.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.Sound.d.ts new file mode 100644 index 00000000..86415f20 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.Sound.d.ts @@ -0,0 +1,1197 @@ +declare namespace cn { + namespace nukkit { + namespace level { + // @ts-ignore + class Sound extends java.lang.Enum { + // @ts-ignore + public static AMBIENT_WEATHER_THUNDER: cn.nukkit.level.Sound; + // @ts-ignore + public static AMBIENT_WEATHER_LIGHTNING_IMPACT: cn.nukkit.level.Sound; + // @ts-ignore + public static AMBIENT_WEATHER_RAIN: cn.nukkit.level.Sound; + // @ts-ignore + public static BEACON_ACTIVATE: cn.nukkit.level.Sound; + // @ts-ignore + public static BEACON_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static BEACON_DEACTIVATE: cn.nukkit.level.Sound; + // @ts-ignore + public static BEACON_POWER: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_LANTERN_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_LANTERN_FALL: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_LANTERN_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_LANTERN_PLACE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_LANTERN_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BAMBOO_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BAMBOO_FALL: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BAMBOO_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BAMBOO_PLACE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BAMBOO_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BAMBOO_SAPLING_PLACE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BAMBOO_SAPLING_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_CAMPFIRE_CRACKLE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BARREL_CLOSE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BARREL_OPEN: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_FALSE_PERMISSIONS: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_END_PORTAL_SPAWN: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_END_PORTAL_FRAME_FILL: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_ITEMFRAME_ADD_ITEM: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_ITEMFRAME_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_ITEMFRAME_PLACE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_ITEMFRAME_REMOVE_ITEM: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_ITEMFRAME_ROTATE_ITEM: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_CHORUSFLOWER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_CHORUSFLOWER_GROW: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_COMPOSTER_FILL: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_COMPOSTER_FILL_SUCCESS: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_COMPOSTER_EMPTY: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_COMPOSTER_READY: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_LOOM_USE: cn.nukkit.level.Sound; + // @ts-ignore + public static UI_LOOM_TAKE_RESULT: cn.nukkit.level.Sound; + // @ts-ignore + public static UI_CARTOGRAPHY_TABLE_TAKE_RESULT: cn.nukkit.level.Sound; + // @ts-ignore + public static UI_LOOM_SELECT_PATTERN: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_STONECUTTER_USE: cn.nukkit.level.Sound; + // @ts-ignore + public static UI_STONECUTTER_TAKE_RESULT: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_CARTOGRAPHY_TABLE_USE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_GRINDSTONE_USE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_TURTLE_EGG_DROP: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_TURTLE_EGG_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_TURTLE_EGG_CRACK: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SCAFFOLDING_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SCAFFOLDING_FALL: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SCAFFOLDING_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SCAFFOLDING_PLACE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SCAFFOLDING_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SCAFFOLDING_CLIMB: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SWEET_BERRY_BUSH_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SWEET_BERRY_BUSH_PLACE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SWEET_BERRY_BUSH_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SWEET_BERRY_BUSH_PICK: cn.nukkit.level.Sound; + // @ts-ignore + public static BUCKET_EMPTY_LAVA: cn.nukkit.level.Sound; + // @ts-ignore + public static BUCKET_EMPTY_WATER: cn.nukkit.level.Sound; + // @ts-ignore + public static BUCKET_FILL_LAVA: cn.nukkit.level.Sound; + // @ts-ignore + public static BUCKET_FILL_WATER: cn.nukkit.level.Sound; + // @ts-ignore + public static BUCKET_FILL_FISH: cn.nukkit.level.Sound; + // @ts-ignore + public static BUCKET_EMPTY_FISH: cn.nukkit.level.Sound; + // @ts-ignore + public static BOTTLE_DRAGONBREATH: cn.nukkit.level.Sound; + // @ts-ignore + public static CAULDRON_EXPLODE: cn.nukkit.level.Sound; + // @ts-ignore + public static CAULDRON_DYEARMOR: cn.nukkit.level.Sound; + // @ts-ignore + public static CAULDRON_CLEANARMOR: cn.nukkit.level.Sound; + // @ts-ignore + public static CAULDRON_CLEANBANNER: cn.nukkit.level.Sound; + // @ts-ignore + public static CAULDRON_FILLPOTION: cn.nukkit.level.Sound; + // @ts-ignore + public static CAULDRON_TAKEPOTION: cn.nukkit.level.Sound; + // @ts-ignore + public static CAULDRON_FILLWATER: cn.nukkit.level.Sound; + // @ts-ignore + public static CAULDRON_TAKEWATER: cn.nukkit.level.Sound; + // @ts-ignore + public static CAULDRON_ADDDYE: cn.nukkit.level.Sound; + // @ts-ignore + public static CONDUIT_ACTIVATE: cn.nukkit.level.Sound; + // @ts-ignore + public static CONDUIT_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static CONDUIT_ATTACK: cn.nukkit.level.Sound; + // @ts-ignore + public static CONDUIT_DEACTIVATE: cn.nukkit.level.Sound; + // @ts-ignore + public static CONDUIT_SHORT: cn.nukkit.level.Sound; + // @ts-ignore + public static CROSSBOW_LOADING_START: cn.nukkit.level.Sound; + // @ts-ignore + public static CROSSBOW_LOADING_MIDDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static CROSSBOW_LOADING_END: cn.nukkit.level.Sound; + // @ts-ignore + public static CROSSBOW_SHOOT: cn.nukkit.level.Sound; + // @ts-ignore + public static CROSSBOW_QUICK_CHARGE_START: cn.nukkit.level.Sound; + // @ts-ignore + public static CROSSBOW_QUICK_CHARGE_MIDDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static CROSSBOW_QUICK_CHARGE_END: cn.nukkit.level.Sound; + // @ts-ignore + public static DAMAGE_FALLBIG: cn.nukkit.level.Sound; + // @ts-ignore + public static DAMAGE_FALLSMALL: cn.nukkit.level.Sound; + // @ts-ignore + public static ELYTRA_LOOP: cn.nukkit.level.Sound; + // @ts-ignore + public static GAME_PLAYER_ATTACK_NODAMAGE: cn.nukkit.level.Sound; + // @ts-ignore + public static GAME_PLAYER_ATTACK_STRONG: cn.nukkit.level.Sound; + // @ts-ignore + public static GAME_PLAYER_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static GAME_PLAYER_DIE: cn.nukkit.level.Sound; + // @ts-ignore + public static DIG_CLOTH: cn.nukkit.level.Sound; + // @ts-ignore + public static DIG_GRASS: cn.nukkit.level.Sound; + // @ts-ignore + public static DIG_GRAVEL: cn.nukkit.level.Sound; + // @ts-ignore + public static DIG_SAND: cn.nukkit.level.Sound; + // @ts-ignore + public static DIG_SNOW: cn.nukkit.level.Sound; + // @ts-ignore + public static DIG_STONE: cn.nukkit.level.Sound; + // @ts-ignore + public static DIG_WOOD: cn.nukkit.level.Sound; + // @ts-ignore + public static TILE_PISTON_IN: cn.nukkit.level.Sound; + // @ts-ignore + public static TILE_PISTON_OUT: cn.nukkit.level.Sound; + // @ts-ignore + public static FIRE_FIRE: cn.nukkit.level.Sound; + // @ts-ignore + public static FIRE_IGNITE: cn.nukkit.level.Sound; + // @ts-ignore + public static LEASHKNOT_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static LEASHKNOT_PLACE: cn.nukkit.level.Sound; + // @ts-ignore + public static FIREWORK_BLAST: cn.nukkit.level.Sound; + // @ts-ignore + public static FIREWORK_LARGE_BLAST: cn.nukkit.level.Sound; + // @ts-ignore + public static FIREWORK_LAUNCH: cn.nukkit.level.Sound; + // @ts-ignore + public static FIREWORK_SHOOT: cn.nukkit.level.Sound; + // @ts-ignore + public static FIREWORK_TWINKLE: cn.nukkit.level.Sound; + // @ts-ignore + public static ARMOR_EQUIP_CHAIN: cn.nukkit.level.Sound; + // @ts-ignore + public static ARMOR_EQUIP_DIAMOND: cn.nukkit.level.Sound; + // @ts-ignore + public static ARMOR_EQUIP_GENERIC: cn.nukkit.level.Sound; + // @ts-ignore + public static ARMOR_EQUIP_GOLD: cn.nukkit.level.Sound; + // @ts-ignore + public static ARMOR_EQUIP_IRON: cn.nukkit.level.Sound; + // @ts-ignore + public static ARMOR_EQUIP_LEATHER: cn.nukkit.level.Sound; + // @ts-ignore + public static LIQUID_LAVA: cn.nukkit.level.Sound; + // @ts-ignore + public static LIQUID_LAVAPOP: cn.nukkit.level.Sound; + // @ts-ignore + public static LIQUID_WATER: cn.nukkit.level.Sound; + // @ts-ignore + public static BUBBLE_POP: cn.nukkit.level.Sound; + // @ts-ignore + public static BUBBLE_UP: cn.nukkit.level.Sound; + // @ts-ignore + public static BUBBLE_UPINSIDE: cn.nukkit.level.Sound; + // @ts-ignore + public static BUBBLE_DOWN: cn.nukkit.level.Sound; + // @ts-ignore + public static BUBBLE_DOWNINSIDE: cn.nukkit.level.Sound; + // @ts-ignore + public static MINECART_BASE: cn.nukkit.level.Sound; + // @ts-ignore + public static MINECART_INSIDE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_FURNACE_LIT: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BLASTFURNACE_FIRE_CRACKLE: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_SMOKER_SMOKE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_AGENT_SPAWN: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ARMOR_STAND_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ARMOR_STAND_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ARMOR_STAND_LAND: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ARMOR_STAND_PLACE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BAT_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BAT_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BAT_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BAT_TAKEOFF: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BLAZE_BREATHE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BLAZE_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BLAZE_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BLAZE_SHOOT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CHICKEN_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CHICKEN_PLOP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CHICKEN_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CHICKEN_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_COW_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_COW_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_COW_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_COW_MILK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CREEPER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CREEPER_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_IDLE_WATER: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_ATTACK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_BLOWHOLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_EAT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_JUMP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_PLAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_SPLASH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DOLPHIN_SWIM: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DROWNED_SAY_WATER: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DROWNED_DEATH_WATER: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DROWNED_HURT_WATER: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DROWNED_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DROWNED_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DROWNED_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DROWNED_SHOOT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DROWNED_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_DROWNED_SWIM: cn.nukkit.level.Sound; + // @ts-ignore + public static ENTITY_ZOMBIE_CONVERTED_TO_DROWNED: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMEN_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMEN_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMEN_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMEN_PORTAL: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMEN_SCREAM: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMEN_STARE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERDRAGON_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERDRAGON_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERDRAGON_FLAP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERDRAGON_GROWL: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_AGGRO: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_SNIFF: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_BITE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_EAT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_SCREECH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_SLEEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FOX_SPIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GHAST_AFFECTIONATE_SCREAM: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GHAST_CHARGE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GHAST_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GHAST_FIREBALL: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GHAST_MOAN: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GHAST_SCREAM: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GUARDIAN_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GUARDIAN_ATTACK_LOOP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ELDERGUARDIAN_CURSE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ELDERGUARDIAN_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ELDERGUARDIAN_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ELDERGUARDIAN_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GUARDIAN_FLOP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GUARDIAN_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GUARDIAN_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GUARDIAN_LAND_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GUARDIAN_LAND_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_GUARDIAN_LAND_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FISH_FLOP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FISH_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_FISH_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_LLAMA_ANGRY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_LLAMA_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_LLAMA_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_LLAMA_SPIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_LLAMA_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_LLAMA_EAT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_LLAMA_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_LLAMA_SWAG: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_ANGRY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_ARMOR: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_BREATHE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_DONKEY_ANGRY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_DONKEY_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_DONKEY_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_DONKEY_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_EAT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_GALLOP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_JUMP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_LAND: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_LEATHER: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_SKELETON_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_SKELETON_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_SKELETON_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_SOFT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_WOOD: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_ZOMBIE_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_ZOMBIE_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HORSE_ZOMBIE_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HUSK_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HUSK_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HUSK_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_HUSK_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RAVAGER_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RAVAGER_BITE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RAVAGER_CELEBRATE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RAVAGER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RAVAGER_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RAVAGER_ROAR: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RAVAGER_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RAVAGER_STUN: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_IRONGOLEM_THROW: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_IRONGOLEM_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_IRONGOLEM_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_IRONGOLEM_WALK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHULKER_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHULKER_CLOSE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHULKER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHULKER_CLOSE_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHULKER_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHULKER_OPEN: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHULKER_SHOOT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHULKER_TELEPORT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHULKER_BULLET_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_MAGMACUBE_BIG: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_MAGMACUBE_JUMP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_MAGMACUBE_SMALL: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_MOOSHROOM_CONVERT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_MOOSHROOM_EAT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_MOOSHROOM_SUSPICIOUS_MILK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PARROT_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PARROT_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PARROT_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PARROT_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PARROT_EAT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PARROT_FLY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PHANTOM_BITE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PHANTOM_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PHANTOM_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PHANTOM_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PHANTOM_SWOOP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PIG_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PIG_BOOST: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PIG_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PIG_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PILLAGER_CELEBRATE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PILLAGER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PILLAGER_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PILLAGER_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RABBIT_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RABBIT_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RABBIT_HOP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_RABBIT_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHEEP_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHEEP_SHEAR: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SHEEP_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SILVERFISH_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SILVERFISH_KILL: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SILVERFISH_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SILVERFISH_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMITE_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMITE_KILL: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMITE_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ENDERMITE_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SKELETON_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SKELETON_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SKELETON_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SKELETON_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SLIME_BIG: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SLIME_SMALL: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SLIME_ATTACK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SLIME_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SLIME_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SLIME_JUMP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SLIME_SQUISH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SNOWGOLEM_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SNOWGOLEM_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SNOWGOLEM_SHOOT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SPIDER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SPIDER_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SPIDER_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SQUID_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SQUID_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_SQUID_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_TURTLE_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_TURTLE_BABY_BORN: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_TURTLE_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_TURTLE_BABY_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_TURTLE_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_TURTLE_BABY_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_TURTLE_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_TURTLE_BABY_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_TURTLE_SWIM: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_STRAY_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_STRAY_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_STRAY_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_STRAY_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VILLAGER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VILLAGER_HAGGLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VILLAGER_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VILLAGER_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VILLAGER_NO: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VILLAGER_YES: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VINDICATOR_CELEBRATE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VINDICATOR_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VINDICATOR_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VINDICATOR_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_EVOCATION_FANGS_ATTACK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_EVOCATION_ILLAGER_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_EVOCATION_ILLAGER_CAST_SPELL: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_EVOCATION_ILLAGER_CELEBRATE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_EVOCATION_ILLAGER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_EVOCATION_ILLAGER_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_EVOCATION_ILLAGER_PREPARE_ATTACK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_EVOCATION_ILLAGER_PREPARE_SUMMON: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_EVOCATION_ILLAGER_PREPARE_WOLOLO: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VEX_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VEX_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VEX_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_VEX_CHARGE: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_BOOK_PAGE_TURN: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_BOOK_PUT: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BELL_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_TRIDENT_HIT_GROUND: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_TRIDENT_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_TRIDENT_RETURN: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_TRIDENT_RIPTIDE_1: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_TRIDENT_RIPTIDE_2: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_TRIDENT_RIPTIDE_3: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_TRIDENT_THROW: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_TRIDENT_THUNDER: cn.nukkit.level.Sound; + // @ts-ignore + public static ITEM_SHIELD_BLOCK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_DISAPPEARED: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_DRINK_MILK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_DRINK_POTION: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_HAGGLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_YES: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_NO: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WANDERINGTRADER_REAPPEARED: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITCH_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITCH_CELEBRATE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITCH_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITCH_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITCH_DRINK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITCH_THROW: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITHER_AMBIENT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITHER_BREAK_BLOCK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITHER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITHER_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITHER_SHOOT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WITHER_SPAWN: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WOLF_BARK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WOLF_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WOLF_GROWL: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WOLF_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WOLF_PANTING: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WOLF_SHAKE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WOLF_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_WOLF_WHINE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_OCELOT_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_OCELOT_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CAT_EAT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CAT_HISS: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CAT_HIT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CAT_MEOW: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CAT_BEG: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CAT_STRAYMEOW: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CAT_PURR: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_CAT_PURREOW: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_POLARBEAR_BABY_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_POLARBEAR_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_POLARBEAR_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_POLARBEAR_WARNING: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_POLARBEAR_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_POLARBEAR_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_BABY_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_IDLE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_IDLE_AGGRESSIVE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_IDLE_WORRIED: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_PRESNEEZE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_SNEEZE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_BITE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_EAT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_PANDA_CANT_BREED: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_REMEDY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_UNFECT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_STEP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_WOOD: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_WOODBREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIEPIG_ZPIG: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIEPIG_ZPIGANGRY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIEPIG_ZPIGDEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIEPIG_ZPIGHURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_VILLAGER_SAY: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_VILLAGER_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_ZOMBIE_VILLAGER_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_BANJO: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_BASS: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_BASSATTACK: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_BD: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_BELL: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_BIT: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_COW_BELL: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_DIDGERIDOO: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_FLUTE: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_GUITAR: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_HARP: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_HAT: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_CHIME: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_IRON_XYLOPHONE: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_PLING: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_SNARE: cn.nukkit.level.Sound; + // @ts-ignore + public static NOTE_XYLOPHONE: cn.nukkit.level.Sound; + // @ts-ignore + public static PORTAL_PORTAL: cn.nukkit.level.Sound; + // @ts-ignore + public static PORTAL_TRAVEL: cn.nukkit.level.Sound; + // @ts-ignore + public static PORTAL_TRIGGER: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_ANVIL_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_ANVIL_LAND: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_ANVIL_USE: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_BOW: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_BOWHIT: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_BREAK: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_BURP: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_CHESTCLOSED: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_CHESTOPEN: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_SHULKERBOXCLOSED: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_SHULKERBOXOPEN: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_ENDERCHESTOPEN: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_ENDERCHESTCLOSED: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_POTION_BREWED: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_CLICK: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_DOOR_CLOSE: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_DOOR_OPEN: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_DRINK: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_DRINK_HONEY: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_EAT: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_EXPLODE: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_FIZZ: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_FUSE: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_GLASS: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_LEVELUP: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_ORB: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_POP: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_POP2: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_SCREENSHOT: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_SPLASH: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_SWIM: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_TOAST: cn.nukkit.level.Sound; + // @ts-ignore + public static RANDOM_TOTEM: cn.nukkit.level.Sound; + // @ts-ignore + public static CAMERA_TAKE_PICTURE: cn.nukkit.level.Sound; + // @ts-ignore + public static USE_LADDER: cn.nukkit.level.Sound; + // @ts-ignore + public static HIT_LADDER: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_LADDER: cn.nukkit.level.Sound; + // @ts-ignore + public static STEP_LADDER: cn.nukkit.level.Sound; + // @ts-ignore + public static USE_CLOTH: cn.nukkit.level.Sound; + // @ts-ignore + public static HIT_CLOTH: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_CLOTH: cn.nukkit.level.Sound; + // @ts-ignore + public static STEP_CLOTH: cn.nukkit.level.Sound; + // @ts-ignore + public static USE_GRASS: cn.nukkit.level.Sound; + // @ts-ignore + public static HIT_GRASS: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_GRASS: cn.nukkit.level.Sound; + // @ts-ignore + public static STEP_GRASS: cn.nukkit.level.Sound; + // @ts-ignore + public static USE_GRAVEL: cn.nukkit.level.Sound; + // @ts-ignore + public static HIT_GRAVEL: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_GRAVEL: cn.nukkit.level.Sound; + // @ts-ignore + public static STEP_GRAVEL: cn.nukkit.level.Sound; + // @ts-ignore + public static USE_SAND: cn.nukkit.level.Sound; + // @ts-ignore + public static HIT_SAND: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_SAND: cn.nukkit.level.Sound; + // @ts-ignore + public static STEP_SAND: cn.nukkit.level.Sound; + // @ts-ignore + public static USE_SLIME: cn.nukkit.level.Sound; + // @ts-ignore + public static HIT_SLIME: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_SLIME: cn.nukkit.level.Sound; + // @ts-ignore + public static STEP_SLIME: cn.nukkit.level.Sound; + // @ts-ignore + public static USE_SNOW: cn.nukkit.level.Sound; + // @ts-ignore + public static HIT_SNOW: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_SNOW: cn.nukkit.level.Sound; + // @ts-ignore + public static STEP_SNOW: cn.nukkit.level.Sound; + // @ts-ignore + public static USE_STONE: cn.nukkit.level.Sound; + // @ts-ignore + public static HIT_STONE: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_STONE: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_EGG: cn.nukkit.level.Sound; + // @ts-ignore + public static STEP_STONE: cn.nukkit.level.Sound; + // @ts-ignore + public static USE_WOOD: cn.nukkit.level.Sound; + // @ts-ignore + public static HIT_WOOD: cn.nukkit.level.Sound; + // @ts-ignore + public static FALL_WOOD: cn.nukkit.level.Sound; + // @ts-ignore + public static STEP_WOOD: cn.nukkit.level.Sound; + // @ts-ignore + public static JUMP_CLOTH: cn.nukkit.level.Sound; + // @ts-ignore + public static JUMP_GRASS: cn.nukkit.level.Sound; + // @ts-ignore + public static JUMP_GRAVEL: cn.nukkit.level.Sound; + // @ts-ignore + public static JUMP_SAND: cn.nukkit.level.Sound; + // @ts-ignore + public static JUMP_SNOW: cn.nukkit.level.Sound; + // @ts-ignore + public static JUMP_STONE: cn.nukkit.level.Sound; + // @ts-ignore + public static JUMP_WOOD: cn.nukkit.level.Sound; + // @ts-ignore + public static JUMP_SLIME: cn.nukkit.level.Sound; + // @ts-ignore + public static LAND_CLOTH: cn.nukkit.level.Sound; + // @ts-ignore + public static LAND_GRASS: cn.nukkit.level.Sound; + // @ts-ignore + public static LAND_GRAVEL: cn.nukkit.level.Sound; + // @ts-ignore + public static LAND_SAND: cn.nukkit.level.Sound; + // @ts-ignore + public static LAND_SNOW: cn.nukkit.level.Sound; + // @ts-ignore + public static LAND_STONE: cn.nukkit.level.Sound; + // @ts-ignore + public static LAND_WOOD: cn.nukkit.level.Sound; + // @ts-ignore + public static LAND_SLIME: cn.nukkit.level.Sound; + // @ts-ignore + public static VR_STUTTERTURN: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_13: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_CAT: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_BLOCKS: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_CHIRP: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_FAR: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_MALL: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_MELLOHI: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_STAL: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_STRAD: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_WARD: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_11: cn.nukkit.level.Sound; + // @ts-ignore + public static RECORD_WAIT: cn.nukkit.level.Sound; + // @ts-ignore + public static RAID_HORN: cn.nukkit.level.Sound; + // @ts-ignore + public static MUSIC_MENU: cn.nukkit.level.Sound; + // @ts-ignore + public static MUSIC_GAME: cn.nukkit.level.Sound; + // @ts-ignore + public static MUSIC_GAME_CREATIVE: cn.nukkit.level.Sound; + // @ts-ignore + public static MUSIC_GAME_END: cn.nukkit.level.Sound; + // @ts-ignore + public static MUSIC_GAME_ENDBOSS: cn.nukkit.level.Sound; + // @ts-ignore + public static MUSIC_GAME_NETHER: cn.nukkit.level.Sound; + // @ts-ignore + public static MUSIC_GAME_CREDITS: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BEE_AGGRESSIVE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BEE_DEATH: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BEE_HURT: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BEE_LOOP: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BEE_POLLINATE: cn.nukkit.level.Sound; + // @ts-ignore + public static MOB_BEE_STING: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BEEHIVE_ENTER: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BEEHIVE_EXIT: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BEEHIVE_SHEAR: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BEEHIVE_WORK: cn.nukkit.level.Sound; + // @ts-ignore + public static BLOCK_BEEHIVE_DRIP: cn.nukkit.level.Sound; + // @ts-ignore + public static values(): cn.nukkit.level.Sound[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.level.Sound; + // @ts-ignore + public getSound(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.Biome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.Biome.d.ts new file mode 100644 index 00000000..5f198c23 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.Biome.d.ts @@ -0,0 +1,67 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + // @ts-ignore + abstract class Biome extends java.lang.Object implements cn.nukkit.block.BlockID { + // @ts-ignore + constructor() + // @ts-ignore + public static MAX_BIOMES: number; + // @ts-ignore + public static biomes: cn.nukkit.level.biome.Biome[]; + // @ts-ignore + public static unorderedBiomes: java.util.List; + // @ts-ignore + protected static register(id: number, biome: cn.nukkit.level.biome.Biome): void; + // @ts-ignore + public static getBiome(id: number): cn.nukkit.level.biome.Biome; + /** + * Get Biome by name. + */ + // @ts-ignore + public static getBiome(name: string): cn.nukkit.level.biome.Biome; + // @ts-ignore + public clearPopulators(): void; + // @ts-ignore + public addPopulator(populator: cn.nukkit.level.generator.populator.type.Populator): void; + // @ts-ignore + public populateChunk(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + public getPopulators(): java.util.ArrayList; + // @ts-ignore + public getId(): number; + // @ts-ignore + public setId(id: number): void; + // @ts-ignore + public abstract getName(): string; + // @ts-ignore + public setBaseHeight(baseHeight: number): void; + // @ts-ignore + public setHeightVariation(heightVariation: number): void; + // @ts-ignore + public getBaseHeight(): number; + // @ts-ignore + public getHeightVariation(): number; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public isFreezing(): boolean; + /** + * Whether or not overhangs should generate in this biome (places where solid blocks generate over air) + * This should probably be used with a custom max elevation or things can look stupid + */ + // @ts-ignore + public doesOverhang(): boolean; + /** + * How much offset should be added to the min/max heights at this position + */ + // @ts-ignore + public getHeightOffset(x: number, z: number): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.BiomeSelector.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.BiomeSelector.d.ts new file mode 100644 index 00000000..68265f90 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.BiomeSelector.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + // @ts-ignore + class BiomeSelector extends java.lang.Object { + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom) + // @ts-ignore + public pickBiome(x: number, z: number): cn.nukkit.level.biome.Biome; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.EnumBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.EnumBiome.d.ts new file mode 100644 index 00000000..014e7141 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.EnumBiome.d.ts @@ -0,0 +1,145 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + // @ts-ignore + class EnumBiome extends java.lang.Enum { + // @ts-ignore + public static OCEAN: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static PLAINS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static DESERT: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static EXTREME_HILLS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static FOREST: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static TAIGA: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static SWAMP: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static RIVER: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static HELL: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static FROZEN_OCEAN: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static FROZEN_RIVER: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static ICE_PLAINS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MUSHROOM_ISLAND: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MUSHROOM_ISLAND_SHORE: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static BEACH: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static DESERT_HILLS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static FOREST_HILLS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static TAIGA_HILLS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static EXTREME_HILLS_EDGE: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static JUNGLE: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static JUNGLE_HILLS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static JUNGLE_EDGE: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static DEEP_OCEAN: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static STONE_BEACH: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static COLD_BEACH: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static BIRCH_FOREST: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static BIRCH_FOREST_HILLS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static ROOFED_FOREST: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static COLD_TAIGA: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static COLD_TAIGA_HILLS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MEGA_TAIGA: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MEGA_TAIGA_HILLS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static EXTREME_HILLS_PLUS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static SAVANNA: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static SAVANNA_PLATEAU: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MESA: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MESA_PLATEAU_F: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MESA_PLATEAU: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static SUNFLOWER_PLAINS: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static DESERT_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static EXTREME_HILLS_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static FLOWER_FOREST: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static TAIGA_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static SWAMPLAND_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static ICE_PLAINS_SPIKES: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static JUNGLE_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static JUNGLE_EDGE_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static BIRCH_FOREST_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static BIRCH_FOREST_HILLS_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static ROOFED_FOREST_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static COLD_TAIGA_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MEGA_SPRUCE_TAIGA: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static EXTREME_HILLS_PLUS_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static SAVANNA_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static SAVANNA_PLATEAU_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MESA_BRYCE: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MESA_PLATEAU_F_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public static MESA_PLATEAU_M: cn.nukkit.level.biome.EnumBiome; + // @ts-ignore + public id: number; + // @ts-ignore + public biome: cn.nukkit.level.biome.Biome; + // @ts-ignore + public static values(): cn.nukkit.level.biome.EnumBiome[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.level.biome.EnumBiome; + /** + * You really shouldn't use this method if you can help it, reference the biomes directly! + */ + // @ts-ignore + public static getBiome(id: number): cn.nukkit.level.biome.Biome; + /** + * You really shouldn't use this method if you can help it, reference the biomes directly! + */ + // @ts-ignore + public static getBiome(name: string): cn.nukkit.level.biome.Biome; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.HellBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.HellBiome.d.ts new file mode 100644 index 00000000..480070ab --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.HellBiome.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + // @ts-ignore + class HellBiome extends cn.nukkit.level.biome.Biome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.beach.BeachBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.beach.BeachBiome.d.ts new file mode 100644 index 00000000..707756fb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.beach.BeachBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace beach { + // @ts-ignore + class BeachBiome extends cn.nukkit.level.biome.type.SandyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.beach.ColdBeachBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.beach.ColdBeachBiome.d.ts new file mode 100644 index 00000000..f6b65918 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.beach.ColdBeachBiome.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace beach { + // @ts-ignore + class ColdBeachBiome extends cn.nukkit.level.biome.type.SandyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getCoverBlock(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isFreezing(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertBiome.d.ts new file mode 100644 index 00000000..d13ffafe --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace desert { + // @ts-ignore + class DesertBiome extends cn.nukkit.level.biome.type.SandyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertHillsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertHillsBiome.d.ts new file mode 100644 index 00000000..bb283606 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertHillsBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace desert { + // @ts-ignore + class DesertHillsBiome extends cn.nukkit.level.biome.impl.desert.DesertBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertMBiome.d.ts new file mode 100644 index 00000000..dc4b0438 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.desert.DesertMBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace desert { + // @ts-ignore + class DesertMBiome extends cn.nukkit.level.biome.impl.desert.DesertBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsBiome.d.ts new file mode 100644 index 00000000..24ccf034 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsBiome.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace extremehills { + // @ts-ignore + class ExtremeHillsBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + constructor(tree: boolean) + // @ts-ignore + public getName(): string; + // @ts-ignore + public doesOverhang(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsEdgeBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsEdgeBiome.d.ts new file mode 100644 index 00000000..e7f9ff1a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsEdgeBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace extremehills { + // @ts-ignore + class ExtremeHillsEdgeBiome extends cn.nukkit.level.biome.impl.extremehills.ExtremeHillsBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsMBiome.d.ts new file mode 100644 index 00000000..e08e3663 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsMBiome.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace extremehills { + // @ts-ignore + class ExtremeHillsMBiome extends cn.nukkit.level.biome.impl.extremehills.ExtremeHillsPlusBiome { + // @ts-ignore + constructor() + // @ts-ignore + constructor(tree: boolean) + // @ts-ignore + public getName(): string; + // @ts-ignore + public getSurfaceBlock(y: number): number; + // @ts-ignore + public getSurfaceDepth(y: number): number; + // @ts-ignore + public getGroundDepth(y: number): number; + // @ts-ignore + public preCover(x: number, z: number): void; + // @ts-ignore + public doesOverhang(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsPlusBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsPlusBiome.d.ts new file mode 100644 index 00000000..6e40f10a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsPlusBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace extremehills { + // @ts-ignore + class ExtremeHillsPlusBiome extends cn.nukkit.level.biome.impl.extremehills.ExtremeHillsBiome { + // @ts-ignore + constructor() + // @ts-ignore + constructor(tree: boolean) + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsPlusMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsPlusMBiome.d.ts new file mode 100644 index 00000000..fc8daac1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.ExtremeHillsPlusMBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace extremehills { + // @ts-ignore + class ExtremeHillsPlusMBiome extends cn.nukkit.level.biome.impl.extremehills.ExtremeHillsMBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public doesOverhang(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.StoneBeachBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.StoneBeachBiome.d.ts new file mode 100644 index 00000000..6ca6b801 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.extremehills.StoneBeachBiome.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace extremehills { + // @ts-ignore + class StoneBeachBiome extends cn.nukkit.level.biome.type.CoveredBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getSurfaceDepth(y: number): number; + // @ts-ignore + public getSurfaceBlock(y: number): number; + // @ts-ignore + public getGroundDepth(y: number): number; + // @ts-ignore + public getGroundBlock(y: number): number; + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.FlowerForestBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.FlowerForestBiome.d.ts new file mode 100644 index 00000000..1c76d634 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.FlowerForestBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace forest { + // @ts-ignore + class FlowerForestBiome extends cn.nukkit.level.biome.impl.forest.ForestBiome { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.ForestBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.ForestBiome.d.ts new file mode 100644 index 00000000..b7631c89 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.ForestBiome.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace forest { + // @ts-ignore + class ForestBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public static TYPE_NORMAL: number; + // @ts-ignore + public static TYPE_BIRCH: number; + // @ts-ignore + public static TYPE_BIRCH_TALL: number; + // @ts-ignore + public type: number; + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.ForestHillsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.ForestHillsBiome.d.ts new file mode 100644 index 00000000..72bc9b58 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.forest.ForestHillsBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace forest { + // @ts-ignore + class ForestHillsBiome extends cn.nukkit.level.biome.impl.forest.ForestBiome { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.iceplains.IcePlainsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.iceplains.IcePlainsBiome.d.ts new file mode 100644 index 00000000..bbf32ff9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.iceplains.IcePlainsBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace iceplains { + // @ts-ignore + class IcePlainsBiome extends cn.nukkit.level.biome.type.SnowyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.iceplains.IcePlainsSpikesBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.iceplains.IcePlainsSpikesBiome.d.ts new file mode 100644 index 00000000..4090759d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.iceplains.IcePlainsSpikesBiome.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace iceplains { + // @ts-ignore + class IcePlainsSpikesBiome extends cn.nukkit.level.biome.impl.iceplains.IcePlainsBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getSurfaceBlock(y: number): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isFreezing(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleBiome.d.ts new file mode 100644 index 00000000..62b4c235 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace jungle { + // @ts-ignore + class JungleBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleEdgeBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleEdgeBiome.d.ts new file mode 100644 index 00000000..f5147b1b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleEdgeBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace jungle { + // @ts-ignore + class JungleEdgeBiome extends cn.nukkit.level.biome.impl.jungle.JungleBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleEdgeMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleEdgeMBiome.d.ts new file mode 100644 index 00000000..6e4e3509 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleEdgeMBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace jungle { + // @ts-ignore + class JungleEdgeMBiome extends cn.nukkit.level.biome.impl.jungle.JungleEdgeBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleHillsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleHillsBiome.d.ts new file mode 100644 index 00000000..ee2592e3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleHillsBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace jungle { + // @ts-ignore + class JungleHillsBiome extends cn.nukkit.level.biome.impl.jungle.JungleBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleMBiome.d.ts new file mode 100644 index 00000000..fb3b760b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.jungle.JungleMBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace jungle { + // @ts-ignore + class JungleMBiome extends cn.nukkit.level.biome.impl.jungle.JungleBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaBiome.d.ts new file mode 100644 index 00000000..91eb27ab --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaBiome.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace mesa { + // @ts-ignore + class MesaBiome extends cn.nukkit.level.biome.type.CoveredBiome { + // @ts-ignore + constructor() + // @ts-ignore + protected moundHeight: number; + // @ts-ignore + public setMoundHeight(height: number): void; + // @ts-ignore + public getSurfaceDepth(y: number): number; + // @ts-ignore + public getSurfaceBlock(y: number): number; + // @ts-ignore + public getSurfaceMeta(y: number): number; + // @ts-ignore + public getGroundDepth(y: number): number; + // @ts-ignore + public getGroundBlock(y: number): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public preCover(x: number, z: number): void; + // @ts-ignore + protected getMoundFrequency(): number; + // @ts-ignore + public getHeightOffset(x: number, z: number): number; + // @ts-ignore + protected minHill(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaBryceBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaBryceBiome.d.ts new file mode 100644 index 00000000..da355923 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaBryceBiome.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace mesa { + // @ts-ignore + class MesaBryceBiome extends cn.nukkit.level.biome.impl.mesa.MesaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + protected getMoundFrequency(): number; + // @ts-ignore + protected minHill(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauBiome.d.ts new file mode 100644 index 00000000..0d89a96c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace mesa { + // @ts-ignore + class MesaPlateauBiome extends cn.nukkit.level.biome.impl.mesa.MesaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauFBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauFBiome.d.ts new file mode 100644 index 00000000..69fa5ae6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauFBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace mesa { + // @ts-ignore + class MesaPlateauFBiome extends cn.nukkit.level.biome.impl.mesa.MesaPlateauBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getCoverBlock(): number; + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauFMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauFMBiome.d.ts new file mode 100644 index 00000000..fbbadee3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauFMBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace mesa { + // @ts-ignore + class MesaPlateauFMBiome extends cn.nukkit.level.biome.impl.mesa.MesaPlateauFBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauMBiome.d.ts new file mode 100644 index 00000000..0d7fef44 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mesa.MesaPlateauMBiome.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace mesa { + // @ts-ignore + class MesaPlateauMBiome extends cn.nukkit.level.biome.impl.mesa.MesaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + protected getMoundFrequency(): number; + // @ts-ignore + protected minHill(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mushroom.MushroomIslandBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mushroom.MushroomIslandBiome.d.ts new file mode 100644 index 00000000..0abbbff8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mushroom.MushroomIslandBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace mushroom { + // @ts-ignore + class MushroomIslandBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getSurfaceBlock(y: number): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mushroom.MushroomIslandShoreBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mushroom.MushroomIslandShoreBiome.d.ts new file mode 100644 index 00000000..f3106b3b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.mushroom.MushroomIslandShoreBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace mushroom { + // @ts-ignore + class MushroomIslandShoreBiome extends cn.nukkit.level.biome.impl.mushroom.MushroomIslandBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.DeepOceanBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.DeepOceanBiome.d.ts new file mode 100644 index 00000000..28051c6b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.DeepOceanBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace ocean { + // @ts-ignore + class DeepOceanBiome extends cn.nukkit.level.biome.impl.ocean.OceanBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.FrozenOceanBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.FrozenOceanBiome.d.ts new file mode 100644 index 00000000..0f4a524a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.FrozenOceanBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace ocean { + // @ts-ignore + class FrozenOceanBiome extends cn.nukkit.level.biome.impl.ocean.OceanBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public isFreezing(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.OceanBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.OceanBiome.d.ts new file mode 100644 index 00000000..4d248ef9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.ocean.OceanBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace ocean { + // @ts-ignore + class OceanBiome extends cn.nukkit.level.biome.type.WateryBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getGroundBlock(y: number): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.plains.PlainsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.plains.PlainsBiome.d.ts new file mode 100644 index 00000000..959c168b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.plains.PlainsBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace plains { + // @ts-ignore + class PlainsBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.plains.SunflowerPlainsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.plains.SunflowerPlainsBiome.d.ts new file mode 100644 index 00000000..c14260a7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.plains.SunflowerPlainsBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace plains { + // @ts-ignore + class SunflowerPlainsBiome extends cn.nukkit.level.biome.impl.plains.PlainsBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.river.FrozenRiverBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.river.FrozenRiverBiome.d.ts new file mode 100644 index 00000000..a9abf8b6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.river.FrozenRiverBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace river { + // @ts-ignore + class FrozenRiverBiome extends cn.nukkit.level.biome.impl.river.RiverBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public isFreezing(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.river.RiverBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.river.RiverBiome.d.ts new file mode 100644 index 00000000..ab59eb9b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.river.RiverBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace river { + // @ts-ignore + class RiverBiome extends cn.nukkit.level.biome.type.WateryBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.roofedforest.RoofedForestBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.roofedforest.RoofedForestBiome.d.ts new file mode 100644 index 00000000..a5d05241 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.roofedforest.RoofedForestBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace roofedforest { + // @ts-ignore + class RoofedForestBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.roofedforest.RoofedForestMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.roofedforest.RoofedForestMBiome.d.ts new file mode 100644 index 00000000..53c07bda --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.roofedforest.RoofedForestMBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace roofedforest { + // @ts-ignore + class RoofedForestMBiome extends cn.nukkit.level.biome.impl.roofedforest.RoofedForestBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaBiome.d.ts new file mode 100644 index 00000000..0e14a7b2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace savanna { + // @ts-ignore + class SavannaBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaMBiome.d.ts new file mode 100644 index 00000000..7fc73a74 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaMBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace savanna { + // @ts-ignore + class SavannaMBiome extends cn.nukkit.level.biome.impl.savanna.SavannaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public doesOverhang(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaPlateauBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaPlateauBiome.d.ts new file mode 100644 index 00000000..156600ff --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaPlateauBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace savanna { + // @ts-ignore + class SavannaPlateauBiome extends cn.nukkit.level.biome.impl.savanna.SavannaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaPlateauMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaPlateauMBiome.d.ts new file mode 100644 index 00000000..1ed87652 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.savanna.SavannaPlateauMBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace savanna { + // @ts-ignore + class SavannaPlateauMBiome extends cn.nukkit.level.biome.impl.savanna.SavannaPlateauBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public doesOverhang(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.swamp.SwampBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.swamp.SwampBiome.d.ts new file mode 100644 index 00000000..28b4b073 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.swamp.SwampBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace swamp { + // @ts-ignore + class SwampBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.swamp.SwamplandMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.swamp.SwamplandMBiome.d.ts new file mode 100644 index 00000000..bd0b7248 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.swamp.SwamplandMBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace swamp { + // @ts-ignore + class SwamplandMBiome extends cn.nukkit.level.biome.impl.swamp.SwampBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaBiome.d.ts new file mode 100644 index 00000000..90e43863 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaBiome.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace taiga { + // @ts-ignore + class ColdTaigaBiome extends cn.nukkit.level.biome.impl.taiga.TaigaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public getCoverBlock(): number; + // @ts-ignore + public isFreezing(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaHillsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaHillsBiome.d.ts new file mode 100644 index 00000000..f9cf6aa1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaHillsBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace taiga { + // @ts-ignore + class ColdTaigaHillsBiome extends cn.nukkit.level.biome.impl.taiga.ColdTaigaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaMBiome.d.ts new file mode 100644 index 00000000..da661ce7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.ColdTaigaMBiome.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace taiga { + // @ts-ignore + class ColdTaigaMBiome extends cn.nukkit.level.biome.impl.taiga.ColdTaigaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + // @ts-ignore + public doesOverhang(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaSpruceTaigaBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaSpruceTaigaBiome.d.ts new file mode 100644 index 00000000..6711ff91 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaSpruceTaigaBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace taiga { + // @ts-ignore + class MegaSpruceTaigaBiome extends cn.nukkit.level.biome.impl.taiga.TaigaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaTaigaBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaTaigaBiome.d.ts new file mode 100644 index 00000000..f4c9e14a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaTaigaBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace taiga { + // @ts-ignore + class MegaTaigaBiome extends cn.nukkit.level.biome.impl.taiga.TaigaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaTaigaHillsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaTaigaHillsBiome.d.ts new file mode 100644 index 00000000..9e6fe350 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.MegaTaigaHillsBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace taiga { + // @ts-ignore + class MegaTaigaHillsBiome extends cn.nukkit.level.biome.impl.taiga.MegaTaigaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaBiome.d.ts new file mode 100644 index 00000000..64fc368a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace taiga { + // @ts-ignore + class TaigaBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaHillsBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaHillsBiome.d.ts new file mode 100644 index 00000000..53de4945 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaHillsBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace taiga { + // @ts-ignore + class TaigaHillsBiome extends cn.nukkit.level.biome.impl.taiga.TaigaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaMBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaMBiome.d.ts new file mode 100644 index 00000000..e7bf3ee1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.impl.taiga.TaigaMBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace impl { + namespace taiga { + // @ts-ignore + class TaigaMBiome extends cn.nukkit.level.biome.impl.taiga.TaigaBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.CoveredBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.CoveredBiome.d.ts new file mode 100644 index 00000000..e86852db --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.CoveredBiome.d.ts @@ -0,0 +1,70 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace type { + // @ts-ignore + abstract class CoveredBiome extends cn.nukkit.level.biome.Biome { + // @ts-ignore + constructor() + // @ts-ignore + public synchronizeCover: java.lang.Object; + /** + * A single block placed on top of the surface blocks + */ + // @ts-ignore + public getCoverBlock(): number; + /** + * The amount of times the surface block should be used + *

+ * If < 0 bad things will happen! + *

+ */ + // @ts-ignore + public getSurfaceDepth(y: number): number; + /** + * Between cover and ground + */ + // @ts-ignore + public abstract getSurfaceBlock(y: number): number; + /** + * The metadata of the surface block + */ + // @ts-ignore + public getSurfaceMeta(y: number): number; + /** + * The amount of times the ground block should be used + *

+ * If < 0 bad things will happen! + */ + // @ts-ignore + public getGroundDepth(y: number): number; + /** + * Between surface and stone + */ + // @ts-ignore + public abstract getGroundBlock(y: number): number; + /** + * The metadata of the ground block + */ + // @ts-ignore + public getGroundMeta(y: number): number; + /** + * The block used as stone/below all other surface blocks + */ + // @ts-ignore + public getStoneBlock(): number; + /** + * Called before a new block column is covered. Biomes can update any relevant variables here before covering. + *

+ * Biome covering is synchronized on the biome, so thread safety isn't an issue. + *

+ */ + // @ts-ignore + public preCover(x: number, z: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.GrassyBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.GrassyBiome.d.ts new file mode 100644 index 00000000..d1f96e09 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.GrassyBiome.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace type { + // @ts-ignore + abstract class GrassyBiome extends cn.nukkit.level.biome.type.CoveredBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getSurfaceBlock(y: number): number; + // @ts-ignore + public getGroundBlock(y: number): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.SandyBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.SandyBiome.d.ts new file mode 100644 index 00000000..4f205729 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.SandyBiome.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace type { + // @ts-ignore + abstract class SandyBiome extends cn.nukkit.level.biome.type.CoveredBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getSurfaceDepth(y: number): number; + // @ts-ignore + public getSurfaceBlock(y: number): number; + // @ts-ignore + public getGroundDepth(y: number): number; + // @ts-ignore + public getGroundBlock(y: number): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.SnowyBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.SnowyBiome.d.ts new file mode 100644 index 00000000..f9796012 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.SnowyBiome.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace type { + // @ts-ignore + abstract class SnowyBiome extends cn.nukkit.level.biome.type.GrassyBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getCoverBlock(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.WateryBiome.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.WateryBiome.d.ts new file mode 100644 index 00000000..7bc7f2a9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.biome.type.WateryBiome.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace biome { + namespace type { + // @ts-ignore + abstract class WateryBiome extends cn.nukkit.level.biome.type.CoveredBiome { + // @ts-ignore + constructor() + // @ts-ignore + public getSurfaceDepth(y: number): number; + // @ts-ignore + public getSurfaceBlock(y: number): number; + // @ts-ignore + public getGroundDepth(y: number): number; + // @ts-ignore + public getGroundBlock(y: number): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.Chunk.Entry.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.Chunk.Entry.d.ts new file mode 100644 index 00000000..be1dbbb1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.Chunk.Entry.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace Chunk { + // @ts-ignore + class Entry extends java.lang.Object { + // @ts-ignore + constructor(chunkX: number, chunkZ: number) + // @ts-ignore + public chunkX: number; + // @ts-ignore + public chunkZ: number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.Chunk.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.Chunk.d.ts new file mode 100644 index 00000000..6ce461e9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.Chunk.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + // @ts-ignore + interface Chunk extends cn.nukkit.level.format.FullChunk { + // @ts-ignore + SECTION_COUNT: number; + // @ts-ignore + isSectionEmpty(fY: number): boolean; + // @ts-ignore + getSection(fY: number): cn.nukkit.level.format.ChunkSection; + // @ts-ignore + setSection(fY: number, section: cn.nukkit.level.format.ChunkSection): boolean; + // @ts-ignore + getSections(): cn.nukkit.level.format.ChunkSection[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.ChunkSection.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.ChunkSection.d.ts new file mode 100644 index 00000000..09215e4e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.ChunkSection.d.ts @@ -0,0 +1,53 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + // @ts-ignore + interface ChunkSection { + // @ts-ignore + getY(): number; + // @ts-ignore + getBlockId(x: number, y: number, z: number): number; + // @ts-ignore + setBlockId(x: number, y: number, z: number, id: number): void; + // @ts-ignore + getBlockData(x: number, y: number, z: number): number; + // @ts-ignore + setBlockData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + getAndSetBlock(x: number, y: number, z: number, block: cn.nukkit.block.Block): cn.nukkit.block.Block; + // @ts-ignore + setFullBlockId(x: number, y: number, z: number, fullId: number): boolean; + // @ts-ignore + setBlock(x: number, y: number, z: number, blockId: number): boolean; + // @ts-ignore + setBlock(x: number, y: number, z: number, blockId: number, meta: number): boolean; + // @ts-ignore + getBlockSkyLight(x: number, y: number, z: number): number; + // @ts-ignore + setBlockSkyLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + getBlockLight(x: number, y: number, z: number): number; + // @ts-ignore + setBlockLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + getIdArray(): number[]; + // @ts-ignore + getDataArray(): number[]; + // @ts-ignore + getSkyLightArray(): number[]; + // @ts-ignore + getLightArray(): number[]; + // @ts-ignore + isEmpty(): boolean; + // @ts-ignore + getBytes(): number[]; + // @ts-ignore + copy(): cn.nukkit.level.format.ChunkSection; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.FullChunk.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.FullChunk.d.ts new file mode 100644 index 00000000..1079236a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.FullChunk.d.ts @@ -0,0 +1,147 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + // @ts-ignore + interface FullChunk { + // @ts-ignore + getX(): number; + // @ts-ignore + getZ(): number; + // @ts-ignore + setPosition(x: number, z: number): void; + // @ts-ignore + setX(x: number): void; + // @ts-ignore + setZ(z: number): void; + // @ts-ignore + getIndex(): number; + // @ts-ignore + getProvider(): cn.nukkit.level.format.LevelProvider; + // @ts-ignore + setProvider(provider: cn.nukkit.level.format.LevelProvider): void; + // @ts-ignore + getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + getAndSetBlock(x: number, y: number, z: number, block: cn.nukkit.block.Block): cn.nukkit.block.Block; + // @ts-ignore + setFullBlockId(x: number, y: number, z: number, fullId: number): boolean; + // @ts-ignore + setBlock(x: number, y: number, z: number, blockId: number): boolean; + // @ts-ignore + setBlock(x: number, y: number, z: number, blockId: number, meta: number): boolean; + // @ts-ignore + getBlockId(x: number, y: number, z: number): number; + // @ts-ignore + setBlockId(x: number, y: number, z: number, id: number): void; + // @ts-ignore + getBlockData(x: number, y: number, z: number): number; + // @ts-ignore + setBlockData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + getBlockExtraData(x: number, y: number, z: number): number; + // @ts-ignore + setBlockExtraData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + getBlockSkyLight(x: number, y: number, z: number): number; + // @ts-ignore + setBlockSkyLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + getBlockLight(x: number, y: number, z: number): number; + // @ts-ignore + setBlockLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + getHighestBlockAt(x: number, z: number): number; + // @ts-ignore + getHighestBlockAt(x: number, z: number, cache: boolean): number; + // @ts-ignore + getHeightMap(x: number, z: number): number; + // @ts-ignore + setHeightMap(x: number, z: number, value: number): void; + // @ts-ignore + recalculateHeightMap(): void; + // @ts-ignore + populateSkyLight(): void; + // @ts-ignore + getBiomeId(x: number, z: number): number; + // @ts-ignore + setBiomeId(x: number, z: number, biomeId: number): void; + // @ts-ignore + setBiomeId(x: number, z: number, biomeId: number): void; + // @ts-ignore + setBiome(x: number, z: number, biome: cn.nukkit.level.biome.Biome): void; + // @ts-ignore + isLightPopulated(): boolean; + // @ts-ignore + setLightPopulated(): void; + // @ts-ignore + setLightPopulated(value: boolean): void; + // @ts-ignore + isPopulated(): boolean; + // @ts-ignore + setPopulated(): void; + // @ts-ignore + setPopulated(value: boolean): void; + // @ts-ignore + isGenerated(): boolean; + // @ts-ignore + setGenerated(): void; + // @ts-ignore + setGenerated(value: boolean): void; + // @ts-ignore + addEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + removeEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + addBlockEntity(blockEntity: cn.nukkit.blockentity.BlockEntity): void; + // @ts-ignore + removeBlockEntity(blockEntity: cn.nukkit.blockentity.BlockEntity): void; + // @ts-ignore + getEntities(): java.util.Map; + // @ts-ignore + getBlockEntities(): java.util.Map; + // @ts-ignore + getTile(x: number, y: number, z: number): cn.nukkit.blockentity.BlockEntity; + // @ts-ignore + isLoaded(): boolean; + // @ts-ignore + load(): boolean; + // @ts-ignore + load(generate: boolean): boolean; + // @ts-ignore + unload(): boolean; + // @ts-ignore + unload(save: boolean): boolean; + // @ts-ignore + unload(save: boolean, safe: boolean): boolean; + // @ts-ignore + initChunk(): void; + // @ts-ignore + getBiomeIdArray(): number[]; + // @ts-ignore + getHeightMapArray(): number[]; + // @ts-ignore + getBlockIdArray(): number[]; + // @ts-ignore + getBlockDataArray(): number[]; + // @ts-ignore + getBlockExtraDataArray(): java.util.Map; + // @ts-ignore + getBlockSkyLightArray(): number[]; + // @ts-ignore + getBlockLightArray(): number[]; + // @ts-ignore + toBinary(): number[]; + // @ts-ignore + toFastBinary(): number[]; + // @ts-ignore + hasChanged(): boolean; + // @ts-ignore + setChanged(): void; + // @ts-ignore + setChanged(changed: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.LevelProvider.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.LevelProvider.d.ts new file mode 100644 index 00000000..e12792af --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.LevelProvider.d.ts @@ -0,0 +1,111 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + // @ts-ignore + interface LevelProvider { + // @ts-ignore + ORDER_YZX: number; + // @ts-ignore + ORDER_ZXY: number; + // @ts-ignore + requestChunkTask(X: number, Z: number): cn.nukkit.scheduler.AsyncTask; + // @ts-ignore + getPath(): string; + // @ts-ignore + getGenerator(): string; + // @ts-ignore + getGeneratorOptions(): java.util.Map; + // @ts-ignore + getLoadedChunk(X: number, Z: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + getLoadedChunk(hash: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + getChunk(X: number, Z: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + getChunk(X: number, Z: number, create: boolean): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + getEmptyChunk(x: number, z: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + saveChunks(): void; + // @ts-ignore + saveChunk(X: number, Z: number): void; + // @ts-ignore + saveChunk(X: number, Z: number, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + unloadChunks(): void; + // @ts-ignore + loadChunk(X: number, Z: number): boolean; + // @ts-ignore + loadChunk(X: number, Z: number, create: boolean): boolean; + // @ts-ignore + unloadChunk(X: number, Z: number): boolean; + // @ts-ignore + unloadChunk(X: number, Z: number, safe: boolean): boolean; + // @ts-ignore + isChunkGenerated(X: number, Z: number): boolean; + // @ts-ignore + isChunkPopulated(X: number, Z: number): boolean; + // @ts-ignore + isChunkLoaded(X: number, Z: number): boolean; + // @ts-ignore + isChunkLoaded(hash: number): boolean; + // @ts-ignore + setChunk(chunkX: number, chunkZ: number, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + getName(): string; + // @ts-ignore + isRaining(): boolean; + // @ts-ignore + setRaining(raining: boolean): void; + // @ts-ignore + getRainTime(): number; + // @ts-ignore + setRainTime(rainTime: number): void; + // @ts-ignore + isThundering(): boolean; + // @ts-ignore + setThundering(thundering: boolean): void; + // @ts-ignore + getThunderTime(): number; + // @ts-ignore + setThunderTime(thunderTime: number): void; + // @ts-ignore + getCurrentTick(): number; + // @ts-ignore + setCurrentTick(currentTick: number): void; + // @ts-ignore + getTime(): number; + // @ts-ignore + setTime(value: number): void; + // @ts-ignore + getSeed(): number; + // @ts-ignore + setSeed(value: number): void; + // @ts-ignore + getSpawn(): cn.nukkit.math.Vector3; + // @ts-ignore + setSpawn(pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + getLoadedChunks(): java.util.Map; + // @ts-ignore + doGarbageCollection(): void; + // @ts-ignore + doGarbageCollection(time: number): void; + // @ts-ignore + getLevel(): cn.nukkit.level.Level; + // @ts-ignore + close(): void; + // @ts-ignore + saveLevelData(): void; + // @ts-ignore + updateLevelName(name: string): void; + // @ts-ignore + getGamerules(): cn.nukkit.level.GameRules; + // @ts-ignore + setGameRules(rules: cn.nukkit.level.GameRules): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.LevelProviderManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.LevelProviderManager.d.ts new file mode 100644 index 00000000..baae31fa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.LevelProviderManager.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + // @ts-ignore + abstract class LevelProviderManager extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected static providers: java.util.Map; + // @ts-ignore + public static addProvider(server: cn.nukkit.Server, clazz: java.lang.Class): void; + // @ts-ignore + public static getProvider(path: string): java.lang.Class; + // @ts-ignore + public static getProviderByName(name: string): java.lang.Class; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.Anvil.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.Anvil.d.ts new file mode 100644 index 00000000..641ff221 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.Anvil.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + // @ts-ignore + class Anvil extends cn.nukkit.level.format.generic.BaseLevelProvider { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, path: string) + // @ts-ignore + public static VERSION: number; + // @ts-ignore + public static getProviderName(): string; + // @ts-ignore + public static getProviderOrder(): number; + // @ts-ignore + public static usesChunkSection(): boolean; + // @ts-ignore + public static isValid(path: string): boolean; + // @ts-ignore + public static generate(path: string, name: string, seed: number, generator: java.lang.Class): void; + // @ts-ignore + public static generate(path: string, name: string, seed: number, generator: java.lang.Class, options: java.util.Map): void; + // @ts-ignore + public getEmptyChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + public requestChunkTask(x: number, z: number): cn.nukkit.scheduler.AsyncTask; + // @ts-ignore + public doGarbageCollection(time: number): void; + // @ts-ignore + public loadChunk(index: number, chunkX: number, chunkZ: number, create: boolean): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public saveChunk(X: number, Z: number): void; + // @ts-ignore + public saveChunk(x: number, z: number, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public static createChunkSection(y: number): cn.nukkit.level.format.anvil.ChunkSection; + // @ts-ignore + protected loadRegion(x: number, z: number): cn.nukkit.level.format.generic.BaseRegionLoader; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.Chunk.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.Chunk.d.ts new file mode 100644 index 00000000..5fbdc195 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.Chunk.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + // @ts-ignore + class Chunk extends cn.nukkit.level.format.generic.BaseChunk { + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider) + // @ts-ignore + constructor(providerClass: java.lang.Class) + // @ts-ignore + constructor(providerClass: java.lang.Class, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected inhabitedTime: number; + // @ts-ignore + protected terrainPopulated: boolean; + // @ts-ignore + protected terrainGenerated: boolean; + // @ts-ignore + public clone(): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + public isPopulated(): boolean; + // @ts-ignore + public setPopulated(): void; + // @ts-ignore + public setPopulated(value: boolean): void; + // @ts-ignore + public isGenerated(): boolean; + // @ts-ignore + public setGenerated(): void; + // @ts-ignore + public setGenerated(value: boolean): void; + // @ts-ignore + public getNBT(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static fromBinary(data: number): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + public static fromBinary(data: number, provider: cn.nukkit.level.format.LevelProvider): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + public static fromFastBinary(data: number): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + public static fromFastBinary(data: number, provider: cn.nukkit.level.format.LevelProvider): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + public toFastBinary(): number[]; + // @ts-ignore + public toBinary(): number[]; + // @ts-ignore + public getBlockSkyLight(x: number, y: number, z: number): number; + // @ts-ignore + public getBlockLight(x: number, y: number, z: number): number; + // @ts-ignore + public static getEmptyChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + public static getEmptyChunk(chunkX: number, chunkZ: number, provider: cn.nukkit.level.format.LevelProvider): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + public compress(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.ChunkSection.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.ChunkSection.d.ts new file mode 100644 index 00000000..c8b4d32b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.ChunkSection.d.ts @@ -0,0 +1,71 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + // @ts-ignore + class ChunkSection extends java.lang.Object implements cn.nukkit.level.format.ChunkSection { + // @ts-ignore + constructor(y: number) + // @ts-ignore + constructor(nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + protected blockLight: number[]; + // @ts-ignore + protected skyLight: number[]; + // @ts-ignore + protected compressedLight: number[]; + // @ts-ignore + protected hasBlockLight: boolean; + // @ts-ignore + protected hasSkyLight: boolean; + // @ts-ignore + public getY(): number; + // @ts-ignore + public getBlockId(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockId(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public setFullBlockId(x: number, y: number, z: number, fullId: number): boolean; + // @ts-ignore + public getBlockData(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number): boolean; + // @ts-ignore + public getAndSetBlock(x: number, y: number, z: number, block: cn.nukkit.block.Block): cn.nukkit.block.Block; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number, meta: number): boolean; + // @ts-ignore + public getBlockSkyLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockSkyLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public getBlockLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public getIdArray(): number[]; + // @ts-ignore + public getDataArray(): number[]; + // @ts-ignore + public getSkyLightArray(): number[]; + // @ts-ignore + public getLightArray(): number[]; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public getBytes(): number[]; + // @ts-ignore + public compress(): boolean; + // @ts-ignore + public copy(): cn.nukkit.level.format.anvil.ChunkSection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.RegionLoader.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.RegionLoader.d.ts new file mode 100644 index 00000000..efe99b97 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.RegionLoader.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + // @ts-ignore + class RegionLoader extends cn.nukkit.level.format.generic.BaseRegionLoader { + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider, regionX: number, regionZ: number) + // @ts-ignore + protected isChunkGenerated(index: number): boolean; + // @ts-ignore + public readChunk(x: number, z: number): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + protected unserializeChunk(data: number): cn.nukkit.level.format.anvil.Chunk; + // @ts-ignore + public chunkExists(x: number, z: number): boolean; + // @ts-ignore + protected saveChunk(x: number, z: number, chunkData: number): void; + // @ts-ignore + public removeChunk(x: number, z: number): void; + // @ts-ignore + public writeChunk(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + protected static getChunkOffset(x: number, z: number): number; + // @ts-ignore + public close(): void; + // @ts-ignore + public doSlowCleanUp(): number; + // @ts-ignore + protected loadLocationTable(): void; + // @ts-ignore + protected writeLocationIndex(index: number): void; + // @ts-ignore + protected createBlank(): void; + // @ts-ignore + public getX(): number; + // @ts-ignore + public getZ(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BiomePalette.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BiomePalette.d.ts new file mode 100644 index 00000000..7281c37d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BiomePalette.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + namespace palette { + // @ts-ignore + class BiomePalette extends java.lang.Object { + // @ts-ignore + constructor(biomeColors: number) + // @ts-ignore + constructor() + // @ts-ignore + public get(x: number, z: number): number; + // @ts-ignore + public get(index: number): number; + // @ts-ignore + public set(x: number, z: number, value: number): void; + // @ts-ignore + public set(index: number, value: number): void; + // @ts-ignore + public toRaw(): number[]; + // @ts-ignore + public getIndex(x: number, z: number): number; + // @ts-ignore + public clone(): cn.nukkit.level.format.anvil.palette.BiomePalette; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BitArray256.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BitArray256.d.ts new file mode 100644 index 00000000..b3908610 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BitArray256.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + namespace palette { + // @ts-ignore + class BitArray256 extends java.lang.Object { + // @ts-ignore + constructor(bitsPerEntry: number) + // @ts-ignore + constructor(other: cn.nukkit.level.format.anvil.palette.BitArray256) + // @ts-ignore + protected data: number[]; + // @ts-ignore + public setAt(index: number, value: number): void; + // @ts-ignore + public getAt(index: number): number; + // @ts-ignore + public fromRaw(arr: number): void; + // @ts-ignore + public grow(newBitsPerEntry: number): cn.nukkit.level.format.anvil.palette.BitArray256; + // @ts-ignore + public growSlow(bitsPerEntry: number): cn.nukkit.level.format.anvil.palette.BitArray256; + // @ts-ignore + public toRaw(buffer: number): number[]; + // @ts-ignore + public toRaw(): number[]; + // @ts-ignore + public clone(): cn.nukkit.level.format.anvil.palette.BitArray256; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BitArray4096.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BitArray4096.d.ts new file mode 100644 index 00000000..67817686 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BitArray4096.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + namespace palette { + // @ts-ignore + class BitArray4096 extends java.lang.Object { + // @ts-ignore + constructor(bitsPerEntry: number) + // @ts-ignore + public setAt(index: number, value: number): void; + // @ts-ignore + public getAt(index: number): number; + // @ts-ignore + public fromRawSlow(arr: string): void; + // @ts-ignore + public fromRaw(arr: string): void; + // @ts-ignore + public grow(newBitsPerEntry: number): cn.nukkit.level.format.anvil.palette.BitArray4096; + // @ts-ignore + public growSlow(bitsPerEntry: number): cn.nukkit.level.format.anvil.palette.BitArray4096; + // @ts-ignore + public toRawSlow(): string[]; + // @ts-ignore + public toRaw(): string[]; + // @ts-ignore + protected toRaw(buffer: string): string[]; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BlockDataPalette.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BlockDataPalette.d.ts new file mode 100644 index 00000000..937019a5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BlockDataPalette.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + namespace palette { + // @ts-ignore + class BlockDataPalette extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(rawData: string) + // @ts-ignore + public getRaw(): string[]; + // @ts-ignore + public getBlockData(x: number, y: number, z: number): number; + // @ts-ignore + public getBlockId(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockId(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public setBlockData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + public setFullBlock(x: number, y: number, z: number, value: number): void; + // @ts-ignore + public getAndSetFullBlock(x: number, y: number, z: number, value: number): number; + // @ts-ignore + public compress(): boolean; + // @ts-ignore + public clone(): cn.nukkit.level.format.anvil.palette.BlockDataPalette; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BytePalette.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BytePalette.d.ts new file mode 100644 index 00000000..742296a2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.BytePalette.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + namespace palette { + // @ts-ignore + class BytePalette extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public add(key: number): void; + // @ts-ignore + protected set(keys: number): void; + // @ts-ignore + public getKey(index: number): number; + // @ts-ignore + public getValue(key: number): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.CharPalette.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.CharPalette.d.ts new file mode 100644 index 00000000..c5f67a08 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.CharPalette.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + namespace palette { + // @ts-ignore + class CharPalette extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public add(key: string): void; + // @ts-ignore + protected set(keys: string): void; + // @ts-ignore + public getKey(index: number): string; + // @ts-ignore + public getValue(key: string): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.IntPalette.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.IntPalette.d.ts new file mode 100644 index 00000000..ab34efcc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.palette.IntPalette.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + namespace palette { + // @ts-ignore + class IntPalette extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public add(key: number): void; + // @ts-ignore + protected set(keys: number): void; + // @ts-ignore + public getKey(index: number): number; + // @ts-ignore + public getValue(key: number): number; + // @ts-ignore + public length(): number; + // @ts-ignore + public clone(): cn.nukkit.level.format.anvil.palette.IntPalette; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.util.BlockStorage.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.util.BlockStorage.d.ts new file mode 100644 index 00000000..e0595cbc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.util.BlockStorage.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + namespace util { + // @ts-ignore + class BlockStorage extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public getBlockData(x: number, y: number, z: number): number; + // @ts-ignore + public getBlockId(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockId(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public setBlockData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + public setFullBlock(x: number, y: number, z: number, value: number): void; + // @ts-ignore + public getAndSetFullBlock(x: number, y: number, z: number, value: number): number; + // @ts-ignore + public getBlockIds(): number[]; + // @ts-ignore + public getBlockData(): number[]; + // @ts-ignore + public copy(): cn.nukkit.level.format.anvil.util.BlockStorage; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.util.NibbleArray.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.util.NibbleArray.d.ts new file mode 100644 index 00000000..da4c0cc4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.anvil.util.NibbleArray.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace anvil { + namespace util { + // @ts-ignore + class NibbleArray extends java.lang.Object { + // @ts-ignore + constructor(length: number) + // @ts-ignore + constructor(array: number) + // @ts-ignore + public get(index: number): number; + // @ts-ignore + public set(index: number, value: number): void; + // @ts-ignore + public fill(value: number): void; + // @ts-ignore + public copyFrom(bytes: number): void; + // @ts-ignore + public copyFrom(array: cn.nukkit.level.format.anvil.util.NibbleArray): void; + // @ts-ignore + public getData(): number[]; + // @ts-ignore + public copy(): cn.nukkit.level.format.anvil.util.NibbleArray; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseChunk.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseChunk.d.ts new file mode 100644 index 00000000..5f079670 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseChunk.d.ts @@ -0,0 +1,69 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace generic { + // @ts-ignore + abstract class BaseChunk extends cn.nukkit.level.format.generic.BaseFullChunk implements cn.nukkit.level.format.Chunk { + // @ts-ignore + constructor() + // @ts-ignore + protected sections: cn.nukkit.level.format.ChunkSection[]; + // @ts-ignore + public clone(): cn.nukkit.level.format.generic.BaseChunk; + // @ts-ignore + public getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number): boolean; + // @ts-ignore + public getAndSetBlock(x: number, y: number, z: number, block: cn.nukkit.block.Block): cn.nukkit.block.Block; + // @ts-ignore + public setFullBlockId(x: number, y: number, z: number, fullId: number): boolean; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number, meta: number): boolean; + // @ts-ignore + public setBlockId(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public getBlockId(x: number, y: number, z: number): number; + // @ts-ignore + public getBlockData(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public getBlockSkyLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockSkyLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public getBlockLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public isSectionEmpty(fY: number): boolean; + // @ts-ignore + public getSection(fY: number): cn.nukkit.level.format.ChunkSection; + // @ts-ignore + public setSection(fY: number, section: cn.nukkit.level.format.ChunkSection): boolean; + // @ts-ignore + public load(): boolean; + // @ts-ignore + public load(generate: boolean): boolean; + // @ts-ignore + public getBlockIdArray(): number[]; + // @ts-ignore + public getBlockDataArray(): number[]; + // @ts-ignore + public getBlockSkyLightArray(): number[]; + // @ts-ignore + public getBlockLightArray(): number[]; + // @ts-ignore + public getSections(): cn.nukkit.level.format.ChunkSection[]; + // @ts-ignore + public getHeightMapArray(): number[]; + // @ts-ignore + public getProvider(): cn.nukkit.level.format.LevelProvider; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseFullChunk.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseFullChunk.d.ts new file mode 100644 index 00000000..9cfbe30a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseFullChunk.d.ts @@ -0,0 +1,171 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace generic { + // @ts-ignore + abstract class BaseFullChunk extends java.lang.Object implements cn.nukkit.level.format.FullChunk, cn.nukkit.level.ChunkManager { + // @ts-ignore + constructor() + // @ts-ignore + protected entities: java.util.Map; + // @ts-ignore + protected tiles: java.util.Map; + // @ts-ignore + protected tileList: java.util.Map; + // @ts-ignore + protected biomes: number[]; + // @ts-ignore + protected blocks: number[]; + // @ts-ignore + protected data: number[]; + // @ts-ignore + protected skyLight: number[]; + // @ts-ignore + protected blockLight: number[]; + // @ts-ignore + protected heightMap: number[]; + // @ts-ignore + protected NBTtiles: java.util.List; + // @ts-ignore + protected NBTentities: java.util.List; + // @ts-ignore + protected extraData: java.util.Map; + // @ts-ignore + protected provider: cn.nukkit.level.format.LevelProvider; + // @ts-ignore + protected providerClass: java.lang.Class; + // @ts-ignore + protected changes: number; + // @ts-ignore + protected isInit: boolean; + // @ts-ignore + protected chunkPacket: cn.nukkit.network.protocol.BatchPacket; + // @ts-ignore + public clone(): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public setChunkPacket(packet: cn.nukkit.network.protocol.BatchPacket): void; + // @ts-ignore + public getChunkPacket(): cn.nukkit.network.protocol.BatchPacket; + // @ts-ignore + public initChunk(): void; + // @ts-ignore + public getIndex(): number; + // @ts-ignore + public getX(): number; + // @ts-ignore + public getZ(): number; + // @ts-ignore + public setPosition(x: number, z: number): void; + // @ts-ignore + public setX(x: number): void; + // @ts-ignore + public setZ(z: number): void; + // @ts-ignore + public getProvider(): cn.nukkit.level.format.LevelProvider; + // @ts-ignore + public setProvider(provider: cn.nukkit.level.format.LevelProvider): void; + // @ts-ignore + public getBiomeId(x: number, z: number): number; + // @ts-ignore + public setBiomeId(x: number, z: number, biomeId: number): void; + // @ts-ignore + public getHeightMap(x: number, z: number): number; + // @ts-ignore + public setHeightMap(x: number, z: number, value: number): void; + // @ts-ignore + public recalculateHeightMap(): void; + // @ts-ignore + public getBlockExtraData(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockExtraData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public populateSkyLight(): void; + // @ts-ignore + public getHighestBlockAt(x: number, z: number): number; + // @ts-ignore + public getHighestBlockAt(x: number, z: number, cache: boolean): number; + // @ts-ignore + public addEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public removeEntity(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public addBlockEntity(blockEntity: cn.nukkit.blockentity.BlockEntity): void; + // @ts-ignore + public removeBlockEntity(blockEntity: cn.nukkit.blockentity.BlockEntity): void; + // @ts-ignore + public getEntities(): java.util.Map; + // @ts-ignore + public getBlockEntities(): java.util.Map; + // @ts-ignore + public getBlockExtraDataArray(): java.util.Map; + // @ts-ignore + public getTile(x: number, y: number, z: number): cn.nukkit.blockentity.BlockEntity; + // @ts-ignore + public isLoaded(): boolean; + // @ts-ignore + public load(): boolean; + // @ts-ignore + public load(generate: boolean): boolean; + // @ts-ignore + public unload(): boolean; + // @ts-ignore + public unload(save: boolean): boolean; + // @ts-ignore + public unload(save: boolean, safe: boolean): boolean; + // @ts-ignore + public getBlockIdArray(): number[]; + // @ts-ignore + public getBlockDataArray(): number[]; + // @ts-ignore + public getBlockSkyLightArray(): number[]; + // @ts-ignore + public getBlockLightArray(): number[]; + // @ts-ignore + public getBiomeIdArray(): number[]; + // @ts-ignore + public getHeightMapArray(): number[]; + // @ts-ignore + public getChanges(): number; + // @ts-ignore + public hasChanged(): boolean; + // @ts-ignore + public setChanged(): void; + // @ts-ignore + public setChanged(changed: boolean): void; + // @ts-ignore + public toFastBinary(): number[]; + // @ts-ignore + public isLightPopulated(): boolean; + // @ts-ignore + public setLightPopulated(): void; + // @ts-ignore + public setLightPopulated(value: boolean): void; + // @ts-ignore + public getBlockIdAt(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockFullIdAt(x: number, y: number, z: number, fullId: number): void; + // @ts-ignore + public setBlockIdAt(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public setBlockAt(x: number, y: number, z: number, id: number, data: number): void; + // @ts-ignore + public getBlockDataAt(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockDataAt(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public getChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number, chunk: cn.nukkit.level.format.generic.BaseFullChunk): void; + // @ts-ignore + public getSeed(): number; + // @ts-ignore + public compress(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseLevelProvider.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseLevelProvider.d.ts new file mode 100644 index 00000000..14bc5084 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseLevelProvider.d.ts @@ -0,0 +1,129 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace generic { + // @ts-ignore + abstract class BaseLevelProvider extends java.lang.Object implements cn.nukkit.level.format.LevelProvider { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, path: string) + // @ts-ignore + protected level: cn.nukkit.level.Level; + // @ts-ignore + protected path: string; + // @ts-ignore + protected levelData: cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + protected lastRegion: java.util.concurrent.atomic.AtomicReference; + // @ts-ignore + protected regions: any; + // @ts-ignore + protected chunks: any; + // @ts-ignore + public abstract loadChunk(index: number, chunkX: number, chunkZ: number, create: boolean): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public size(): number; + // @ts-ignore + public unloadChunks(): void; + // @ts-ignore + public getGenerator(): string; + // @ts-ignore + public getGeneratorOptions(): java.util.Map; + // @ts-ignore + public getLoadedChunks(): java.util.Map; + // @ts-ignore + public isChunkLoaded(X: number, Z: number): boolean; + // @ts-ignore + public putChunk(index: number, chunk: cn.nukkit.level.format.generic.BaseFullChunk): void; + // @ts-ignore + public isChunkLoaded(hash: number): boolean; + // @ts-ignore + public getRegion(x: number, z: number): cn.nukkit.level.format.generic.BaseRegionLoader; + // @ts-ignore + protected static getRegionIndexX(chunkX: number): number; + // @ts-ignore + protected static getRegionIndexZ(chunkZ: number): number; + // @ts-ignore + public getPath(): string; + // @ts-ignore + public getServer(): cn.nukkit.Server; + // @ts-ignore + public getLevel(): cn.nukkit.level.Level; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isRaining(): boolean; + // @ts-ignore + public setRaining(raining: boolean): void; + // @ts-ignore + public getRainTime(): number; + // @ts-ignore + public setRainTime(rainTime: number): void; + // @ts-ignore + public isThundering(): boolean; + // @ts-ignore + public setThundering(thundering: boolean): void; + // @ts-ignore + public getThunderTime(): number; + // @ts-ignore + public setThunderTime(thunderTime: number): void; + // @ts-ignore + public getCurrentTick(): number; + // @ts-ignore + public setCurrentTick(currentTick: number): void; + // @ts-ignore + public getTime(): number; + // @ts-ignore + public setTime(value: number): void; + // @ts-ignore + public getSeed(): number; + // @ts-ignore + public setSeed(value: number): void; + // @ts-ignore + public getSpawn(): cn.nukkit.math.Vector3; + // @ts-ignore + public setSpawn(pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + public getGamerules(): cn.nukkit.level.GameRules; + // @ts-ignore + public setGameRules(rules: cn.nukkit.level.GameRules): void; + // @ts-ignore + public doGarbageCollection(): void; + // @ts-ignore + public saveChunks(): void; + // @ts-ignore + public getLevelData(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public saveLevelData(): void; + // @ts-ignore + public updateLevelName(name: string): void; + // @ts-ignore + public loadChunk(chunkX: number, chunkZ: number): boolean; + // @ts-ignore + public loadChunk(chunkX: number, chunkZ: number, create: boolean): boolean; + // @ts-ignore + public unloadChunk(X: number, Z: number): boolean; + // @ts-ignore + public unloadChunk(X: number, Z: number, safe: boolean): boolean; + // @ts-ignore + public getChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public getLoadedChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public getLoadedChunk(hash: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public getChunk(chunkX: number, chunkZ: number, create: boolean): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public isChunkPopulated(chunkX: number, chunkZ: number): boolean; + // @ts-ignore + public close(): void; + // @ts-ignore + public isChunkGenerated(chunkX: number, chunkZ: number): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseRegionLoader.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseRegionLoader.d.ts new file mode 100644 index 00000000..29d4df94 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.BaseRegionLoader.d.ts @@ -0,0 +1,71 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace generic { + // @ts-ignore + abstract class BaseRegionLoader extends java.lang.Object { + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider, regionX: number, regionZ: number, ext: string) + // @ts-ignore + public static VERSION: number; + // @ts-ignore + public static COMPRESSION_GZIP: number; + // @ts-ignore + public static COMPRESSION_ZLIB: number; + // @ts-ignore + public static MAX_SECTOR_LENGTH: number; + // @ts-ignore + public static COMPRESSION_LEVEL: number; + // @ts-ignore + protected x: number; + // @ts-ignore + protected z: number; + // @ts-ignore + protected lastSector: number; + // @ts-ignore + protected levelProvider: cn.nukkit.level.format.LevelProvider; + // @ts-ignore + protected locationTable: java.util.Map; + // @ts-ignore + public lastUsed: number; + // @ts-ignore + public compress(): void; + // @ts-ignore + public getRandomAccessFile(): java.io.RandomAccessFile; + // @ts-ignore + protected abstract isChunkGenerated(index: number): boolean; + // @ts-ignore + public abstract readChunk(x: number, z: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + protected abstract unserializeChunk(data: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public abstract chunkExists(x: number, z: number): boolean; + // @ts-ignore + protected abstract saveChunk(x: number, z: number, chunkData: number): void; + // @ts-ignore + public abstract removeChunk(x: number, z: number): void; + // @ts-ignore + public abstract writeChunk(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public close(): void; + // @ts-ignore + protected abstract loadLocationTable(): void; + // @ts-ignore + public abstract doSlowCleanUp(): number; + // @ts-ignore + protected abstract writeLocationIndex(index: number): void; + // @ts-ignore + protected abstract createBlank(): void; + // @ts-ignore + public abstract getX(): number; + // @ts-ignore + public abstract getZ(): number; + // @ts-ignore + public getLocationIndexes(): java.lang.Integer[]; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.ChunkConverter.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.ChunkConverter.d.ts new file mode 100644 index 00000000..d33c336b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.ChunkConverter.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace generic { + // @ts-ignore + class ChunkConverter extends java.lang.Object { + // @ts-ignore + constructor(provider: cn.nukkit.level.format.LevelProvider) + // @ts-ignore + public from(chunk: cn.nukkit.level.format.generic.BaseFullChunk): cn.nukkit.level.format.generic.ChunkConverter; + // @ts-ignore + public to(toClass: java.lang.Class): cn.nukkit.level.format.generic.ChunkConverter; + // @ts-ignore + public perform(): cn.nukkit.level.format.FullChunk; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.EmptyChunkSection.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.EmptyChunkSection.d.ts new file mode 100644 index 00000000..aa02f9b7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.generic.EmptyChunkSection.d.ts @@ -0,0 +1,63 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace generic { + // @ts-ignore + class EmptyChunkSection extends java.lang.Object implements cn.nukkit.level.format.ChunkSection { + // @ts-ignore + constructor(y: number) + // @ts-ignore + public static EMPTY: cn.nukkit.level.format.generic.EmptyChunkSection[]; + // @ts-ignore + public static EMPTY_LIGHT_ARR: number[]; + // @ts-ignore + public static EMPTY_SKY_LIGHT_ARR: number[]; + // @ts-ignore + public getY(): number; + // @ts-ignore + public getBlockId(x: number, y: number, z: number): number; + // @ts-ignore + public getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + public getAndSetBlock(x: number, y: number, z: number, block: cn.nukkit.block.Block): cn.nukkit.block.Block; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number): boolean; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number, meta: number): boolean; + // @ts-ignore + public getIdArray(): number[]; + // @ts-ignore + public getDataArray(): number[]; + // @ts-ignore + public getSkyLightArray(): number[]; + // @ts-ignore + public getLightArray(): number[]; + // @ts-ignore + public setBlockId(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public getBlockData(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public setFullBlockId(x: number, y: number, z: number, fullId: number): boolean; + // @ts-ignore + public getBlockLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public getBlockSkyLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockSkyLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public getBytes(): number[]; + // @ts-ignore + public copy(): cn.nukkit.level.format.generic.EmptyChunkSection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.Chunk.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.Chunk.d.ts new file mode 100644 index 00000000..61514a0f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.Chunk.d.ts @@ -0,0 +1,85 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + // @ts-ignore + class Chunk extends cn.nukkit.level.format.generic.BaseFullChunk { + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider, chunkX: number, chunkZ: number, terrain: number) + // @ts-ignore + constructor(providerClass: java.lang.Class, chunkX: number, chunkZ: number, terrain: number) + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider, chunkX: number, chunkZ: number, terrain: number, entityData: java.util.List) + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider, chunkX: number, chunkZ: number, terrain: number, entityData: java.util.List, tileData: java.util.List) + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider, chunkX: number, chunkZ: number, terrain: number, entityData: java.util.List, tileData: java.util.List, extraData: java.util.Map) + // @ts-ignore + public static DATA_LENGTH: number; + // @ts-ignore + public getBlockId(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockId(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public getBlockData(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + public getAndSetBlock(x: number, y: number, z: number, block: cn.nukkit.block.Block): cn.nukkit.block.Block; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number): boolean; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number, meta: number): boolean; + // @ts-ignore + public getBlockSkyLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockSkyLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public getBlockLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public isLightPopulated(): boolean; + // @ts-ignore + public setLightPopulated(): void; + // @ts-ignore + public setLightPopulated(value: boolean): void; + // @ts-ignore + public isPopulated(): boolean; + // @ts-ignore + public setPopulated(): void; + // @ts-ignore + public setPopulated(value: boolean): void; + // @ts-ignore + public isGenerated(): boolean; + // @ts-ignore + public setGenerated(): void; + // @ts-ignore + public setGenerated(value: boolean): void; + // @ts-ignore + public static fromBinary(data: number): cn.nukkit.level.format.leveldb.Chunk; + // @ts-ignore + public static fromBinary(data: number, provider: cn.nukkit.level.format.LevelProvider): cn.nukkit.level.format.leveldb.Chunk; + // @ts-ignore + public static fromFastBinary(data: number): cn.nukkit.level.format.leveldb.Chunk; + // @ts-ignore + public static fromFastBinary(data: number, provider: cn.nukkit.level.format.LevelProvider): cn.nukkit.level.format.leveldb.Chunk; + // @ts-ignore + public toFastBinary(): number[]; + // @ts-ignore + public toBinary(): number[]; + // @ts-ignore + public toBinary(saveExtra: boolean): number[]; + // @ts-ignore + public static getEmptyChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.Chunk; + // @ts-ignore + public static getEmptyChunk(chunkX: number, chunkZ: number, provider: cn.nukkit.level.format.LevelProvider): cn.nukkit.level.format.leveldb.Chunk; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.LevelDB.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.LevelDB.d.ts new file mode 100644 index 00000000..87936ea0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.LevelDB.d.ts @@ -0,0 +1,143 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + // @ts-ignore + class LevelDB extends java.lang.Object implements cn.nukkit.level.format.LevelProvider { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, path: string) + // @ts-ignore + protected chunks: java.util.Map; + // @ts-ignore + protected db: DB; + // @ts-ignore + protected level: cn.nukkit.level.Level; + // @ts-ignore + protected path: string; + // @ts-ignore + protected levelData: cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static getProviderName(): string; + // @ts-ignore + public static getProviderOrder(): number; + // @ts-ignore + public static usesChunkSection(): boolean; + // @ts-ignore + public static isValid(path: string): boolean; + // @ts-ignore + public static generate(path: string, name: string, seed: number, generator: java.lang.Class): void; + // @ts-ignore + public static generate(path: string, name: string, seed: number, generator: java.lang.Class, options: java.util.Map): void; + // @ts-ignore + public saveLevelData(): void; + // @ts-ignore + public getEmptyChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.Chunk; + // @ts-ignore + public requestChunkTask(x: number, z: number): cn.nukkit.scheduler.AsyncTask; + // @ts-ignore + public unloadChunks(): void; + // @ts-ignore + public getGenerator(): string; + // @ts-ignore + public getGeneratorOptions(): java.util.Map; + // @ts-ignore + public getLoadedChunk(X: number, Z: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public getLoadedChunk(hash: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public getLoadedChunks(): java.util.Map; + // @ts-ignore + public isChunkLoaded(x: number, z: number): boolean; + // @ts-ignore + public isChunkLoaded(hash: number): boolean; + // @ts-ignore + public saveChunks(): void; + // @ts-ignore + public loadChunk(x: number, z: number): boolean; + // @ts-ignore + public loadChunk(x: number, z: number, create: boolean): boolean; + // @ts-ignore + public readChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.Chunk; + // @ts-ignore + public unloadChunk(x: number, z: number): boolean; + // @ts-ignore + public unloadChunk(x: number, z: number, safe: boolean): boolean; + // @ts-ignore + public saveChunk(x: number, z: number): void; + // @ts-ignore + public saveChunk(x: number, z: number, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public getChunk(x: number, z: number): cn.nukkit.level.format.leveldb.Chunk; + // @ts-ignore + public getChunk(x: number, z: number, create: boolean): cn.nukkit.level.format.leveldb.Chunk; + // @ts-ignore + public getDatabase(): DB; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public static createChunkSection(y: number): cn.nukkit.level.format.ChunkSection; + // @ts-ignore + public isChunkGenerated(x: number, z: number): boolean; + // @ts-ignore + public isChunkPopulated(x: number, z: number): boolean; + // @ts-ignore + public close(): void; + // @ts-ignore + public getPath(): string; + // @ts-ignore + public getServer(): cn.nukkit.Server; + // @ts-ignore + public getLevel(): cn.nukkit.level.Level; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isRaining(): boolean; + // @ts-ignore + public setRaining(raining: boolean): void; + // @ts-ignore + public getRainTime(): number; + // @ts-ignore + public setRainTime(rainTime: number): void; + // @ts-ignore + public isThundering(): boolean; + // @ts-ignore + public setThundering(thundering: boolean): void; + // @ts-ignore + public getThunderTime(): number; + // @ts-ignore + public setThunderTime(thunderTime: number): void; + // @ts-ignore + public getCurrentTick(): number; + // @ts-ignore + public setCurrentTick(currentTick: number): void; + // @ts-ignore + public getTime(): number; + // @ts-ignore + public setTime(value: number): void; + // @ts-ignore + public getSeed(): number; + // @ts-ignore + public setSeed(value: number): void; + // @ts-ignore + public getSpawn(): cn.nukkit.math.Vector3; + // @ts-ignore + public setSpawn(pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + public getGamerules(): cn.nukkit.level.GameRules; + // @ts-ignore + public setGameRules(rules: cn.nukkit.level.GameRules): void; + // @ts-ignore + public doGarbageCollection(): void; + // @ts-ignore + public getLevelData(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public updateLevelName(name: string): void; + // @ts-ignore + public getTerrainKeys(): byte[][]; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.BaseKey.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.BaseKey.d.ts new file mode 100644 index 00000000..04fa4cf8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.BaseKey.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + namespace key { + // @ts-ignore + class BaseKey extends java.lang.Object { + // @ts-ignore + constructor(chunkX: number, chunkZ: number, type: number) + // @ts-ignore + public static DATA_VERSION: number; + // @ts-ignore + public static DATA_FLAGS: number; + // @ts-ignore + public static DATA_EXTRA_DATA: number; + // @ts-ignore + public static DATA_TICKS: number; + // @ts-ignore + public static DATA_ENTITIES: number; + // @ts-ignore + public static DATA_TILES: number; + // @ts-ignore + public static DATA_TERRAIN: number; + // @ts-ignore + public toArray(): number[]; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.EntitiesKey.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.EntitiesKey.d.ts new file mode 100644 index 00000000..af1cf255 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.EntitiesKey.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + namespace key { + // @ts-ignore + class EntitiesKey extends cn.nukkit.level.format.leveldb.key.BaseKey { + // @ts-ignore + constructor(chunkX: number, chunkZ: number) + // @ts-ignore + public static create(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.key.EntitiesKey; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.ExtraDataKey.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.ExtraDataKey.d.ts new file mode 100644 index 00000000..c120a9be --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.ExtraDataKey.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + namespace key { + // @ts-ignore + class ExtraDataKey extends cn.nukkit.level.format.leveldb.key.BaseKey { + // @ts-ignore + constructor(chunkX: number, chunkZ: number) + // @ts-ignore + public static create(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.key.ExtraDataKey; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.FlagsKey.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.FlagsKey.d.ts new file mode 100644 index 00000000..18674e40 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.FlagsKey.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + namespace key { + // @ts-ignore + class FlagsKey extends cn.nukkit.level.format.leveldb.key.BaseKey { + // @ts-ignore + constructor(chunkX: number, chunkZ: number) + // @ts-ignore + public static create(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.key.FlagsKey; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TerrainKey.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TerrainKey.d.ts new file mode 100644 index 00000000..c6090510 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TerrainKey.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + namespace key { + // @ts-ignore + class TerrainKey extends cn.nukkit.level.format.leveldb.key.BaseKey { + // @ts-ignore + constructor(chunkX: number, chunkZ: number) + // @ts-ignore + public static create(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.key.TerrainKey; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TicksKey.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TicksKey.d.ts new file mode 100644 index 00000000..7ac20834 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TicksKey.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + namespace key { + // @ts-ignore + class TicksKey extends cn.nukkit.level.format.leveldb.key.BaseKey { + // @ts-ignore + constructor(chunkX: number, chunkZ: number) + // @ts-ignore + public static create(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.key.TicksKey; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TilesKey.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TilesKey.d.ts new file mode 100644 index 00000000..a63ec18f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.TilesKey.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + namespace key { + // @ts-ignore + class TilesKey extends cn.nukkit.level.format.leveldb.key.BaseKey { + // @ts-ignore + constructor(chunkX: number, chunkZ: number) + // @ts-ignore + public static create(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.key.TilesKey; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.VersionKey.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.VersionKey.d.ts new file mode 100644 index 00000000..6a02677e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.leveldb.key.VersionKey.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace leveldb { + namespace key { + // @ts-ignore + class VersionKey extends cn.nukkit.level.format.leveldb.key.BaseKey { + // @ts-ignore + constructor(chunkX: number, chunkZ: number) + // @ts-ignore + public static create(chunkX: number, chunkZ: number): cn.nukkit.level.format.leveldb.key.VersionKey; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.Chunk.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.Chunk.d.ts new file mode 100644 index 00000000..e4ec661e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.Chunk.d.ts @@ -0,0 +1,81 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace mcregion { + // @ts-ignore + class Chunk extends cn.nukkit.level.format.generic.BaseFullChunk { + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider) + // @ts-ignore + constructor(providerClass: java.lang.Class) + // @ts-ignore + constructor(providerClass: java.lang.Class, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider, nbt: cn.nukkit.nbt.tag.CompoundTag) + // @ts-ignore + public getBlockId(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockId(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public getBlockData(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockData(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public getFullBlock(x: number, y: number, z: number): number; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number): boolean; + // @ts-ignore + public setBlock(x: number, y: number, z: number, blockId: number, meta: number): boolean; + // @ts-ignore + public getAndSetBlock(x: number, y: number, z: number, block: cn.nukkit.block.Block): cn.nukkit.block.Block; + // @ts-ignore + public getBlockSkyLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockSkyLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public getBlockLight(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockLight(x: number, y: number, z: number, level: number): void; + // @ts-ignore + public isLightPopulated(): boolean; + // @ts-ignore + public setLightPopulated(): void; + // @ts-ignore + public setLightPopulated(value: boolean): void; + // @ts-ignore + public isPopulated(): boolean; + // @ts-ignore + public setPopulated(): void; + // @ts-ignore + public setPopulated(value: boolean): void; + // @ts-ignore + public isGenerated(): boolean; + // @ts-ignore + public setGenerated(): void; + // @ts-ignore + public setGenerated(value: boolean): void; + // @ts-ignore + public static fromBinary(data: number): cn.nukkit.level.format.mcregion.Chunk; + // @ts-ignore + public static fromBinary(data: number, provider: cn.nukkit.level.format.LevelProvider): cn.nukkit.level.format.mcregion.Chunk; + // @ts-ignore + public static fromFastBinary(data: number): cn.nukkit.level.format.mcregion.Chunk; + // @ts-ignore + public static fromFastBinary(data: number, provider: cn.nukkit.level.format.LevelProvider): cn.nukkit.level.format.mcregion.Chunk; + // @ts-ignore + public toFastBinary(): number[]; + // @ts-ignore + public toBinary(): number[]; + // @ts-ignore + public getNBT(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static getEmptyChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.mcregion.Chunk; + // @ts-ignore + public static getEmptyChunk(chunkX: number, chunkZ: number, provider: cn.nukkit.level.format.LevelProvider): cn.nukkit.level.format.mcregion.Chunk; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.McRegion.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.McRegion.d.ts new file mode 100644 index 00000000..8bac434e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.McRegion.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace mcregion { + // @ts-ignore + class McRegion extends cn.nukkit.level.format.generic.BaseLevelProvider { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, path: string) + // @ts-ignore + public static getProviderName(): string; + // @ts-ignore + public static getProviderOrder(): number; + // @ts-ignore + public static usesChunkSection(): boolean; + // @ts-ignore + public static isValid(path: string): boolean; + // @ts-ignore + public static generate(path: string, name: string, seed: number, generator: java.lang.Class): void; + // @ts-ignore + public static generate(path: string, name: string, seed: number, generator: java.lang.Class, options: java.util.Map): void; + // @ts-ignore + public requestChunkTask(x: number, z: number): cn.nukkit.scheduler.AsyncTask; + // @ts-ignore + public loadChunk(index: number, chunkX: number, chunkZ: number, create: boolean): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public getEmptyChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.mcregion.Chunk; + // @ts-ignore + public saveChunk(x: number, z: number): void; + // @ts-ignore + public saveChunk(x: number, z: number, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public static createChunkSection(y: number): cn.nukkit.level.format.ChunkSection; + // @ts-ignore + protected loadRegion(x: number, z: number): cn.nukkit.level.format.generic.BaseRegionLoader; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.RegionLoader.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.RegionLoader.d.ts new file mode 100644 index 00000000..17bbf94a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.format.mcregion.RegionLoader.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace format { + namespace mcregion { + // @ts-ignore + class RegionLoader extends cn.nukkit.level.format.generic.BaseRegionLoader { + // @ts-ignore + constructor(level: cn.nukkit.level.format.LevelProvider, regionX: number, regionZ: number) + // @ts-ignore + protected isChunkGenerated(index: number): boolean; + // @ts-ignore + public readChunk(x: number, z: number): cn.nukkit.level.format.mcregion.Chunk; + // @ts-ignore + protected unserializeChunk(data: number): cn.nukkit.level.format.mcregion.Chunk; + // @ts-ignore + public chunkExists(x: number, z: number): boolean; + // @ts-ignore + protected saveChunk(x: number, z: number, chunkData: number): void; + // @ts-ignore + public removeChunk(x: number, z: number): void; + // @ts-ignore + public writeChunk(chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + protected static getChunkOffset(x: number, z: number): number; + // @ts-ignore + public close(): void; + // @ts-ignore + public doSlowCleanUp(): number; + // @ts-ignore + protected loadLocationTable(): void; + // @ts-ignore + protected writeLocationIndex(index: number): void; + // @ts-ignore + protected createBlank(): void; + // @ts-ignore + public getX(): number; + // @ts-ignore + public getZ(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Flat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Flat.d.ts new file mode 100644 index 00000000..7dbe3237 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Flat.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + // @ts-ignore + class Flat extends cn.nukkit.level.generator.Generator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(options: java.util.Map) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getChunkManager(): cn.nukkit.level.ChunkManager; + // @ts-ignore + public getSettings(): java.util.Map; + // @ts-ignore + public getName(): string; + // @ts-ignore + protected parsePreset(preset: string, chunkX: number, chunkZ: number): void; + // @ts-ignore + public init(level: cn.nukkit.level.ChunkManager, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + public generateChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public populateChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public getSpawn(): cn.nukkit.math.Vector3; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Generator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Generator.d.ts new file mode 100644 index 00000000..55779154 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Generator.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + // @ts-ignore + abstract class Generator extends java.lang.Object implements cn.nukkit.block.BlockID { + // @ts-ignore + constructor() + // @ts-ignore + public static TYPE_OLD: number; + // @ts-ignore + public static TYPE_INFINITE: number; + // @ts-ignore + public static TYPE_FLAT: number; + // @ts-ignore + public static TYPE_NETHER: number; + // @ts-ignore + public abstract getId(): number; + // @ts-ignore + public getDimension(): number; + // @ts-ignore + public static addGenerator(clazz: java.lang.Class, name: string, type: number): boolean; + // @ts-ignore + public static getGeneratorList(): java.lang.String[]; + // @ts-ignore + public static getGenerator(name: string): java.lang.Class; + // @ts-ignore + public static getGenerator(type: number): java.lang.Class; + // @ts-ignore + public static getGeneratorName(c: java.lang.Class): string; + // @ts-ignore + public static getGeneratorType(c: java.lang.Class): number; + // @ts-ignore + public abstract init(level: cn.nukkit.level.ChunkManager, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + public abstract generateChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public abstract populateChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public abstract getSettings(): java.util.Map; + // @ts-ignore + public abstract getName(): string; + // @ts-ignore + public abstract getSpawn(): cn.nukkit.math.Vector3; + // @ts-ignore + public abstract getChunkManager(): cn.nukkit.level.ChunkManager; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Nether.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Nether.d.ts new file mode 100644 index 00000000..e7557e1a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Nether.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + // @ts-ignore + class Nether extends cn.nukkit.level.generator.Generator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(options: java.util.Map) + // @ts-ignore + public getId(): number; + // @ts-ignore + public getDimension(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getSettings(): java.util.Map; + // @ts-ignore + public getChunkManager(): cn.nukkit.level.ChunkManager; + // @ts-ignore + public init(level: cn.nukkit.level.ChunkManager, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + public generateChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public populateChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public getSpawn(): cn.nukkit.math.Vector3; + // @ts-ignore + public getNoise(x: number, y: number, z: number): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Normal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Normal.d.ts new file mode 100644 index 00000000..d32ee6a3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.Normal.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + // @ts-ignore + class Normal extends cn.nukkit.level.generator.Generator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(options: java.util.Map) + // @ts-ignore + public static seaHeight: number; + // @ts-ignore + public scaleNoise: cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorOctavesF; + // @ts-ignore + public depthNoise: cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorOctavesF; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getChunkManager(): cn.nukkit.level.ChunkManager; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getSettings(): java.util.Map; + // @ts-ignore + public pickBiome(x: number, z: number): cn.nukkit.level.biome.Biome; + // @ts-ignore + public init(level: cn.nukkit.level.ChunkManager, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + public generateChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public populateChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public getSpawn(): cn.nukkit.math.Vector3; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.PopChunkManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.PopChunkManager.d.ts new file mode 100644 index 00000000..c3fca779 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.PopChunkManager.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + // @ts-ignore + class PopChunkManager extends cn.nukkit.level.generator.SimpleChunkManager { + // @ts-ignore + constructor(seed: number) + // @ts-ignore + public cleanChunks(seed: number): void; + // @ts-ignore + public getChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number, chunk: cn.nukkit.level.format.generic.BaseFullChunk): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.SimpleChunkManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.SimpleChunkManager.d.ts new file mode 100644 index 00000000..a5d402b7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.SimpleChunkManager.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + // @ts-ignore + abstract class SimpleChunkManager extends java.lang.Object implements cn.nukkit.level.ChunkManager { + // @ts-ignore + constructor(seed: number) + // @ts-ignore + protected seed: number; + // @ts-ignore + public getBlockIdAt(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockIdAt(x: number, y: number, z: number, id: number): void; + // @ts-ignore + public setBlockAt(x: number, y: number, z: number, id: number, data: number): void; + // @ts-ignore + public setBlockFullIdAt(x: number, y: number, z: number, fullId: number): void; + // @ts-ignore + public getBlockDataAt(x: number, y: number, z: number): number; + // @ts-ignore + public setBlockDataAt(x: number, y: number, z: number, data: number): void; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number): void; + // @ts-ignore + public getSeed(): number; + // @ts-ignore + public setSeed(seed: number): void; + // @ts-ignore + public cleanChunks(seed: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.SingleChunkManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.SingleChunkManager.d.ts new file mode 100644 index 00000000..f8d3292a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.SingleChunkManager.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + // @ts-ignore + class SingleChunkManager extends cn.nukkit.level.generator.SimpleChunkManager { + // @ts-ignore + constructor(seed: number) + // @ts-ignore + public getChunk(chunkX: number, chunkZ: number): cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public setChunk(chunkX: number, chunkZ: number, chunk: cn.nukkit.level.format.generic.BaseFullChunk): void; + // @ts-ignore + public cleanChunks(seed: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.NoiseD.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.NoiseD.d.ts new file mode 100644 index 00000000..4241cdf9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.NoiseD.d.ts @@ -0,0 +1,61 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace nukkit { + namespace d { + // @ts-ignore + abstract class NoiseD 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; + // @ts-ignore + protected octaves: number; + // @ts-ignore + protected persistence: number; + // @ts-ignore + protected expansion: number; + // @ts-ignore + public static floor(x: number): number; + // @ts-ignore + public static fade(x: number): number; + // @ts-ignore + public static lerp(x: number, y: number, z: number): number; + // @ts-ignore + public static linearLerp(x: number, x1: number, x2: number, q0: number, q1: number): number; + // @ts-ignore + public static bilinearLerp(x: number, y: number, q00: number, q01: number, q10: number, q11: number, x1: number, x2: number, y1: number, y2: number): number; + // @ts-ignore + public static trilinearLerp(x: number, y: number, z: number, q000: number, q001: number, q010: number, q011: number, q100: number, q101: number, q110: number, q111: number, x1: number, x2: number, y1: number, y2: number, z1: number, z2: number): number; + // @ts-ignore + public static grad(hash: number, x: number, y: number, z: number): number; + // @ts-ignore + public abstract getNoise2D(x: number, z: number): number; + // @ts-ignore + public abstract getNoise3D(x: number, y: number, z: number): number; + // @ts-ignore + public noise2D(x: number, z: number): number; + // @ts-ignore + public noise2D(x: number, z: number, normalized: boolean): number; + // @ts-ignore + public noise3D(x: number, y: number, z: number): number; + // @ts-ignore + public noise3D(x: number, y: number, z: number, normalized: boolean): number; + // @ts-ignore + public setOffset(x: number, y: number, z: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.PerlinD.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.PerlinD.d.ts new file mode 100644 index 00000000..5bbe6658 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.PerlinD.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace nukkit { + namespace d { + // @ts-ignore + class PerlinD extends cn.nukkit.level.generator.noise.nukkit.d.NoiseD { + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom, octaves: number, persistence: number) + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom, octaves: number, persistence: number, expansion: number) + // @ts-ignore + public getNoise2D(x: number, y: number): number; + // @ts-ignore + public getNoise3D(x: number, y: number, z: number): number; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.SimplexD.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.SimplexD.d.ts new file mode 100644 index 00000000..3c1ae2e5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.d.SimplexD.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace nukkit { + namespace d { + // @ts-ignore + class SimplexD extends cn.nukkit.level.generator.noise.nukkit.d.PerlinD { + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom, octaves: number, persistence: number) + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom, octaves: number, persistence: number, expansion: number) + // @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 + public static grad3: number[][]; + // @ts-ignore + protected offsetW: number; + // @ts-ignore + protected static dot2D(g: number, x: number, y: number): number; + // @ts-ignore + protected static dot3D(g: number, x: number, y: number, z: number): number; + // @ts-ignore + protected static dot4D(g: number, x: number, y: number, z: number, w: number): number; + // @ts-ignore + public getNoise3D(x: number, y: number, z: number): number; + // @ts-ignore + public getNoise2D(x: number, y: number): number; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.NoiseF.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.NoiseF.d.ts new file mode 100644 index 00000000..8681eae6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.NoiseF.d.ts @@ -0,0 +1,61 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace nukkit { + namespace f { + // @ts-ignore + abstract class NoiseF 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; + // @ts-ignore + protected octaves: number; + // @ts-ignore + protected persistence: number; + // @ts-ignore + protected expansion: number; + // @ts-ignore + public static floor(x: number): number; + // @ts-ignore + public static fade(x: number): number; + // @ts-ignore + public static lerp(x: number, y: number, z: number): number; + // @ts-ignore + public static linearLerp(x: number, x1: number, x2: number, q0: number, q1: number): number; + // @ts-ignore + public static bilinearLerp(x: number, y: number, q00: number, q01: number, q10: number, q11: number, x1: number, x2: number, y1: number, y2: number): number; + // @ts-ignore + public static trilinearLerp(x: number, y: number, z: number, q000: number, q001: number, q010: number, q011: number, q100: number, q101: number, q110: number, q111: number, x1: number, x2: number, y1: number, y2: number, z1: number, z2: number): number; + // @ts-ignore + public static grad(hash: number, x: number, y: number, z: number): number; + // @ts-ignore + public abstract getNoise2D(x: number, z: number): number; + // @ts-ignore + public abstract getNoise3D(x: number, y: number, z: number): number; + // @ts-ignore + public noise2D(x: number, z: number): number; + // @ts-ignore + public noise2D(x: number, z: number, normalized: boolean): number; + // @ts-ignore + public noise3D(x: number, y: number, z: number): number; + // @ts-ignore + public noise3D(x: number, y: number, z: number, normalized: boolean): number; + // @ts-ignore + public setOffset(x: number, y: number, z: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.PerlinF.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.PerlinF.d.ts new file mode 100644 index 00000000..c8b24b2d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.PerlinF.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace nukkit { + namespace f { + // @ts-ignore + class PerlinF extends cn.nukkit.level.generator.noise.nukkit.f.NoiseF { + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom, octaves: number, persistence: number) + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom, octaves: number, persistence: number, expansion: number) + // @ts-ignore + public getNoise2D(x: number, y: number): number; + // @ts-ignore + public getNoise3D(x: number, y: number, z: number): number; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.SimplexF.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.SimplexF.d.ts new file mode 100644 index 00000000..e77e59aa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.nukkit.f.SimplexF.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace nukkit { + namespace f { + // @ts-ignore + class SimplexF extends cn.nukkit.level.generator.noise.nukkit.f.PerlinF { + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom, octaves: number, persistence: number) + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom, octaves: number, persistence: number, expansion: number) + // @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 + public static grad3: number[][]; + // @ts-ignore + protected offsetW: number; + // @ts-ignore + protected static dot2D(g: number, x: number, y: number): number; + // @ts-ignore + protected static dot3D(g: number, x: number, y: number, z: number): number; + // @ts-ignore + protected static dot4D(g: number, x: number, y: number, z: number, w: number): number; + // @ts-ignore + public getNoise3D(x: number, y: number, z: number): number; + // @ts-ignore + public getNoise2D(x: number, y: number): number; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorImprovedD.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorImprovedD.d.ts new file mode 100644 index 00000000..61d458ee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorImprovedD.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace vanilla { + namespace d { + // @ts-ignore + class NoiseGeneratorImprovedD extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(random: cn.nukkit.math.NukkitRandom) + // @ts-ignore + public xCoord: number; + // @ts-ignore + public yCoord: number; + // @ts-ignore + public zCoord: number; + // @ts-ignore + public lerp(p_76311_1_: number, p_76311_3_: number, p_76311_5_: number): number; + // @ts-ignore + public grad2(p_76309_1_: number, p_76309_2_: number, p_76309_4_: number): number; + // @ts-ignore + public grad(p_76310_1_: number, p_76310_2_: number, p_76310_4_: number, p_76310_6_: number): number; + // @ts-ignore + public populateNoiseArray(noiseArray: number, xOffset: number, yOffset: number, zOffset: number, xSize: number, ySize: number, zSize: number, xScale: number, yScale: number, zScale: number, noiseScale: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorOctavesD.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorOctavesD.d.ts new file mode 100644 index 00000000..30687f12 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorOctavesD.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace vanilla { + namespace d { + // @ts-ignore + class NoiseGeneratorOctavesD extends java.lang.Object { + // @ts-ignore + constructor(seed: cn.nukkit.math.NukkitRandom, octavesIn: number) + // @ts-ignore + public generateNoiseOctaves(noiseArray: number, xOffset: number, yOffset: number, zOffset: number, xSize: number, ySize: number, zSize: number, xScale: number, yScale: number, zScale: number): number[]; + // @ts-ignore + public generateNoiseOctaves(noiseArray: number, xOffset: number, zOffset: number, xSize: number, zSize: number, xScale: number, zScale: number, p_76305_10_: number): number[]; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorPerlinD.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorPerlinD.d.ts new file mode 100644 index 00000000..4b1ac17d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorPerlinD.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace vanilla { + namespace d { + // @ts-ignore + class NoiseGeneratorPerlinD extends java.lang.Object { + // @ts-ignore + constructor(p_i45470_1_: cn.nukkit.math.NukkitRandom, p_i45470_2_: number) + // @ts-ignore + public getValue(p_151601_1_: number, p_151601_3_: number): number; + // @ts-ignore + public getRegion(p_151599_1_: number, p_151599_2_: number, p_151599_4_: number, p_151599_6_: number, p_151599_7_: number, p_151599_8_: number, p_151599_10_: number, p_151599_12_: number): number[]; + // @ts-ignore + public getRegion(p_151600_1_: number, p_151600_2_: number, p_151600_4_: number, p_151600_6_: number, p_151600_7_: number, p_151600_8_: number, p_151600_10_: number, p_151600_12_: number, p_151600_14_: number): number[]; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorSimplexD.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorSimplexD.d.ts new file mode 100644 index 00000000..73d4a298 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.d.NoiseGeneratorSimplexD.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace vanilla { + namespace d { + // @ts-ignore + class NoiseGeneratorSimplexD extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(p_i45471_1_: cn.nukkit.math.NukkitRandom) + // @ts-ignore + public static SQRT_3: number; + // @ts-ignore + public xo: number; + // @ts-ignore + public yo: number; + // @ts-ignore + public zo: number; + // @ts-ignore + public getValue(p_151605_1_: number, p_151605_3_: number): number; + // @ts-ignore + public add(p_151606_1_: number, p_151606_2_: number, p_151606_4_: number, p_151606_6_: number, p_151606_7_: number, p_151606_8_: number, p_151606_10_: number, p_151606_12_: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorImprovedF.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorImprovedF.d.ts new file mode 100644 index 00000000..21ef0496 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorImprovedF.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace vanilla { + namespace f { + // @ts-ignore + class NoiseGeneratorImprovedF extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(p_i45469_1_: cn.nukkit.math.NukkitRandom) + // @ts-ignore + public xCoord: number; + // @ts-ignore + public yCoord: number; + // @ts-ignore + public zCoord: number; + // @ts-ignore + public lerp(p_76311_1_: number, p_76311_3_: number, p_76311_5_: number): number; + // @ts-ignore + public grad2(p_76309_1_: number, p_76309_2_: number, p_76309_4_: number): number; + // @ts-ignore + public grad(p_76310_1_: number, p_76310_2_: number, p_76310_4_: number, p_76310_6_: number): number; + // @ts-ignore + public populateNoiseArray(noiseArray: number, xOffset: number, yOffset: number, zOffset: number, xSize: number, ySize: number, zSize: number, xScale: number, yScale: number, zScale: number, noiseScale: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorOctavesF.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorOctavesF.d.ts new file mode 100644 index 00000000..55d9a53b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorOctavesF.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace vanilla { + namespace f { + // @ts-ignore + class NoiseGeneratorOctavesF extends java.lang.Object { + // @ts-ignore + constructor(seed: cn.nukkit.math.NukkitRandom, octavesIn: number) + // @ts-ignore + public generateNoiseOctaves(noiseArray: number, xOffset: number, yOffset: number, zOffset: number, xSize: number, ySize: number, zSize: number, xScale: number, yScale: number, zScale: number): number[]; + // @ts-ignore + public generateNoiseOctaves(noiseArray: number, xOffset: number, zOffset: number, xSize: number, zSize: number, xScale: number, zScale: number, p_76305_10_: number): number[]; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorPerlinF.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorPerlinF.d.ts new file mode 100644 index 00000000..87399e01 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorPerlinF.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace vanilla { + namespace f { + // @ts-ignore + class NoiseGeneratorPerlinF extends java.lang.Object { + // @ts-ignore + constructor(p_i45470_1_: cn.nukkit.math.NukkitRandom, p_i45470_2_: number) + // @ts-ignore + public getValue(p_151601_1_: number, p_151601_3_: number): number; + // @ts-ignore + public getRegion(p_151599_1_: number, p_151599_2_: number, p_151599_4_: number, p_151599_6_: number, p_151599_7_: number, p_151599_8_: number, p_151599_10_: number, p_151599_12_: number): number[]; + // @ts-ignore + public getRegion(p_151600_1_: number, p_151600_2_: number, p_151600_4_: number, p_151600_6_: number, p_151600_7_: number, p_151600_8_: number, p_151600_10_: number, p_151600_12_: number, p_151600_14_: number): number[]; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorSimplexF.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorSimplexF.d.ts new file mode 100644 index 00000000..a8c0133e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.noise.vanilla.f.NoiseGeneratorSimplexF.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace noise { + namespace vanilla { + namespace f { + // @ts-ignore + class NoiseGeneratorSimplexF extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(p_i45471_1_: cn.nukkit.math.NukkitRandom) + // @ts-ignore + public static SQRT_3: number; + // @ts-ignore + public xo: number; + // @ts-ignore + public yo: number; + // @ts-ignore + public zo: number; + // @ts-ignore + public getValue(p_151605_1_: number, p_151605_3_: number): number; + // @ts-ignore + public add(p_151606_1_: number, p_151606_2_: number, p_151606_4_: number, p_151606_6_: number, p_151606_7_: number, p_151606_8_: number, p_151606_10_: number, p_151606_12_: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.BasicGenerator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.BasicGenerator.d.ts new file mode 100644 index 00000000..04a3f438 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.BasicGenerator.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + // @ts-ignore + abstract class BasicGenerator extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public abstract generate(level: cn.nukkit.level.ChunkManager, rand: cn.nukkit.math.NukkitRandom, position: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + public setDecorationDefaults(): void; + // @ts-ignore + protected setBlockAndNotifyAdequately(level: cn.nukkit.level.ChunkManager, pos: cn.nukkit.math.BlockVector3, state: cn.nukkit.block.Block): void; + // @ts-ignore + protected setBlockAndNotifyAdequately(level: cn.nukkit.level.ChunkManager, pos: cn.nukkit.math.Vector3, state: cn.nukkit.block.Block): void; + // @ts-ignore + protected setBlock(level: cn.nukkit.level.ChunkManager, v: cn.nukkit.math.Vector3, b: cn.nukkit.block.Block): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.ObjectTallGrass.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.ObjectTallGrass.d.ts new file mode 100644 index 00000000..53cbd9b6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.ObjectTallGrass.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + // @ts-ignore + class ObjectTallGrass extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static growGrass(level: cn.nukkit.level.ChunkManager, pos: cn.nukkit.math.Vector3, random: cn.nukkit.math.NukkitRandom): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.mushroom.BigMushroom.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.mushroom.BigMushroom.d.ts new file mode 100644 index 00000000..d8006220 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.mushroom.BigMushroom.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace mushroom { + // @ts-ignore + class BigMushroom extends cn.nukkit.level.generator.object.BasicGenerator { + // @ts-ignore + constructor(mushroomType: number) + // @ts-ignore + constructor() + // @ts-ignore + public static NORTH_WEST: number; + // @ts-ignore + public static NORTH: number; + // @ts-ignore + public static NORTH_EAST: number; + // @ts-ignore + public static WEST: number; + // @ts-ignore + public static CENTER: number; + // @ts-ignore + public static EAST: number; + // @ts-ignore + public static SOUTH_WEST: number; + // @ts-ignore + public static SOUTH: number; + // @ts-ignore + public static SOUTH_EAST: number; + // @ts-ignore + public static STEM: number; + // @ts-ignore + public static ALL_INSIDE: number; + // @ts-ignore + public static ALL_OUTSIDE: number; + // @ts-ignore + public static ALL_STEM: number; + // @ts-ignore + public static BROWN: number; + // @ts-ignore + public static RED: number; + // @ts-ignore + public generate(level: cn.nukkit.level.ChunkManager, rand: cn.nukkit.math.NukkitRandom, position: cn.nukkit.math.Vector3): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.ore.OreType.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.ore.OreType.d.ts new file mode 100644 index 00000000..b445b3a3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.ore.OreType.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace ore { + // @ts-ignore + class OreType extends java.lang.Object { + // @ts-ignore + constructor(material: cn.nukkit.block.Block, clusterCount: number, clusterSize: number, minHeight: number, maxHeight: number) + // @ts-ignore + constructor(material: cn.nukkit.block.Block, clusterCount: number, clusterSize: number, minHeight: number, maxHeight: number, replaceBlockId: number) + // @ts-ignore + public fullId: number; + // @ts-ignore + public clusterCount: number; + // @ts-ignore + public clusterSize: number; + // @ts-ignore + public maxHeight: number; + // @ts-ignore + public minHeight: number; + // @ts-ignore + public replaceBlockId: number; + // @ts-ignore + public spawn(level: cn.nukkit.level.ChunkManager, rand: cn.nukkit.math.NukkitRandom, replaceId: number, x: number, y: number, z: number): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.HugeTreesGenerator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.HugeTreesGenerator.d.ts new file mode 100644 index 00000000..f050aeec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.HugeTreesGenerator.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + abstract class HugeTreesGenerator extends cn.nukkit.level.generator.object.tree.TreeGenerator { + // @ts-ignore + constructor(baseHeightIn: number, extraRandomHeightIn: number, woodMetadataIn: cn.nukkit.block.Block, leavesMetadataIn: cn.nukkit.block.Block) + // @ts-ignore + protected baseHeight: number; + // @ts-ignore + protected woodMetadata: cn.nukkit.block.Block; + // @ts-ignore + protected leavesMetadata: cn.nukkit.block.Block; + // @ts-ignore + protected extraRandomHeight: number; + // @ts-ignore + protected getHeight(rand: cn.nukkit.math.NukkitRandom): number; + // @ts-ignore + protected ensureGrowable(worldIn: cn.nukkit.level.ChunkManager, rand: cn.nukkit.math.NukkitRandom, treePos: cn.nukkit.math.Vector3, p_175929_4_: number): boolean; + // @ts-ignore + protected growLeavesLayerStrict(worldIn: cn.nukkit.level.ChunkManager, layerCenter: cn.nukkit.math.Vector3, width: number): void; + // @ts-ignore + protected growLeavesLayer(worldIn: cn.nukkit.level.ChunkManager, layerCenter: cn.nukkit.math.Vector3, width: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.NewJungleTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.NewJungleTree.d.ts new file mode 100644 index 00000000..f441b272 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.NewJungleTree.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class NewJungleTree extends cn.nukkit.level.generator.object.tree.TreeGenerator { + // @ts-ignore + constructor(minTreeHeight: number, maxTreeHeight: number) + // @ts-ignore + public generate(worldIn: cn.nukkit.level.ChunkManager, rand: cn.nukkit.math.NukkitRandom, vectorPosition: cn.nukkit.math.Vector3): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectBigSpruceTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectBigSpruceTree.d.ts new file mode 100644 index 00000000..82e7d9b1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectBigSpruceTree.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectBigSpruceTree extends cn.nukkit.level.generator.object.tree.ObjectSpruceTree { + // @ts-ignore + constructor(leafStartHeightMultiplier: number, baseLeafRadius: number) + // @ts-ignore + public placeObject(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + protected placeTrunk(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom, trunkHeight: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectBirchTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectBirchTree.d.ts new file mode 100644 index 00000000..dfefa597 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectBirchTree.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectBirchTree extends cn.nukkit.level.generator.object.tree.ObjectTree { + // @ts-ignore + constructor() + // @ts-ignore + protected treeHeight: number; + // @ts-ignore + public getTrunkBlock(): number; + // @ts-ignore + public getLeafBlock(): number; + // @ts-ignore + public getType(): number; + // @ts-ignore + public getTreeHeight(): number; + // @ts-ignore + public placeObject(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectDarkOakTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectDarkOakTree.d.ts new file mode 100644 index 00000000..b2077be0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectDarkOakTree.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectDarkOakTree extends cn.nukkit.level.generator.object.tree.TreeGenerator { + // @ts-ignore + constructor() + // @ts-ignore + public generate(level: cn.nukkit.level.ChunkManager, rand: cn.nukkit.math.NukkitRandom, position: cn.nukkit.math.Vector3): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectJungleBigTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectJungleBigTree.d.ts new file mode 100644 index 00000000..c71e5dae --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectJungleBigTree.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectJungleBigTree extends cn.nukkit.level.generator.object.tree.HugeTreesGenerator { + // @ts-ignore + constructor(baseHeightIn: number, extraRandomHeight: number, woodMetadata: cn.nukkit.block.Block, leavesMetadata: cn.nukkit.block.Block) + // @ts-ignore + public generate(level: cn.nukkit.level.ChunkManager, rand: cn.nukkit.math.NukkitRandom, position: cn.nukkit.math.Vector3): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectJungleTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectJungleTree.d.ts new file mode 100644 index 00000000..bc28de10 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectJungleTree.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectJungleTree extends cn.nukkit.level.generator.object.tree.ObjectTree { + // @ts-ignore + constructor() + // @ts-ignore + public getTrunkBlock(): number; + // @ts-ignore + public getLeafBlock(): number; + // @ts-ignore + public getType(): number; + // @ts-ignore + public getTreeHeight(): number; + // @ts-ignore + public placeObject(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectOakTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectOakTree.d.ts new file mode 100644 index 00000000..4fcb46ee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectOakTree.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectOakTree extends cn.nukkit.level.generator.object.tree.ObjectTree { + // @ts-ignore + constructor() + // @ts-ignore + public getTrunkBlock(): number; + // @ts-ignore + public getLeafBlock(): number; + // @ts-ignore + public getType(): number; + // @ts-ignore + public getTreeHeight(): number; + // @ts-ignore + public placeObject(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSavannaTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSavannaTree.d.ts new file mode 100644 index 00000000..bf4f3364 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSavannaTree.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectSavannaTree extends cn.nukkit.level.generator.object.tree.TreeGenerator { + // @ts-ignore + constructor() + // @ts-ignore + public generate(level: cn.nukkit.level.ChunkManager, rand: cn.nukkit.math.NukkitRandom, position: cn.nukkit.math.Vector3): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSpruceTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSpruceTree.d.ts new file mode 100644 index 00000000..31aa9af8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSpruceTree.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectSpruceTree extends cn.nukkit.level.generator.object.tree.ObjectTree { + // @ts-ignore + constructor() + // @ts-ignore + protected treeHeight: number; + // @ts-ignore + public getTrunkBlock(): number; + // @ts-ignore + public getLeafBlock(): number; + // @ts-ignore + public getType(): number; + // @ts-ignore + public getTreeHeight(): number; + // @ts-ignore + public placeObject(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + public placeLeaves(level: cn.nukkit.level.ChunkManager, topSize: number, lRadius: number, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSwampTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSwampTree.d.ts new file mode 100644 index 00000000..846f0ea0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectSwampTree.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectSwampTree extends cn.nukkit.level.generator.object.tree.TreeGenerator { + // @ts-ignore + constructor() + // @ts-ignore + public generate(worldIn: cn.nukkit.level.ChunkManager, rand: cn.nukkit.math.NukkitRandom, vectorPosition: cn.nukkit.math.Vector3): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectTallBirchTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectTallBirchTree.d.ts new file mode 100644 index 00000000..7d662f52 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectTallBirchTree.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + class ObjectTallBirchTree extends cn.nukkit.level.generator.object.tree.ObjectBirchTree { + // @ts-ignore + constructor() + // @ts-ignore + public placeObject(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectTree.d.ts new file mode 100644 index 00000000..b8338f8a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.ObjectTree.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + abstract class ObjectTree extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected overridable(id: number): boolean; + // @ts-ignore + public getType(): number; + // @ts-ignore + public getTrunkBlock(): number; + // @ts-ignore + public getLeafBlock(): number; + // @ts-ignore + public getTreeHeight(): number; + // @ts-ignore + public static growTree(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + public static growTree(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom, type: number): void; + // @ts-ignore + public canPlaceObject(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): boolean; + // @ts-ignore + public placeObject(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + protected placeTrunk(level: cn.nukkit.level.ChunkManager, x: number, y: number, z: number, random: cn.nukkit.math.NukkitRandom, trunkHeight: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.TreeGenerator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.TreeGenerator.d.ts new file mode 100644 index 00000000..5aef3c00 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.object.tree.TreeGenerator.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace object { + namespace tree { + // @ts-ignore + abstract class TreeGenerator extends cn.nukkit.level.generator.object.BasicGenerator { + // @ts-ignore + constructor() + // @ts-ignore + protected canGrowInto(id: number): boolean; + // @ts-ignore + public generateSaplings(level: cn.nukkit.level.Level, random: java.util.Random, pos: cn.nukkit.math.Vector3): void; + // @ts-ignore + protected setDirtAt(level: cn.nukkit.level.ChunkManager, pos: cn.nukkit.math.BlockVector3): void; + // @ts-ignore + protected setDirtAt(level: cn.nukkit.level.ChunkManager, pos: cn.nukkit.math.Vector3): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureBelow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureBelow.d.ts new file mode 100644 index 00000000..4356c16b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureBelow.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace helper { + // @ts-ignore + interface EnsureBelow { + // @ts-ignore + ensureBelow(x: number, y: number, z: number, id: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureCover.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureCover.d.ts new file mode 100644 index 00000000..e4ff2d76 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureCover.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace helper { + // @ts-ignore + interface EnsureCover { + // @ts-ignore + ensureCover(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureGrassBelow.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureGrassBelow.d.ts new file mode 100644 index 00000000..0c66b831 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.EnsureGrassBelow.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace helper { + // @ts-ignore + interface EnsureGrassBelow { + // @ts-ignore + ensureGrassBelow(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.PopulatorHelpers.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.PopulatorHelpers.d.ts new file mode 100644 index 00000000..7c2126c3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.helper.PopulatorHelpers.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace helper { + // @ts-ignore + class PopulatorHelpers extends java.lang.Object implements cn.nukkit.block.BlockID { + // @ts-ignore + public static canGrassStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + public static isNonSolid(id: number): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.MushroomPopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.MushroomPopulator.d.ts new file mode 100644 index 00000000..574f7016 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.MushroomPopulator.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class MushroomPopulator extends cn.nukkit.level.generator.populator.type.PopulatorCount { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public populateCount(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + protected getHighestWorkableBlock(level: cn.nukkit.level.ChunkManager, x: number, z: number, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorBedrock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorBedrock.d.ts new file mode 100644 index 00000000..84e12b6d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorBedrock.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorBedrock extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorCactus.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorCactus.d.ts new file mode 100644 index 00000000..f8fa0f66 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorCactus.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorCactus extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor() + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorCaves.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorCaves.d.ts new file mode 100644 index 00000000..5feefec9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorCaves.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorCaves extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + protected checkAreaSize: number; + // @ts-ignore + public static caveRarity: number; + // @ts-ignore + public static caveFrequency: number; + // @ts-ignore + public static caveMinAltitude: number; + // @ts-ignore + public static caveMaxAltitude: number; + // @ts-ignore + public static individualCaveRarity: number; + // @ts-ignore + public static caveSystemFrequency: number; + // @ts-ignore + public static caveSystemPocketChance: number; + // @ts-ignore + public static caveSystemPocketMinSize: number; + // @ts-ignore + public static caveSystemPocketMaxSize: number; + // @ts-ignore + public static evenCaveDistribution: boolean; + // @ts-ignore + public worldHeightCap: number; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + protected generateLargeCaveNode(seed: number, chunk: cn.nukkit.level.format.FullChunk, x: number, y: number, z: number): void; + // @ts-ignore + protected generateCaveNode(seed: number, chunk: cn.nukkit.level.format.FullChunk, x: number, y: number, z: number, radius: number, angelOffset: number, angel: number, angle: number, maxAngle: number, scale: number): void; + // @ts-ignore + protected generateChunk(chunkX: number, chunkZ: number, generatingChunkBuffer: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public static numberInRange(random: java.util.Random, min: number, max: number): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorDeadBush.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorDeadBush.d.ts new file mode 100644 index 00000000..84f29e55 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorDeadBush.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorDeadBush extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor() + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorDoublePlant.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorDoublePlant.d.ts new file mode 100644 index 00000000..2b30304c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorDoublePlant.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorDoublePlant extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor(type: number) + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + // @ts-ignore + protected placeBlock(x: number, y: number, z: number, id: number, chunk: cn.nukkit.level.format.FullChunk, random: cn.nukkit.math.NukkitRandom): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorFlower.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorFlower.d.ts new file mode 100644 index 00000000..a0fe2570 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorFlower.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorFlower extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor() + // @ts-ignore + public addType(a: number, b: number): void; + // @ts-ignore + public getTypes(): java.util.List; + // @ts-ignore + protected placeBlock(x: number, y: number, z: number, id: number, chunk: cn.nukkit.level.format.FullChunk, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGlowStone.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGlowStone.d.ts new file mode 100644 index 00000000..3e47cfa0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGlowStone.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorGlowStone extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGrass.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGrass.d.ts new file mode 100644 index 00000000..7a821e4f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGrass.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorGrass extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor() + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGroundCover.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGroundCover.d.ts new file mode 100644 index 00000000..fc3b719d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGroundCover.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorGroundCover extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + public static STONE: number; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGroundFire.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGroundFire.d.ts new file mode 100644 index 00000000..1d2f4c55 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorGroundFire.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorGroundFire extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor() + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + // @ts-ignore + protected placeBlock(x: number, y: number, z: number, id: number, chunk: cn.nukkit.level.format.FullChunk, random: cn.nukkit.math.NukkitRandom): void; + // @ts-ignore + protected getHighestWorkableBlock(level: cn.nukkit.level.ChunkManager, x: number, z: number, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorLava.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorLava.d.ts new file mode 100644 index 00000000..909dba93 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorLava.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorLava extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + public setRandomAmount(amount: number): void; + // @ts-ignore + public setBaseAmount(amount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorLilyPad.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorLilyPad.d.ts new file mode 100644 index 00000000..d70cf89a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorLilyPad.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorLilyPad extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor() + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorMelon.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorMelon.d.ts new file mode 100644 index 00000000..45f14638 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorMelon.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorMelon extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor() + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorMineshaft.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorMineshaft.d.ts new file mode 100644 index 00000000..fe52ab95 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorMineshaft.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorMineshaft extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorOre.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorOre.d.ts new file mode 100644 index 00000000..f06f26b1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorOre.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorOre extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(id: number) + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + public setOreTypes(oreTypes: cn.nukkit.level.generator.object.ore.OreType): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorRavines.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorRavines.d.ts new file mode 100644 index 00000000..739639a1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorRavines.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorRavines extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + protected checkAreaSize: number; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + protected generateChunk(chunkX: number, chunkZ: number, generatingChunkBuffer: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + protected createRavine(paramLong: number, generatingChunkBuffer: cn.nukkit.level.format.FullChunk, paramDouble1: number, paramDouble2: number, paramDouble3: number, paramFloat1: number, paramFloat2: number, paramFloat3: number, size: number, paramDouble4: number): void; + // @ts-ignore + public static numberInRange(random: java.util.Random, min: number, max: number): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorSmallMushroom.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorSmallMushroom.d.ts new file mode 100644 index 00000000..84cd6896 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorSmallMushroom.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorSmallMushroom extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor() + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorSugarcane.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorSugarcane.d.ts new file mode 100644 index 00000000..65ef5a3b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorSugarcane.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorSugarcane extends cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock { + // @ts-ignore + constructor() + // @ts-ignore + protected canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorTallSugarcane.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorTallSugarcane.d.ts new file mode 100644 index 00000000..002f4ae5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorTallSugarcane.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorTallSugarcane extends cn.nukkit.level.generator.populator.impl.PopulatorSugarcane { + // @ts-ignore + constructor() + // @ts-ignore + protected placeBlock(x: number, y: number, z: number, id: number, chunk: cn.nukkit.level.format.FullChunk, random: cn.nukkit.math.NukkitRandom): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorTree.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorTree.d.ts new file mode 100644 index 00000000..9268af4b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.PopulatorTree.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class PopulatorTree extends cn.nukkit.level.generator.populator.type.PopulatorCount { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public populateCount(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.WaterIcePopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.WaterIcePopulator.d.ts new file mode 100644 index 00000000..253b4095 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.WaterIcePopulator.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + // @ts-ignore + class WaterIcePopulator extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.DarkOakTreePopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.DarkOakTreePopulator.d.ts new file mode 100644 index 00000000..bf6d773c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.DarkOakTreePopulator.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + namespace tree { + // @ts-ignore + class DarkOakTreePopulator extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public setRandomAmount(randomAmount: number): void; + // @ts-ignore + public setBaseAmount(baseAmount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleBigTreePopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleBigTreePopulator.d.ts new file mode 100644 index 00000000..f5e92e47 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleBigTreePopulator.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + namespace tree { + // @ts-ignore + class JungleBigTreePopulator extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public setRandomAmount(randomAmount: number): void; + // @ts-ignore + public setBaseAmount(baseAmount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleFloorPopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleFloorPopulator.d.ts new file mode 100644 index 00000000..8b9c56bf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleFloorPopulator.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + namespace tree { + // @ts-ignore + class JungleFloorPopulator extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public setRandomAmount(randomAmount: number): void; + // @ts-ignore + public setBaseAmount(baseAmount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleTreePopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleTreePopulator.d.ts new file mode 100644 index 00000000..639fc166 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.JungleTreePopulator.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + namespace tree { + // @ts-ignore + class JungleTreePopulator extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public setRandomAmount(randomAmount: number): void; + // @ts-ignore + public setBaseAmount(baseAmount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SavannaTreePopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SavannaTreePopulator.d.ts new file mode 100644 index 00000000..6dfe9c49 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SavannaTreePopulator.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + namespace tree { + // @ts-ignore + class SavannaTreePopulator extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public setRandomAmount(randomAmount: number): void; + // @ts-ignore + public setBaseAmount(baseAmount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SpruceBigTreePopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SpruceBigTreePopulator.d.ts new file mode 100644 index 00000000..9937c0f4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SpruceBigTreePopulator.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + namespace tree { + // @ts-ignore + class SpruceBigTreePopulator extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + public setRandomAmount(randomAmount: number): void; + // @ts-ignore + public setBaseAmount(baseAmount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SpruceMegaTreePopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SpruceMegaTreePopulator.d.ts new file mode 100644 index 00000000..22b69021 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SpruceMegaTreePopulator.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + namespace tree { + // @ts-ignore + class SpruceMegaTreePopulator extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + public setRandomAmount(randomAmount: number): void; + // @ts-ignore + public setBaseAmount(baseAmount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SwampTreePopulator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SwampTreePopulator.d.ts new file mode 100644 index 00000000..1b89f417 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.impl.tree.SwampTreePopulator.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace impl { + namespace tree { + // @ts-ignore + class SwampTreePopulator extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: number) + // @ts-ignore + public setRandomAmount(randomAmount: number): void; + // @ts-ignore + public setBaseAmount(baseAmount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.Populator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.Populator.d.ts new file mode 100644 index 00000000..3f4ab62b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.Populator.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace type { + // @ts-ignore + abstract class Populator extends java.lang.Object implements cn.nukkit.block.BlockID { + // @ts-ignore + constructor() + // @ts-ignore + public abstract populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + protected getHighestWorkableBlock(level: cn.nukkit.level.ChunkManager, x: number, z: number, chunk: cn.nukkit.level.format.FullChunk): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.PopulatorCount.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.PopulatorCount.d.ts new file mode 100644 index 00000000..fc2b9e19 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.PopulatorCount.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace type { + // @ts-ignore + abstract class PopulatorCount extends cn.nukkit.level.generator.populator.type.Populator { + // @ts-ignore + constructor() + // @ts-ignore + public setRandomAmount(randomAmount: number): void; + // @ts-ignore + public setBaseAmount(baseAmount: number): void; + // @ts-ignore + public populate(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + protected abstract populateCount(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock.d.ts new file mode 100644 index 00000000..cf150bb6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.populator.type.PopulatorSurfaceBlock.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace populator { + namespace type { + // @ts-ignore + abstract class PopulatorSurfaceBlock extends cn.nukkit.level.generator.populator.type.PopulatorCount { + // @ts-ignore + constructor() + // @ts-ignore + protected populateCount(level: cn.nukkit.level.ChunkManager, chunkX: number, chunkZ: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): void; + // @ts-ignore + protected abstract canStay(x: number, y: number, z: number, chunk: cn.nukkit.level.format.FullChunk): boolean; + // @ts-ignore + protected abstract getBlockId(x: number, z: number, random: cn.nukkit.math.NukkitRandom, chunk: cn.nukkit.level.format.FullChunk): number; + // @ts-ignore + protected getHighestWorkableBlock(level: cn.nukkit.level.ChunkManager, x: number, z: number, chunk: cn.nukkit.level.format.FullChunk): number; + // @ts-ignore + protected placeBlock(x: number, y: number, z: number, id: number, chunk: cn.nukkit.level.format.FullChunk, random: cn.nukkit.math.NukkitRandom): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.GenerationTask.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.GenerationTask.d.ts new file mode 100644 index 00000000..f7bc7de8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.GenerationTask.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace task { + // @ts-ignore + class GenerationTask extends cn.nukkit.scheduler.AsyncTask { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, chunk: cn.nukkit.level.format.generic.BaseFullChunk) + // @ts-ignore + public state: boolean; + // @ts-ignore + public onRun(): void; + // @ts-ignore + public onCompletion(server: cn.nukkit.Server): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.LightPopulationTask.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.LightPopulationTask.d.ts new file mode 100644 index 00000000..28e0d981 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.LightPopulationTask.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace task { + // @ts-ignore + class LightPopulationTask extends cn.nukkit.scheduler.AsyncTask { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, chunk: cn.nukkit.level.format.generic.BaseFullChunk) + // @ts-ignore + public levelId: number; + // @ts-ignore + public chunk: cn.nukkit.level.format.generic.BaseFullChunk; + // @ts-ignore + public onRun(): void; + // @ts-ignore + public onCompletion(server: cn.nukkit.Server): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.PopulationTask.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.PopulationTask.d.ts new file mode 100644 index 00000000..42bd54d6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.generator.task.PopulationTask.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace generator { + namespace task { + // @ts-ignore + class PopulationTask extends cn.nukkit.scheduler.AsyncTask { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, chunk: cn.nukkit.level.format.generic.BaseFullChunk) + // @ts-ignore + public chunks: cn.nukkit.level.format.generic.BaseFullChunk[]; + // @ts-ignore + public onRun(): void; + // @ts-ignore + public onCompletion(server: cn.nukkit.Server): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.AngryVillagerParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.AngryVillagerParticle.d.ts new file mode 100644 index 00000000..3fdfbf62 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.AngryVillagerParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class AngryVillagerParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BlockForceFieldParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BlockForceFieldParticle.d.ts new file mode 100644 index 00000000..4377051a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BlockForceFieldParticle.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class BlockForceFieldParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, scale: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BoneMealParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BoneMealParticle.d.ts new file mode 100644 index 00000000..348f68ba --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BoneMealParticle.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class BoneMealParticle extends cn.nukkit.level.particle.Particle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + // @ts-ignore + public encode(): cn.nukkit.network.protocol.DataPacket[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BubbleParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BubbleParticle.d.ts new file mode 100644 index 00000000..f8f5d16d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.BubbleParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class BubbleParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.CriticalParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.CriticalParticle.d.ts new file mode 100644 index 00000000..081b3db1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.CriticalParticle.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class CriticalParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, scale: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.DestroyBlockParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.DestroyBlockParticle.d.ts new file mode 100644 index 00000000..75796baa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.DestroyBlockParticle.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class DestroyBlockParticle extends cn.nukkit.level.particle.Particle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block) + // @ts-ignore + protected data: number; + // @ts-ignore + public encode(): cn.nukkit.network.protocol.DataPacket[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.DustParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.DustParticle.d.ts new file mode 100644 index 00000000..8feae67e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.DustParticle.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class DustParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, blockColor: cn.nukkit.utils.BlockColor) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, r: number, g: number, b: number) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, r: number, g: number, b: number, a: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EnchantParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EnchantParticle.d.ts new file mode 100644 index 00000000..b87d00ad --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EnchantParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class EnchantParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EnchantmentTableParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EnchantmentTableParticle.d.ts new file mode 100644 index 00000000..0810438f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EnchantmentTableParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class EnchantmentTableParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EntityFlameParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EntityFlameParticle.d.ts new file mode 100644 index 00000000..40007bc9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.EntityFlameParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class EntityFlameParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.ExplodeParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.ExplodeParticle.d.ts new file mode 100644 index 00000000..7ec56ee1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.ExplodeParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class ExplodeParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.FlameParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.FlameParticle.d.ts new file mode 100644 index 00000000..05a76680 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.FlameParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class FlameParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.FloatingTextParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.FloatingTextParticle.d.ts new file mode 100644 index 00000000..9694bc3b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.FloatingTextParticle.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class FloatingTextParticle extends cn.nukkit.level.particle.Particle { + // @ts-ignore + constructor(location: cn.nukkit.level.Location, title: string) + // @ts-ignore + constructor(location: cn.nukkit.level.Location, title: string, text: string) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, title: string) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, title: string, text: string) + // @ts-ignore + protected uuid: java.util.UUID; + // @ts-ignore + protected level: cn.nukkit.level.Level; + // @ts-ignore + protected entityId: number; + // @ts-ignore + protected invisible: boolean; + // @ts-ignore + protected metadata: cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public getText(): string; + // @ts-ignore + public setText(text: string): void; + // @ts-ignore + public getTitle(): string; + // @ts-ignore + public setTitle(title: string): void; + // @ts-ignore + public isInvisible(): boolean; + // @ts-ignore + public setInvisible(invisible: boolean): void; + // @ts-ignore + public setInvisible(): void; + // @ts-ignore + public getEntityId(): number; + // @ts-ignore + public encode(): cn.nukkit.network.protocol.DataPacket[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.GenericParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.GenericParticle.d.ts new file mode 100644 index 00000000..b99cdabe --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.GenericParticle.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class GenericParticle extends cn.nukkit.level.particle.Particle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, id: number) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, id: number, data: number) + // @ts-ignore + protected id: number; + // @ts-ignore + protected data: number; + // @ts-ignore + public encode(): cn.nukkit.network.protocol.DataPacket[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HappyVillagerParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HappyVillagerParticle.d.ts new file mode 100644 index 00000000..d76b0d5d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HappyVillagerParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class HappyVillagerParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HeartParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HeartParticle.d.ts new file mode 100644 index 00000000..aefa0c11 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HeartParticle.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class HeartParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, scale: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HugeExplodeParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HugeExplodeParticle.d.ts new file mode 100644 index 00000000..ee682919 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HugeExplodeParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class HugeExplodeParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HugeExplodeSeedParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HugeExplodeSeedParticle.d.ts new file mode 100644 index 00000000..19176bd6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.HugeExplodeSeedParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class HugeExplodeSeedParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InkParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InkParticle.d.ts new file mode 100644 index 00000000..98c494f3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InkParticle.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class InkParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, scale: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InstantEnchantParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InstantEnchantParticle.d.ts new file mode 100644 index 00000000..c615c5ac --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InstantEnchantParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class InstantEnchantParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InstantSpellParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InstantSpellParticle.d.ts new file mode 100644 index 00000000..af65f2e2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.InstantSpellParticle.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class InstantSpellParticle extends cn.nukkit.level.particle.SpellParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, data: number) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, blockColor: cn.nukkit.utils.BlockColor) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, r: number, g: number, b: number) + // @ts-ignore + protected data: number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.ItemBreakParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.ItemBreakParticle.d.ts new file mode 100644 index 00000000..598ca486 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.ItemBreakParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class ItemBreakParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, item: cn.nukkit.item.Item) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.LavaDripParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.LavaDripParticle.d.ts new file mode 100644 index 00000000..decd3e37 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.LavaDripParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class LavaDripParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.LavaParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.LavaParticle.d.ts new file mode 100644 index 00000000..6aff953f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.LavaParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class LavaParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.MobSpawnParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.MobSpawnParticle.d.ts new file mode 100644 index 00000000..c45b8188 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.MobSpawnParticle.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class MobSpawnParticle extends cn.nukkit.level.particle.Particle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, width: number, height: number) + // @ts-ignore + protected width: number; + // @ts-ignore + protected height: number; + // @ts-ignore + public encode(): cn.nukkit.network.protocol.DataPacket[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.Particle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.Particle.d.ts new file mode 100644 index 00000000..174923b0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.Particle.d.ts @@ -0,0 +1,147 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + abstract class Particle extends cn.nukkit.math.Vector3 { + // @ts-ignore + constructor() + // @ts-ignore + constructor(x: number) + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + constructor(x: number, y: number, z: number) + // @ts-ignore + public static TYPE_BUBBLE: number; + // @ts-ignore + public static TYPE_CRITICAL: number; + // @ts-ignore + public static TYPE_BLOCK_FORCE_FIELD: number; + // @ts-ignore + public static TYPE_SMOKE: number; + // @ts-ignore + public static TYPE_EXPLODE: number; + // @ts-ignore + public static TYPE_EVAPORATION: number; + // @ts-ignore + public static TYPE_FLAME: number; + // @ts-ignore + public static TYPE_LAVA: number; + // @ts-ignore + public static TYPE_LARGE_SMOKE: number; + // @ts-ignore + public static TYPE_REDSTONE: number; + // @ts-ignore + public static TYPE_RISING_RED_DUST: number; + // @ts-ignore + public static TYPE_ITEM_BREAK: number; + // @ts-ignore + public static TYPE_SNOWBALL_POOF: number; + // @ts-ignore + public static TYPE_HUGE_EXPLODE: number; + // @ts-ignore + public static TYPE_HUGE_EXPLODE_SEED: number; + // @ts-ignore + public static TYPE_MOB_FLAME: number; + // @ts-ignore + public static TYPE_HEART: number; + // @ts-ignore + public static TYPE_TERRAIN: number; + // @ts-ignore + public static TYPE_SUSPENDED_TOWN: number; + // @ts-ignore + public static TYPE_TOWN_AURA: number; + // @ts-ignore + public static TYPE_PORTAL: number; + // @ts-ignore + public static TYPE_SPLASH: number; + // @ts-ignore + public static TYPE_WATER_SPLASH: number; + // @ts-ignore + public static TYPE_WATER_WAKE: number; + // @ts-ignore + public static TYPE_DRIP_WATER: number; + // @ts-ignore + public static TYPE_DRIP_LAVA: number; + // @ts-ignore + public static TYPE_DRIP_HONEY: number; + // @ts-ignore + public static TYPE_FALLING_DUST: number; + // @ts-ignore + public static TYPE_DUST: number; + // @ts-ignore + public static TYPE_MOB_SPELL: number; + // @ts-ignore + public static TYPE_MOB_SPELL_AMBIENT: number; + // @ts-ignore + public static TYPE_MOB_SPELL_INSTANTANEOUS: number; + // @ts-ignore + public static TYPE_NOTE_AND_DUST: number; + // @ts-ignore + public static TYPE_SLIME: number; + // @ts-ignore + public static TYPE_RAIN_SPLASH: number; + // @ts-ignore + public static TYPE_VILLAGER_ANGRY: number; + // @ts-ignore + public static TYPE_VILLAGER_HAPPY: number; + // @ts-ignore + public static TYPE_ENCHANTMENT_TABLE: number; + // @ts-ignore + public static TYPE_TRACKING_EMITTER: number; + // @ts-ignore + public static TYPE_NOTE: number; + // @ts-ignore + public static TYPE_WITCH_SPELL: number; + // @ts-ignore + public static TYPE_CARROT: number; + // @ts-ignore + public static TYPE_END_ROD: number; + // @ts-ignore + public static TYPE_RISING_DRAGONS_BREATH: number; + // @ts-ignore + public static TYPE_SPIT: number; + // @ts-ignore + public static TYPE_TOTEM: number; + // @ts-ignore + public static TYPE_FOOD: number; + // @ts-ignore + public static TYPE_FIREWORKS_STARTER: number; + // @ts-ignore + public static TYPE_FIREWORKS_SPARK: number; + // @ts-ignore + public static TYPE_FIREWORKS_OVERLAY: number; + // @ts-ignore + public static TYPE_BALLOON_GAS: number; + // @ts-ignore + public static TYPE_COLORED_FLAME: number; + // @ts-ignore + public static TYPE_SPARKLER: number; + // @ts-ignore + public static TYPE_CONDUIT: number; + // @ts-ignore + public static TYPE_BUBBLE_COLUMN_UP: number; + // @ts-ignore + public static TYPE_BUBBLE_COLUMN_DOWN: number; + // @ts-ignore + public static TYPE_SNEEZE: number; + // @ts-ignore + public static TYPE_LARGE_EXPLOSION: number; + // @ts-ignore + public static TYPE_INK: number; + // @ts-ignore + public static TYPE_FALLING_RED_DUST: number; + // @ts-ignore + public static TYPE_CAMPFIRE_SMOKE: number; + // @ts-ignore + public static TYPE_FALLING_DRAGONS_BREATH: number; + // @ts-ignore + public static TYPE_DRAGONS_BREATH: number; + // @ts-ignore + public abstract encode(): cn.nukkit.network.protocol.DataPacket[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.PortalParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.PortalParticle.d.ts new file mode 100644 index 00000000..47a7ac84 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.PortalParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class PortalParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.PunchBlockParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.PunchBlockParticle.d.ts new file mode 100644 index 00000000..d017dd64 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.PunchBlockParticle.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class PunchBlockParticle extends cn.nukkit.level.particle.Particle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block, face: cn.nukkit.math.BlockFace) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, blockId: number, blockDamage: number, face: cn.nukkit.math.BlockFace) + // @ts-ignore + protected data: number; + // @ts-ignore + public encode(): cn.nukkit.network.protocol.DataPacket[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.RainSplashParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.RainSplashParticle.d.ts new file mode 100644 index 00000000..13ed1a17 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.RainSplashParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class RainSplashParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.RedstoneParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.RedstoneParticle.d.ts new file mode 100644 index 00000000..bb15d8c9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.RedstoneParticle.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class RedstoneParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, lifetime: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SmokeParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SmokeParticle.d.ts new file mode 100644 index 00000000..f38941a0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SmokeParticle.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class SmokeParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, scale: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SpellParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SpellParticle.d.ts new file mode 100644 index 00000000..f5a9b326 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SpellParticle.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class SpellParticle extends cn.nukkit.level.particle.Particle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, data: number) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, blockColor: cn.nukkit.utils.BlockColor) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, r: number, g: number, b: number) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, r: number, g: number, b: number, a: number) + // @ts-ignore + protected data: number; + // @ts-ignore + public encode(): cn.nukkit.network.protocol.DataPacket[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SplashParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SplashParticle.d.ts new file mode 100644 index 00000000..e2a34326 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SplashParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class SplashParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SporeParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SporeParticle.d.ts new file mode 100644 index 00000000..86ded019 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.SporeParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class SporeParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.TerrainParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.TerrainParticle.d.ts new file mode 100644 index 00000000..1ac85d47 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.TerrainParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class TerrainParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.WaterDripParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.WaterDripParticle.d.ts new file mode 100644 index 00000000..8581e055 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.WaterDripParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class WaterDripParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.WaterParticle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.WaterParticle.d.ts new file mode 100644 index 00000000..72c4e99c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.level.particle.WaterParticle.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace level { + namespace particle { + // @ts-ignore + class WaterParticle extends cn.nukkit.level.particle.GenericParticle { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3) + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.Angle.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.Angle.d.ts new file mode 100644 index 00000000..f522f171 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.Angle.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class Angle extends java.lang.Object { + // @ts-ignore + public static fromDegree(floatDegree: number): cn.nukkit.math.Angle; + // @ts-ignore + public static fromDegree(doubleDegree: number): cn.nukkit.math.Angle; + // @ts-ignore + public static fromRadian(floatRadian: number): cn.nukkit.math.Angle; + // @ts-ignore + public static fromRadian(doubleRadian: number): cn.nukkit.math.Angle; + // @ts-ignore + public static asin(v: number): cn.nukkit.math.Angle; + // @ts-ignore + public static acos(v: number): cn.nukkit.math.Angle; + // @ts-ignore + public static atan(v: number): cn.nukkit.math.Angle; + // @ts-ignore + public sin(): number; + // @ts-ignore + public cos(): number; + // @ts-ignore + public tan(): number; + // @ts-ignore + public asFloatRadian(): number; + // @ts-ignore + public asDoubleRadian(): number; + // @ts-ignore + public asFloatDegree(): number; + // @ts-ignore + public asDoubleDegree(): number; + // @ts-ignore + public static compare(a: cn.nukkit.math.Angle, b: cn.nukkit.math.Angle): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public compareTo(o: cn.nukkit.math.Angle): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.AxisAlignedBB.BBConsumer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.AxisAlignedBB.BBConsumer.d.ts new file mode 100644 index 00000000..787c6884 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.AxisAlignedBB.BBConsumer.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace math { + namespace AxisAlignedBB { + // @ts-ignore + interface BBConsumer { + // @ts-ignore + accept(x: number, y: number, z: number): void; + // @ts-ignore + get(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.AxisAlignedBB.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.AxisAlignedBB.d.ts new file mode 100644 index 00000000..e839d118 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.AxisAlignedBB.d.ts @@ -0,0 +1,75 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + interface AxisAlignedBB { + // @ts-ignore + setBounds(minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + addCoord(x: number, y: number, z: number): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + grow(x: number, y: number, z: number): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + expand(x: number, y: number, z: number): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + offset(x: number, y: number, z: number): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + shrink(x: number, y: number, z: number): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + contract(x: number, y: number, z: number): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + setBB(bb: cn.nukkit.math.AxisAlignedBB): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + getOffsetBoundingBox(x: number, y: number, z: number): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + calculateXOffset(bb: cn.nukkit.math.AxisAlignedBB, x: number): number; + // @ts-ignore + calculateYOffset(bb: cn.nukkit.math.AxisAlignedBB, y: number): number; + // @ts-ignore + calculateZOffset(bb: cn.nukkit.math.AxisAlignedBB, z: number): number; + // @ts-ignore + intersectsWith(bb: cn.nukkit.math.AxisAlignedBB): boolean; + // @ts-ignore + isVectorInside(vector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + getAverageEdgeLength(): number; + // @ts-ignore + isVectorInYZ(vector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + isVectorInXZ(vector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + isVectorInXY(vector: cn.nukkit.math.Vector3): boolean; + // @ts-ignore + calculateIntercept(pos1: cn.nukkit.math.Vector3, pos2: cn.nukkit.math.Vector3): cn.nukkit.level.MovingObjectPosition; + // @ts-ignore + setMinX(minX: number): void; + // @ts-ignore + setMinY(minY: number): void; + // @ts-ignore + setMinZ(minZ: number): void; + // @ts-ignore + setMaxX(maxX: number): void; + // @ts-ignore + setMaxY(maxY: number): void; + // @ts-ignore + setMaxZ(maxZ: number): void; + // @ts-ignore + getMinX(): number; + // @ts-ignore + getMinY(): number; + // @ts-ignore + getMinZ(): number; + // @ts-ignore + getMaxX(): number; + // @ts-ignore + getMaxY(): number; + // @ts-ignore + getMaxZ(): number; + // @ts-ignore + clone(): cn.nukkit.math.AxisAlignedBB; + // @ts-ignore + forEach(action: cn.nukkit.math.AxisAlignedBB.BBConsumer): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.Axis.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.Axis.d.ts new file mode 100644 index 00000000..ea626fd9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.Axis.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace math { + namespace BlockFace { + // @ts-ignore + class Axis extends java.lang.Enum { + // @ts-ignore + public static X: cn.nukkit.math.BlockFace.Axis; + // @ts-ignore + public static Y: cn.nukkit.math.BlockFace.Axis; + // @ts-ignore + public static Z: cn.nukkit.math.BlockFace.Axis; + // @ts-ignore + public static values(): cn.nukkit.math.BlockFace.Axis[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.math.BlockFace.Axis; + // @ts-ignore + public isVertical(): boolean; + // @ts-ignore + public isHorizontal(): boolean; + // @ts-ignore + public getPlane(): cn.nukkit.math.BlockFace.Plane; + // @ts-ignore + public getName(): string; + // @ts-ignore + public test(face: cn.nukkit.math.BlockFace): boolean; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.AxisDirection.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.AxisDirection.d.ts new file mode 100644 index 00000000..420200dc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.AxisDirection.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace math { + namespace BlockFace { + // @ts-ignore + class AxisDirection extends java.lang.Enum { + // @ts-ignore + public static POSITIVE: cn.nukkit.math.BlockFace.AxisDirection; + // @ts-ignore + public static NEGATIVE: cn.nukkit.math.BlockFace.AxisDirection; + // @ts-ignore + public static values(): cn.nukkit.math.BlockFace.AxisDirection[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.math.BlockFace.AxisDirection; + // @ts-ignore + public getOffset(): number; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.Plane.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.Plane.d.ts new file mode 100644 index 00000000..d43d245d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.Plane.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace math { + namespace BlockFace { + // @ts-ignore + class Plane extends java.lang.Enum { + // @ts-ignore + public static HORIZONTAL: cn.nukkit.math.BlockFace.Plane; + // @ts-ignore + public static VERTICAL: cn.nukkit.math.BlockFace.Plane; + // @ts-ignore + public static values(): cn.nukkit.math.BlockFace.Plane[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.math.BlockFace.Plane; + // @ts-ignore + public random(rand: cn.nukkit.math.NukkitRandom): cn.nukkit.math.BlockFace; + // @ts-ignore + public test(face: cn.nukkit.math.BlockFace): boolean; + // @ts-ignore + public iterator(): java.util.Iterator; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.d.ts new file mode 100644 index 00000000..7a3e3c8e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockFace.d.ts @@ -0,0 +1,114 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class BlockFace extends java.lang.Enum { + // @ts-ignore + public static DOWN: cn.nukkit.math.BlockFace; + // @ts-ignore + public static UP: cn.nukkit.math.BlockFace; + // @ts-ignore + public static NORTH: cn.nukkit.math.BlockFace; + // @ts-ignore + public static SOUTH: cn.nukkit.math.BlockFace; + // @ts-ignore + public static WEST: cn.nukkit.math.BlockFace; + // @ts-ignore + public static EAST: cn.nukkit.math.BlockFace; + // @ts-ignore + public static values(): cn.nukkit.math.BlockFace[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.math.BlockFace; + /** + * Get a BlockFace by it's index (0-5). The order is D-U-N-S-W-E + */ + // @ts-ignore + public static fromIndex(index: number): cn.nukkit.math.BlockFace; + /** + * Get a BlockFace by it's horizontal index (0-3). The order is S-W-N-E + */ + // @ts-ignore + public static fromHorizontalIndex(index: number): cn.nukkit.math.BlockFace; + /** + * Get the BlockFace corresponding to the given angle (0-360). An angle of 0 is SOUTH, an angle of 90 would be WEST + */ + // @ts-ignore + public static fromHorizontalAngle(angle: number): cn.nukkit.math.BlockFace; + // @ts-ignore + public static fromAxis(axisDirection: cn.nukkit.math.BlockFace.AxisDirection, axis: cn.nukkit.math.BlockFace.Axis): cn.nukkit.math.BlockFace; + /** + * Choose a random BlockFace using the given Random + */ + // @ts-ignore + public static random(rand: java.util.Random): cn.nukkit.math.BlockFace; + /** + * Get the index of this BlockFace (0-5). The order is D-U-N-S-W-E + */ + // @ts-ignore + public getIndex(): number; + /** + * Get the horizontal index of this BlockFace (0-3). The order is S-W-N-E + */ + // @ts-ignore + public getHorizontalIndex(): number; + /** + * Get the angle of this BlockFace (0-360) + */ + // @ts-ignore + public getHorizontalAngle(): number; + /** + * Get the name of this BlockFace (up, down, north, etc.) + */ + // @ts-ignore + public getName(): string; + /** + * Get the Axis of this BlockFace + */ + // @ts-ignore + public getAxis(): cn.nukkit.math.BlockFace.Axis; + /** + * Get the AxisDirection of this BlockFace + */ + // @ts-ignore + public getAxisDirection(): cn.nukkit.math.BlockFace.AxisDirection; + /** + * Get the unit vector of this BlockFace + */ + // @ts-ignore + public getUnitVector(): cn.nukkit.math.Vector3; + /** + * Returns an offset that addresses the block in front of this BlockFace + */ + // @ts-ignore + public getXOffset(): number; + /** + * Returns an offset that addresses the block in front of this BlockFace + */ + // @ts-ignore + public getYOffset(): number; + /** + * Returns an offset that addresses the block in front of this BlockFace + */ + // @ts-ignore + public getZOffset(): number; + /** + * Get the opposite BlockFace (e.g. DOWN ==> UP) + */ + // @ts-ignore + public getOpposite(): cn.nukkit.math.BlockFace; + /** + * Rotate this BlockFace around the Y axis clockwise (NORTH => EAST => SOUTH => WEST => NORTH) + */ + // @ts-ignore + public rotateY(): cn.nukkit.math.BlockFace; + /** + * Rotate this BlockFace around the Y axis counter-clockwise (NORTH => WEST => SOUTH => EAST => NORTH) + */ + // @ts-ignore + public rotateYCCW(): cn.nukkit.math.BlockFace; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockVector3.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockVector3.d.ts new file mode 100644 index 00000000..f52dcea8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.BlockVector3.d.ts @@ -0,0 +1,115 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class BlockVector3 extends java.lang.Object { + // @ts-ignore + constructor(x: number, y: number, z: number) + // @ts-ignore + constructor() + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public setComponents(x: number, y: number, z: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public getX(): number; + // @ts-ignore + public getY(): number; + // @ts-ignore + public getZ(): number; + // @ts-ignore + public add(x: number): cn.nukkit.math.Vector3; + // @ts-ignore + public add(x: number, y: number): cn.nukkit.math.Vector3; + // @ts-ignore + public add(x: number, y: number, z: number): cn.nukkit.math.Vector3; + // @ts-ignore + public add(x: cn.nukkit.math.Vector3): cn.nukkit.math.Vector3; + // @ts-ignore + public subtract(x: number): cn.nukkit.math.Vector3; + // @ts-ignore + public subtract(x: number, y: number): cn.nukkit.math.Vector3; + // @ts-ignore + public subtract(x: number, y: number, z: number): cn.nukkit.math.Vector3; + // @ts-ignore + public subtract(x: cn.nukkit.math.Vector3): cn.nukkit.math.Vector3; + // @ts-ignore + public add(x: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public add(x: number, y: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public add(x: number, y: number, z: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public add(x: cn.nukkit.math.BlockVector3): cn.nukkit.math.BlockVector3; + // @ts-ignore + public subtract(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public subtract(x: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public subtract(x: number, y: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public subtract(x: number, y: number, z: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public subtract(x: cn.nukkit.math.BlockVector3): cn.nukkit.math.BlockVector3; + // @ts-ignore + public multiply(number: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public divide(number: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public getSide(face: cn.nukkit.math.BlockFace): cn.nukkit.math.BlockVector3; + // @ts-ignore + public getSide(face: cn.nukkit.math.BlockFace, step: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public up(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public up(step: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public down(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public down(step: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public north(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public north(step: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public south(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public south(step: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public east(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public east(step: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public west(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public west(step: number): cn.nukkit.math.BlockVector3; + // @ts-ignore + public distance(pos: cn.nukkit.math.Vector3): number; + // @ts-ignore + public distance(pos: cn.nukkit.math.BlockVector3): number; + // @ts-ignore + public distanceSquared(pos: cn.nukkit.math.Vector3): number; + // @ts-ignore + public distanceSquared(pos: cn.nukkit.math.BlockVector3): number; + // @ts-ignore + public distanceSquared(x: number, y: number, z: number): number; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public asVector3(): cn.nukkit.math.Vector3; + // @ts-ignore + public asVector3f(): cn.nukkit.math.Vector3f; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.MathHelper.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.MathHelper.d.ts new file mode 100644 index 00000000..d4d48fb9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.MathHelper.d.ts @@ -0,0 +1,44 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class MathHelper extends java.lang.Object { + // @ts-ignore + public static sqrt(paramFloat: number): number; + // @ts-ignore + public static sin(paramFloat: number): number; + // @ts-ignore + public static cos(paramFloat: number): number; + // @ts-ignore + public static sin(paramFloat: number): number; + // @ts-ignore + public static cos(paramFloat: number): number; + // @ts-ignore + public static floor(d0: number): number; + // @ts-ignore + public static floor_double_long(d: number): number; + // @ts-ignore + public static floor_float_int(f: number): number; + // @ts-ignore + public static abs(number: number): number; + // @ts-ignore + public static log2(bits: number): number; + /** + * Returns a random number between min and max, inclusive. + */ + // @ts-ignore + public static getRandomNumberInRange(random: java.util.Random, min: number, max: number): number; + // @ts-ignore + public static max(first: number, second: number, third: number, fourth: number): number; + // @ts-ignore + public static ceil(floatNumber: number): number; + // @ts-ignore + public static clamp(check: number, min: number, max: number): number; + // @ts-ignore + public static denormalizeClamp(lowerBnd: number, upperBnd: number, slide: number): number; + // @ts-ignore + public static denormalizeClamp(lowerBnd: number, upperBnd: number, slide: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.NukkitMath.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.NukkitMath.d.ts new file mode 100644 index 00000000..e61bf39a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.NukkitMath.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class NukkitMath extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static floorDouble(n: number): number; + // @ts-ignore + public static ceilDouble(n: number): number; + // @ts-ignore + public static floorFloat(n: number): number; + // @ts-ignore + public static ceilFloat(n: number): number; + // @ts-ignore + public static randomRange(random: cn.nukkit.math.NukkitRandom): number; + // @ts-ignore + public static randomRange(random: cn.nukkit.math.NukkitRandom, start: number): number; + // @ts-ignore + public static randomRange(random: cn.nukkit.math.NukkitRandom, start: number, end: number): number; + // @ts-ignore + public static round(d: number): number; + // @ts-ignore + public static round(d: number, precision: number): number; + // @ts-ignore + public static clamp(value: number, min: number, max: number): number; + // @ts-ignore + public static clamp(value: number, min: number, max: number): number; + // @ts-ignore + public static getDirection(diffX: number, diffZ: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.NukkitRandom.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.NukkitRandom.d.ts new file mode 100644 index 00000000..55ba6f2b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.NukkitRandom.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class NukkitRandom extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(seeds: number) + // @ts-ignore + protected seed: number; + // @ts-ignore + public setSeed(seeds: number): void; + // @ts-ignore + public nextSignedInt(): number; + // @ts-ignore + public nextInt(): number; + // @ts-ignore + public nextDouble(): number; + // @ts-ignore + public nextFloat(): number; + // @ts-ignore + public nextSignedFloat(): number; + // @ts-ignore + public nextSignedDouble(): number; + // @ts-ignore + public nextBoolean(): boolean; + // @ts-ignore + public nextRange(): number; + // @ts-ignore + public nextRange(start: number): number; + // @ts-ignore + public nextRange(start: number, end: number): number; + // @ts-ignore + public nextBoundedInt(bound: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.SimpleAxisAlignedBB.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.SimpleAxisAlignedBB.d.ts new file mode 100644 index 00000000..1bafd43b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.SimpleAxisAlignedBB.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class SimpleAxisAlignedBB extends java.lang.Object implements cn.nukkit.math.AxisAlignedBB { + // @ts-ignore + constructor(pos1: cn.nukkit.math.Vector3, pos2: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number) + // @ts-ignore + public toString(): string; + // @ts-ignore + public getMinX(): number; + // @ts-ignore + public setMinX(minX: number): void; + // @ts-ignore + public getMinY(): number; + // @ts-ignore + public setMinY(minY: number): void; + // @ts-ignore + public getMinZ(): number; + // @ts-ignore + public setMinZ(minZ: number): void; + // @ts-ignore + public getMaxX(): number; + // @ts-ignore + public setMaxX(maxX: number): void; + // @ts-ignore + public getMaxY(): number; + // @ts-ignore + public setMaxY(maxY: number): void; + // @ts-ignore + public getMaxZ(): number; + // @ts-ignore + public setMaxZ(maxZ: number): void; + // @ts-ignore + public clone(): cn.nukkit.math.AxisAlignedBB; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector2.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector2.d.ts new file mode 100644 index 00000000..ee1dab62 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector2.d.ts @@ -0,0 +1,73 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class Vector2 extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(x: number) + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public getX(): number; + // @ts-ignore + public getY(): number; + // @ts-ignore + public getFloorX(): number; + // @ts-ignore + public getFloorY(): number; + // @ts-ignore + public add(x: number): cn.nukkit.math.Vector2; + // @ts-ignore + public add(x: number, y: number): cn.nukkit.math.Vector2; + // @ts-ignore + public add(x: cn.nukkit.math.Vector2): cn.nukkit.math.Vector2; + // @ts-ignore + public subtract(x: number): cn.nukkit.math.Vector2; + // @ts-ignore + public subtract(x: number, y: number): cn.nukkit.math.Vector2; + // @ts-ignore + public subtract(x: cn.nukkit.math.Vector2): cn.nukkit.math.Vector2; + // @ts-ignore + public ceil(): cn.nukkit.math.Vector2; + // @ts-ignore + public floor(): cn.nukkit.math.Vector2; + // @ts-ignore + public round(): cn.nukkit.math.Vector2; + // @ts-ignore + public abs(): cn.nukkit.math.Vector2; + // @ts-ignore + public multiply(number: number): cn.nukkit.math.Vector2; + // @ts-ignore + public divide(number: number): cn.nukkit.math.Vector2; + // @ts-ignore + public distance(x: number): number; + // @ts-ignore + public distance(x: number, y: number): number; + // @ts-ignore + public distance(vector: cn.nukkit.math.Vector2): number; + // @ts-ignore + public distanceSquared(x: number): number; + // @ts-ignore + public distanceSquared(x: number, y: number): number; + // @ts-ignore + public distanceSquared(vector: cn.nukkit.math.Vector2): number; + // @ts-ignore + public length(): number; + // @ts-ignore + public lengthSquared(): number; + // @ts-ignore + public normalize(): cn.nukkit.math.Vector2; + // @ts-ignore + public dot(v: cn.nukkit.math.Vector2): number; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector2f.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector2f.d.ts new file mode 100644 index 00000000..08971f25 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector2f.d.ts @@ -0,0 +1,73 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class Vector2f extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(x: number) + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public getX(): number; + // @ts-ignore + public getY(): number; + // @ts-ignore + public getFloorX(): number; + // @ts-ignore + public getFloorY(): number; + // @ts-ignore + public add(x: number): cn.nukkit.math.Vector2f; + // @ts-ignore + public add(x: number, y: number): cn.nukkit.math.Vector2f; + // @ts-ignore + public add(x: cn.nukkit.math.Vector2f): cn.nukkit.math.Vector2f; + // @ts-ignore + public subtract(x: number): cn.nukkit.math.Vector2f; + // @ts-ignore + public subtract(x: number, y: number): cn.nukkit.math.Vector2f; + // @ts-ignore + public subtract(x: cn.nukkit.math.Vector2f): cn.nukkit.math.Vector2f; + // @ts-ignore + public ceil(): cn.nukkit.math.Vector2f; + // @ts-ignore + public floor(): cn.nukkit.math.Vector2f; + // @ts-ignore + public round(): cn.nukkit.math.Vector2f; + // @ts-ignore + public abs(): cn.nukkit.math.Vector2f; + // @ts-ignore + public multiply(number: number): cn.nukkit.math.Vector2f; + // @ts-ignore + public divide(number: number): cn.nukkit.math.Vector2f; + // @ts-ignore + public distance(x: number): number; + // @ts-ignore + public distance(x: number, y: number): number; + // @ts-ignore + public distance(vector: cn.nukkit.math.Vector2f): number; + // @ts-ignore + public distanceSquared(x: number): number; + // @ts-ignore + public distanceSquared(x: number, y: number): number; + // @ts-ignore + public distanceSquared(vector: cn.nukkit.math.Vector2f): number; + // @ts-ignore + public length(): number; + // @ts-ignore + public lengthSquared(): number; + // @ts-ignore + public normalize(): cn.nukkit.math.Vector2f; + // @ts-ignore + public dot(v: cn.nukkit.math.Vector2f): number; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector3.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector3.d.ts new file mode 100644 index 00000000..53dd9123 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector3.d.ts @@ -0,0 +1,165 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class Vector3 extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(x: number) + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + constructor(x: number, y: number, z: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public getX(): number; + // @ts-ignore + public getY(): number; + // @ts-ignore + public getZ(): number; + // @ts-ignore + public getFloorX(): number; + // @ts-ignore + public getFloorY(): number; + // @ts-ignore + public getFloorZ(): number; + // @ts-ignore + public getChunkX(): number; + // @ts-ignore + public getChunkZ(): number; + // @ts-ignore + public getRight(): number; + // @ts-ignore + public getUp(): number; + // @ts-ignore + public getForward(): number; + // @ts-ignore + public getSouth(): number; + // @ts-ignore + public getWest(): number; + // @ts-ignore + public add(x: number): cn.nukkit.math.Vector3; + // @ts-ignore + public add(x: number, y: number): cn.nukkit.math.Vector3; + // @ts-ignore + public add(x: number, y: number, z: number): cn.nukkit.math.Vector3; + // @ts-ignore + public add(x: cn.nukkit.math.Vector3): cn.nukkit.math.Vector3; + // @ts-ignore + public subtract(): cn.nukkit.math.Vector3; + // @ts-ignore + public subtract(x: number): cn.nukkit.math.Vector3; + // @ts-ignore + public subtract(x: number, y: number): cn.nukkit.math.Vector3; + // @ts-ignore + public subtract(x: number, y: number, z: number): cn.nukkit.math.Vector3; + // @ts-ignore + public subtract(x: cn.nukkit.math.Vector3): cn.nukkit.math.Vector3; + // @ts-ignore + public multiply(number: number): cn.nukkit.math.Vector3; + // @ts-ignore + public divide(number: number): cn.nukkit.math.Vector3; + // @ts-ignore + public ceil(): cn.nukkit.math.Vector3; + // @ts-ignore + public floor(): cn.nukkit.math.Vector3; + // @ts-ignore + public round(): cn.nukkit.math.Vector3; + // @ts-ignore + public abs(): cn.nukkit.math.Vector3; + // @ts-ignore + public getSide(face: cn.nukkit.math.BlockFace): cn.nukkit.math.Vector3; + // @ts-ignore + public getSide(face: cn.nukkit.math.BlockFace, step: number): cn.nukkit.math.Vector3; + // @ts-ignore + public up(): cn.nukkit.math.Vector3; + // @ts-ignore + public up(step: number): cn.nukkit.math.Vector3; + // @ts-ignore + public down(): cn.nukkit.math.Vector3; + // @ts-ignore + public down(step: number): cn.nukkit.math.Vector3; + // @ts-ignore + public north(): cn.nukkit.math.Vector3; + // @ts-ignore + public north(step: number): cn.nukkit.math.Vector3; + // @ts-ignore + public south(): cn.nukkit.math.Vector3; + // @ts-ignore + public south(step: number): cn.nukkit.math.Vector3; + // @ts-ignore + public east(): cn.nukkit.math.Vector3; + // @ts-ignore + public east(step: number): cn.nukkit.math.Vector3; + // @ts-ignore + public west(): cn.nukkit.math.Vector3; + // @ts-ignore + public west(step: number): cn.nukkit.math.Vector3; + // @ts-ignore + public distance(pos: cn.nukkit.math.Vector3): number; + // @ts-ignore + public distanceSquared(pos: cn.nukkit.math.Vector3): number; + // @ts-ignore + public maxPlainDistance(): number; + // @ts-ignore + public maxPlainDistance(x: number): number; + // @ts-ignore + public maxPlainDistance(x: number, z: number): number; + // @ts-ignore + public maxPlainDistance(vector: cn.nukkit.math.Vector2): number; + // @ts-ignore + public maxPlainDistance(x: cn.nukkit.math.Vector3): number; + // @ts-ignore + public length(): number; + // @ts-ignore + public lengthSquared(): number; + // @ts-ignore + public normalize(): cn.nukkit.math.Vector3; + // @ts-ignore + public dot(v: cn.nukkit.math.Vector3): number; + // @ts-ignore + public cross(v: cn.nukkit.math.Vector3): cn.nukkit.math.Vector3; + /** + * Returns a new vector with x value equal to the second parameter, along the line between this vector and the + * passed in vector, or null if not possible. + */ + // @ts-ignore + public getIntermediateWithXValue(v: cn.nukkit.math.Vector3, x: number): cn.nukkit.math.Vector3; + /** + * Returns a new vector with y value equal to the second parameter, along the line between this vector and the + * passed in vector, or null if not possible. + */ + // @ts-ignore + public getIntermediateWithYValue(v: cn.nukkit.math.Vector3, y: number): cn.nukkit.math.Vector3; + /** + * Returns a new vector with z value equal to the second parameter, along the line between this vector and the + * passed in vector, or null if not possible. + */ + // @ts-ignore + public getIntermediateWithZValue(v: cn.nukkit.math.Vector3, z: number): cn.nukkit.math.Vector3; + // @ts-ignore + public setComponents(x: number, y: number, z: number): cn.nukkit.math.Vector3; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public rawHashCode(): number; + // @ts-ignore + public clone(): cn.nukkit.math.Vector3; + // @ts-ignore + public asVector3f(): cn.nukkit.math.Vector3f; + // @ts-ignore + public asBlockVector3(): cn.nukkit.math.BlockVector3; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector3f.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector3f.d.ts new file mode 100644 index 00000000..3055ed06 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.Vector3f.d.ts @@ -0,0 +1,137 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + class Vector3f extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(x: number) + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + constructor(x: number, y: number, z: number) + // @ts-ignore + public static SIDE_DOWN: number; + // @ts-ignore + public static SIDE_UP: number; + // @ts-ignore + public static SIDE_NORTH: number; + // @ts-ignore + public static SIDE_SOUTH: number; + // @ts-ignore + public static SIDE_WEST: number; + // @ts-ignore + public static SIDE_EAST: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public getX(): number; + // @ts-ignore + public getY(): number; + // @ts-ignore + public getZ(): number; + // @ts-ignore + public getFloorX(): number; + // @ts-ignore + public getFloorY(): number; + // @ts-ignore + public getFloorZ(): number; + // @ts-ignore + public getRight(): number; + // @ts-ignore + public getUp(): number; + // @ts-ignore + public getForward(): number; + // @ts-ignore + public getSouth(): number; + // @ts-ignore + public getWest(): number; + // @ts-ignore + public add(x: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public add(x: number, y: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public add(x: number, y: number, z: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public add(x: cn.nukkit.math.Vector3f): cn.nukkit.math.Vector3f; + // @ts-ignore + public subtract(): cn.nukkit.math.Vector3f; + // @ts-ignore + public subtract(x: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public subtract(x: number, y: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public subtract(x: number, y: number, z: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public subtract(x: cn.nukkit.math.Vector3f): cn.nukkit.math.Vector3f; + // @ts-ignore + public multiply(number: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public divide(number: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public ceil(): cn.nukkit.math.Vector3f; + // @ts-ignore + public floor(): cn.nukkit.math.Vector3f; + // @ts-ignore + public round(): cn.nukkit.math.Vector3f; + // @ts-ignore + public abs(): cn.nukkit.math.Vector3f; + // @ts-ignore + public getSide(side: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public getSide(side: number, step: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public static getOppositeSide(side: number): number; + // @ts-ignore + public distance(pos: cn.nukkit.math.Vector3f): number; + // @ts-ignore + public distanceSquared(pos: cn.nukkit.math.Vector3f): number; + // @ts-ignore + public maxPlainDistance(): number; + // @ts-ignore + public maxPlainDistance(x: number): number; + // @ts-ignore + public maxPlainDistance(x: number, z: number): number; + // @ts-ignore + public maxPlainDistance(vector: cn.nukkit.math.Vector2f): number; + // @ts-ignore + public maxPlainDistance(x: cn.nukkit.math.Vector3f): number; + // @ts-ignore + public length(): number; + // @ts-ignore + public lengthSquared(): number; + // @ts-ignore + public normalize(): cn.nukkit.math.Vector3f; + // @ts-ignore + public dot(v: cn.nukkit.math.Vector3f): number; + // @ts-ignore + public cross(v: cn.nukkit.math.Vector3f): cn.nukkit.math.Vector3f; + // @ts-ignore + public getIntermediateWithXValue(v: cn.nukkit.math.Vector3f, x: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public getIntermediateWithYValue(v: cn.nukkit.math.Vector3f, y: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public getIntermediateWithZValue(v: cn.nukkit.math.Vector3f, z: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public setComponents(x: number, y: number, z: number): cn.nukkit.math.Vector3f; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public rawHashCode(): number; + // @ts-ignore + public clone(): cn.nukkit.math.Vector3f; + // @ts-ignore + public asVector3(): cn.nukkit.math.Vector3; + // @ts-ignore + public asBlockVector3(): cn.nukkit.math.BlockVector3; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.math.VectorMath.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.math.VectorMath.d.ts new file mode 100644 index 00000000..0c91ffec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.math.VectorMath.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace math { + // @ts-ignore + abstract class VectorMath extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static getDirection2D(azimuth: number): cn.nukkit.math.Vector2; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.metadata.BlockMetadataStore.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.BlockMetadataStore.d.ts new file mode 100644 index 00000000..9cd228c8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.BlockMetadataStore.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace metadata { + // @ts-ignore + class BlockMetadataStore extends cn.nukkit.metadata.MetadataStore { + // @ts-ignore + constructor(owningLevel: cn.nukkit.level.Level) + // @ts-ignore + protected disambiguate(block: cn.nukkit.metadata.Metadatable, metadataKey: string): string; + // @ts-ignore + public getMetadata(block: java.lang.Object, metadataKey: string): java.util.List; + // @ts-ignore + public hasMetadata(block: java.lang.Object, metadataKey: string): boolean; + // @ts-ignore + public removeMetadata(block: java.lang.Object, metadataKey: string, owningPlugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public setMetadata(block: java.lang.Object, metadataKey: string, newMetadataValue: cn.nukkit.metadata.MetadataValue): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.metadata.EntityMetadataStore.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.EntityMetadataStore.d.ts new file mode 100644 index 00000000..c4c440d3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.EntityMetadataStore.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace metadata { + // @ts-ignore + class EntityMetadataStore extends cn.nukkit.metadata.MetadataStore { + // @ts-ignore + constructor() + // @ts-ignore + protected disambiguate(entity: cn.nukkit.metadata.Metadatable, metadataKey: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.metadata.LevelMetadataStore.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.LevelMetadataStore.d.ts new file mode 100644 index 00000000..f003e30d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.LevelMetadataStore.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace metadata { + // @ts-ignore + class LevelMetadataStore extends cn.nukkit.metadata.MetadataStore { + // @ts-ignore + constructor() + // @ts-ignore + protected disambiguate(level: cn.nukkit.metadata.Metadatable, metadataKey: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.metadata.MetadataStore.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.MetadataStore.d.ts new file mode 100644 index 00000000..5614863e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.MetadataStore.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace metadata { + // @ts-ignore + abstract class MetadataStore extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public setMetadata(subject: java.lang.Object, metadataKey: string, newMetadataValue: cn.nukkit.metadata.MetadataValue): void; + // @ts-ignore + public getMetadata(subject: java.lang.Object, metadataKey: string): java.util.List; + // @ts-ignore + public hasMetadata(subject: java.lang.Object, metadataKey: string): boolean; + // @ts-ignore + public removeMetadata(subject: java.lang.Object, metadataKey: string, owningPlugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public invalidateAll(owningPlugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + protected abstract disambiguate(subject: cn.nukkit.metadata.Metadatable, metadataKey: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.metadata.MetadataValue.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.MetadataValue.d.ts new file mode 100644 index 00000000..913e66a1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.MetadataValue.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace metadata { + // @ts-ignore + abstract class MetadataValue extends java.lang.Object { + // @ts-ignore + constructor(owningPlugin: cn.nukkit.plugin.Plugin) + // @ts-ignore + protected owningPlugin: java.lang.ref.WeakReference; + // @ts-ignore + public getOwningPlugin(): cn.nukkit.plugin.Plugin; + // @ts-ignore + public abstract value(): java.lang.Object; + // @ts-ignore + public abstract invalidate(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.metadata.Metadatable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.Metadatable.d.ts new file mode 100644 index 00000000..983e9381 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.Metadatable.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace metadata { + // @ts-ignore + interface Metadatable { + // @ts-ignore + setMetadata(metadataKey: string, newMetadataValue: cn.nukkit.metadata.MetadataValue): void; + // @ts-ignore + getMetadata(metadataKey: string): java.util.List; + // @ts-ignore + hasMetadata(metadataKey: string): boolean; + // @ts-ignore + removeMetadata(metadataKey: string, owningPlugin: cn.nukkit.plugin.Plugin): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.metadata.PlayerMetadataStore.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.PlayerMetadataStore.d.ts new file mode 100644 index 00000000..e869ed97 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.metadata.PlayerMetadataStore.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace metadata { + // @ts-ignore + class PlayerMetadataStore extends cn.nukkit.metadata.MetadataStore { + // @ts-ignore + constructor() + // @ts-ignore + protected disambiguate(player: cn.nukkit.metadata.Metadatable, metadataKey: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.NBTIO.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.NBTIO.d.ts new file mode 100644 index 00000000..65bc175b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.NBTIO.d.ts @@ -0,0 +1,103 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + // @ts-ignore + class NBTIO extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static putItemHelper(item: cn.nukkit.item.Item): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static putItemHelper(item: cn.nukkit.item.Item, slot: java.lang.Integer): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static getItemHelper(tag: cn.nukkit.nbt.tag.CompoundTag): cn.nukkit.item.Item; + // @ts-ignore + public static read(file: java.io.File): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static read(file: java.io.File, endianness: java.nio.ByteOrder): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static read(inputStream: java.io.InputStream): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static read(inputStream: java.io.InputStream, endianness: java.nio.ByteOrder): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static read(inputStream: java.io.InputStream, endianness: java.nio.ByteOrder, network: boolean): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static readTag(inputStream: java.io.InputStream, endianness: java.nio.ByteOrder, network: boolean): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public static read(data: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static read(data: number, endianness: java.nio.ByteOrder): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static read(data: number, endianness: java.nio.ByteOrder, network: boolean): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static readCompressed(inputStream: java.io.InputStream): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static readCompressed(inputStream: java.io.InputStream, endianness: java.nio.ByteOrder): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static readCompressed(data: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static readCompressed(data: number, endianness: java.nio.ByteOrder): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static readNetworkCompressed(inputStream: java.io.InputStream): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static readNetworkCompressed(inputStream: java.io.InputStream, endianness: java.nio.ByteOrder): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static readNetworkCompressed(data: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static readNetworkCompressed(data: number, endianness: java.nio.ByteOrder): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public static write(tag: cn.nukkit.nbt.tag.CompoundTag): number[]; + // @ts-ignore + public static write(tag: cn.nukkit.nbt.tag.CompoundTag, endianness: java.nio.ByteOrder): number[]; + // @ts-ignore + public static write(tag: cn.nukkit.nbt.tag.CompoundTag, endianness: java.nio.ByteOrder, network: boolean): number[]; + // @ts-ignore + public static write(tag: cn.nukkit.nbt.tag.Tag, endianness: java.nio.ByteOrder, network: boolean): number[]; + // @ts-ignore + public static write(tags: java.util.Collection): number[]; + // @ts-ignore + public static write(tags: java.util.Collection, endianness: java.nio.ByteOrder): number[]; + // @ts-ignore + public static write(tags: java.util.Collection, endianness: java.nio.ByteOrder, network: boolean): number[]; + // @ts-ignore + public static write(tag: cn.nukkit.nbt.tag.CompoundTag, file: java.io.File): void; + // @ts-ignore + public static write(tag: cn.nukkit.nbt.tag.CompoundTag, file: java.io.File, endianness: java.nio.ByteOrder): void; + // @ts-ignore + public static write(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream): void; + // @ts-ignore + public static write(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream, endianness: java.nio.ByteOrder): void; + // @ts-ignore + public static write(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream, endianness: java.nio.ByteOrder, network: boolean): void; + // @ts-ignore + public static writeNetwork(tag: cn.nukkit.nbt.tag.Tag): number[]; + // @ts-ignore + public static writeGZIPCompressed(tag: cn.nukkit.nbt.tag.CompoundTag): number[]; + // @ts-ignore + public static writeGZIPCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, endianness: java.nio.ByteOrder): number[]; + // @ts-ignore + public static writeGZIPCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream): void; + // @ts-ignore + public static writeGZIPCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream, endianness: java.nio.ByteOrder): void; + // @ts-ignore + public static writeNetworkGZIPCompressed(tag: cn.nukkit.nbt.tag.CompoundTag): number[]; + // @ts-ignore + public static writeNetworkGZIPCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, endianness: java.nio.ByteOrder): number[]; + // @ts-ignore + public static writeNetworkGZIPCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream): void; + // @ts-ignore + public static writeNetworkGZIPCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream, endianness: java.nio.ByteOrder): void; + // @ts-ignore + public static writeZLIBCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream): void; + // @ts-ignore + public static writeZLIBCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream, endianness: java.nio.ByteOrder): void; + // @ts-ignore + public static writeZLIBCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream, level: number): void; + // @ts-ignore + public static writeZLIBCompressed(tag: cn.nukkit.nbt.tag.CompoundTag, outputStream: java.io.OutputStream, level: number, endianness: java.nio.ByteOrder): void; + // @ts-ignore + public static safeWrite(tag: cn.nukkit.nbt.tag.CompoundTag, file: java.io.File): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.BufferedRandomAccessFile.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.BufferedRandomAccessFile.d.ts new file mode 100644 index 00000000..84bca59d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.BufferedRandomAccessFile.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace stream { + // @ts-ignore + class BufferedRandomAccessFile extends java.io.RandomAccessFile { + /** + * Open a new BufferedRandomAccessFile on file + * in mode mode, which should be "r" for reading only, or + * "rw" for reading and writing. + */ + // @ts-ignore + constructor(file: java.io.File, mode: string) + // @ts-ignore + constructor(file: java.io.File, mode: string, size: number) + /** + * Open a new BufferedRandomAccessFile on the file named + * name in mode mode, which should be "r" for + * reading only, or "rw" for reading and writing. + */ + // @ts-ignore + constructor(name: string, mode: string) + // @ts-ignore + constructor(name: string, mode: string, size: number) + // @ts-ignore + public static BuffSz_: number; + // @ts-ignore + public close(): void; + /** + * Flush any bytes in the file's buffer that have not yet been written to + * disk. If the file was created read-only, this method is a no-op. + */ + // @ts-ignore + public flush(): void; + // @ts-ignore + public seek(pos: number): void; + // @ts-ignore + public seekUnsafe(pos: number): void; + // @ts-ignore + public getFilePointer(): number; + // @ts-ignore + public length(): number; + // @ts-ignore + public read(): number; + // @ts-ignore + public read1(): number; + // @ts-ignore + public read(b: number): number; + // @ts-ignore + public read(b: number, off: number, len: number): number; + // @ts-ignore + public readCurrent(): number; + // @ts-ignore + public writeCurrent(b: number): void; + // @ts-ignore + public write(b: number): void; + // @ts-ignore + public write(b: number): void; + // @ts-ignore + public write(b: number, off: number, len: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.FastByteArrayOutputStream.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.FastByteArrayOutputStream.d.ts new file mode 100644 index 00000000..acbee6c8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.FastByteArrayOutputStream.d.ts @@ -0,0 +1,57 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace stream { + // @ts-ignore + class FastByteArrayOutputStream extends java.io.OutputStream { + /** + * Creates a new array output stream with an initial capacity of {@link #DEFAULT_INITIAL_CAPACITY} bytes. + */ + // @ts-ignore + constructor() + /** + * Creates a new array output stream with a given initial capacity. + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Creates a new array output stream wrapping a given byte array. + */ + // @ts-ignore + constructor(a: number) + // @ts-ignore + public static ONEOVERPHI: number; + // @ts-ignore + public static DEFAULT_INITIAL_CAPACITY: number; + // @ts-ignore + public array: number[]; + // @ts-ignore + public length: number; + /** + * Marks this array output stream as empty. + */ + // @ts-ignore + public reset(): cn.nukkit.nbt.stream.FastByteArrayOutputStream; + // @ts-ignore + public write(b: number): void; + // @ts-ignore + public static ensureOffsetLength(arrayLength: number, offset: number, length: number): void; + // @ts-ignore + public static grow(array: number, length: number): number[]; + // @ts-ignore + public static grow(array: number, length: number, preserve: number): number[]; + // @ts-ignore + public write(b: number, off: number, len: number): void; + // @ts-ignore + public position(newPosition: number): void; + // @ts-ignore + public position(): number; + // @ts-ignore + public length(): number; + // @ts-ignore + public toByteArray(): number[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.NBTInputStream.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.NBTInputStream.d.ts new file mode 100644 index 00000000..930cadc7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.NBTInputStream.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace stream { + // @ts-ignore + class NBTInputStream extends java.lang.Object { + // @ts-ignore + constructor(stream: java.io.InputStream) + // @ts-ignore + constructor(stream: java.io.InputStream, endianness: java.nio.ByteOrder) + // @ts-ignore + constructor(stream: java.io.InputStream, endianness: java.nio.ByteOrder, network: boolean) + // @ts-ignore + public getEndianness(): java.nio.ByteOrder; + // @ts-ignore + public isNetwork(): boolean; + // @ts-ignore + public readFully(b: number): void; + // @ts-ignore + public readFully(b: number, off: number, len: number): void; + // @ts-ignore + public skipBytes(n: number): number; + // @ts-ignore + public readBoolean(): boolean; + // @ts-ignore + public readByte(): number; + // @ts-ignore + public readUnsignedByte(): number; + // @ts-ignore + public readShort(): number; + // @ts-ignore + public readUnsignedShort(): number; + // @ts-ignore + public readChar(): string; + // @ts-ignore + public readInt(): number; + // @ts-ignore + public readLong(): number; + // @ts-ignore + public readFloat(): number; + // @ts-ignore + public readDouble(): number; + // @ts-ignore + public readLine(): string; + // @ts-ignore + public readUTF(): string; + // @ts-ignore + public available(): number; + // @ts-ignore + public close(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.NBTOutputStream.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.NBTOutputStream.d.ts new file mode 100644 index 00000000..2b77321d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.NBTOutputStream.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace stream { + // @ts-ignore + class NBTOutputStream extends java.lang.Object { + // @ts-ignore + constructor(stream: java.io.OutputStream) + // @ts-ignore + constructor(stream: java.io.OutputStream, endianness: java.nio.ByteOrder) + // @ts-ignore + constructor(stream: java.io.OutputStream, endianness: java.nio.ByteOrder, network: boolean) + // @ts-ignore + public getEndianness(): java.nio.ByteOrder; + // @ts-ignore + public isNetwork(): boolean; + // @ts-ignore + public write(bytes: number): void; + // @ts-ignore + public write(b: number, off: number, len: number): void; + // @ts-ignore + public write(b: number): void; + // @ts-ignore + public writeBoolean(v: boolean): void; + // @ts-ignore + public writeByte(v: number): void; + // @ts-ignore + public writeShort(v: number): void; + // @ts-ignore + public writeChar(v: number): void; + // @ts-ignore + public writeInt(v: number): void; + // @ts-ignore + public writeLong(v: number): void; + // @ts-ignore + public writeFloat(v: number): void; + // @ts-ignore + public writeDouble(v: number): void; + // @ts-ignore + public writeBytes(s: string): void; + // @ts-ignore + public writeChars(s: string): void; + // @ts-ignore + public writeUTF(s: string): void; + // @ts-ignore + public close(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPBlock.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPBlock.d.ts new file mode 100644 index 00000000..5d16237d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPBlock.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace stream { + // @ts-ignore + class PGZIPBlock extends java.lang.Object { + // @ts-ignore + constructor(parent: cn.nukkit.nbt.stream.PGZIPOutputStream) + // @ts-ignore + protected STATE: java.lang.ThreadLocal; + // @ts-ignore + public static SIZE: number; + // @ts-ignore + protected in: number[]; + // @ts-ignore + protected in_length: number; + // @ts-ignore + public call(): number[]; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPOutputStream.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPOutputStream.d.ts new file mode 100644 index 00000000..edb4b419 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPOutputStream.d.ts @@ -0,0 +1,46 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace stream { + // @ts-ignore + class PGZIPOutputStream extends java.io.FilterOutputStream { + // @ts-ignore + constructor(out: java.io.OutputStream, executor: java.util.concurrent.ExecutorService, nthreads: number) + /** + * Creates a PGZIPOutputStream + * using {@link PGZIPOutputStream#getSharedThreadPool()}. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, nthreads: number) + /** + * Creates a PGZIPOutputStream + * using {@link PGZIPOutputStream#getSharedThreadPool()} + * and {@link Runtime#availableProcessors()}. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + // @ts-ignore + public static getSharedThreadPool(): java.util.concurrent.ExecutorService; + // @ts-ignore + protected newDeflater(): java.util.zip.Deflater; + // @ts-ignore + public setStrategy(strategy: number): void; + // @ts-ignore + public setLevel(level: number): void; + // @ts-ignore + protected static newDeflaterOutputStream(out: java.io.OutputStream, deflater: java.util.zip.Deflater): java.util.zip.DeflaterOutputStream; + // @ts-ignore + public write(b: number): void; + // @ts-ignore + public write(b: number): void; + // @ts-ignore + public write(b: number, off: number, len: number): void; + // @ts-ignore + public flush(): void; + // @ts-ignore + public close(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPState.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPState.d.ts new file mode 100644 index 00000000..85cb5979 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPState.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace stream { + // @ts-ignore + class PGZIPState extends java.lang.Object { + // @ts-ignore + constructor(parent: cn.nukkit.nbt.stream.PGZIPOutputStream) + // @ts-ignore + protected str: java.util.zip.DeflaterOutputStream; + // @ts-ignore + protected buf: java.io.ByteArrayOutputStream; + // @ts-ignore + protected def: java.util.zip.Deflater; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPThreadLocal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPThreadLocal.d.ts new file mode 100644 index 00000000..035acc34 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.stream.PGZIPThreadLocal.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace stream { + // @ts-ignore + class PGZIPThreadLocal extends java.lang.ThreadLocal { + // @ts-ignore + constructor(parent: cn.nukkit.nbt.stream.PGZIPOutputStream) + // @ts-ignore + protected initialValue(): cn.nukkit.nbt.stream.PGZIPState; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ByteArrayTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ByteArrayTag.d.ts new file mode 100644 index 00000000..9f90faeb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ByteArrayTag.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class ByteArrayTag extends cn.nukkit.nbt.tag.Tag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, data: number) + // @ts-ignore + public data: number[]; + // @ts-ignore + public getData(): number[]; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public parseValue(): number[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ByteTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ByteTag.d.ts new file mode 100644 index 00000000..bcee197b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ByteTag.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class ByteTag extends cn.nukkit.nbt.tag.NumberTag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Integer; + // @ts-ignore + public setData(data: java.lang.Integer): void; + // @ts-ignore + public getId(): number; + // @ts-ignore + public parseValue(): java.lang.Integer; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.CompoundTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.CompoundTag.d.ts new file mode 100644 index 00000000..332c90b4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.CompoundTag.d.ts @@ -0,0 +1,104 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class CompoundTag extends cn.nukkit.nbt.tag.Tag { + // @ts-ignore + constructor() + // @ts-ignore + constructor(name: string) + // @ts-ignore + public write(dos: cn.nukkit.nbt.stream.NBTOutputStream): void; + // @ts-ignore + public load(dis: cn.nukkit.nbt.stream.NBTInputStream): void; + // @ts-ignore + public getAllTags(): java.util.Collection; + // @ts-ignore + public getId(): number; + // @ts-ignore + public put(name: string, tag: cn.nukkit.nbt.tag.Tag): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putByte(name: string, value: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putShort(name: string, value: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putInt(name: string, value: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putLong(name: string, value: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putFloat(name: string, value: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putDouble(name: string, value: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putString(name: string, value: string): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putByteArray(name: string, value: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putIntArray(name: string, value: number): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putList(listTag: cn.nukkit.nbt.tag.ListTag): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putCompound(name: string, value: cn.nukkit.nbt.tag.CompoundTag): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public putBoolean(string: string, val: boolean): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public get(name: string): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public contains(name: string): boolean; + // @ts-ignore + public remove(name: string): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public removeAndGet(name: string): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public getByte(name: string): number; + // @ts-ignore + public getShort(name: string): number; + // @ts-ignore + public getInt(name: string): number; + // @ts-ignore + public getLong(name: string): number; + // @ts-ignore + public getFloat(name: string): number; + // @ts-ignore + public getDouble(name: string): number; + // @ts-ignore + public getString(name: string): string; + // @ts-ignore + public getByteArray(name: string): number[]; + // @ts-ignore + public getIntArray(name: string): number[]; + // @ts-ignore + public getCompound(name: string): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public getList(name: string): cn.nukkit.nbt.tag.ListTag; + // @ts-ignore + public getList(name: string, type: java.lang.Class): cn.nukkit.nbt.tag.ListTag; + // @ts-ignore + public getTags(): java.util.Map; + // @ts-ignore + public parseValue(): java.util.Map; + // @ts-ignore + public getBoolean(name: string): boolean; + // @ts-ignore + public toString(): string; + // @ts-ignore + public print(prefix: string, out: java.io.PrintStream): void; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Check existence of NBT tag + */ + // @ts-ignore + public exist(name: string): boolean; + // @ts-ignore + public clone(): cn.nukkit.nbt.tag.CompoundTag; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.DoubleTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.DoubleTag.d.ts new file mode 100644 index 00000000..94d9f892 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.DoubleTag.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class DoubleTag extends cn.nukkit.nbt.tag.NumberTag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Double; + // @ts-ignore + public setData(data: java.lang.Double): void; + // @ts-ignore + public parseValue(): java.lang.Double; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.EndTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.EndTag.d.ts new file mode 100644 index 00000000..b7f82630 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.EndTag.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class EndTag extends cn.nukkit.nbt.tag.Tag { + // @ts-ignore + constructor() + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public parseValue(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.FloatTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.FloatTag.d.ts new file mode 100644 index 00000000..d0309cb8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.FloatTag.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class FloatTag extends cn.nukkit.nbt.tag.NumberTag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Float; + // @ts-ignore + public setData(data: java.lang.Float): void; + // @ts-ignore + public parseValue(): java.lang.Float; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.IntArrayTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.IntArrayTag.d.ts new file mode 100644 index 00000000..3aae9ba8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.IntArrayTag.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class IntArrayTag extends cn.nukkit.nbt.tag.Tag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, data: number) + // @ts-ignore + public data: number[]; + // @ts-ignore + public getData(): number[]; + // @ts-ignore + public parseValue(): number[]; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.IntTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.IntTag.d.ts new file mode 100644 index 00000000..f1521036 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.IntTag.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class IntTag extends cn.nukkit.nbt.tag.NumberTag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Integer; + // @ts-ignore + public setData(data: java.lang.Integer): void; + // @ts-ignore + public parseValue(): java.lang.Integer; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ListTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ListTag.d.ts new file mode 100644 index 00000000..025de5f8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ListTag.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class ListTag extends cn.nukkit.nbt.tag.Tag { + // @ts-ignore + constructor() + // @ts-ignore + constructor(name: string) + // @ts-ignore + public type: number; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public print(prefix: string, out: java.io.PrintStream): void; + // @ts-ignore + public add(tag: cn.nukkit.nbt.tag.Tag): cn.nukkit.nbt.tag.ListTag; + // @ts-ignore + public add(index: number, tag: cn.nukkit.nbt.tag.Tag): cn.nukkit.nbt.tag.ListTag; + // @ts-ignore + public parseValue(): java.util.List; + // @ts-ignore + public get(index: number): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public getAll(): java.util.List; + // @ts-ignore + public setAll(tags: java.util.List): void; + // @ts-ignore + public remove(tag: cn.nukkit.nbt.tag.Tag): void; + // @ts-ignore + public remove(index: number): void; + // @ts-ignore + public removeAll(tags: java.util.Collection): void; + // @ts-ignore + public size(): number; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.LongTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.LongTag.d.ts new file mode 100644 index 00000000..e9df80d8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.LongTag.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class LongTag extends cn.nukkit.nbt.tag.NumberTag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Long; + // @ts-ignore + public setData(data: java.lang.Long): void; + // @ts-ignore + public parseValue(): java.lang.Long; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.NumberTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.NumberTag.d.ts new file mode 100644 index 00000000..4a789945 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.NumberTag.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + abstract class NumberTag extends cn.nukkit.nbt.tag.Tag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public abstract getData(): java.lang.Number; + // @ts-ignore + public abstract setData(data: java.lang.Number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ShortTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ShortTag.d.ts new file mode 100644 index 00000000..4eca102c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.ShortTag.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class ShortTag extends cn.nukkit.nbt.tag.NumberTag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, data: number) + // @ts-ignore + public data: number; + // @ts-ignore + public getData(): java.lang.Integer; + // @ts-ignore + public setData(data: java.lang.Integer): void; + // @ts-ignore + public parseValue(): java.lang.Integer; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.StringTag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.StringTag.d.ts new file mode 100644 index 00000000..a6aa21a0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.StringTag.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + class StringTag extends cn.nukkit.nbt.tag.Tag { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, data: string) + // @ts-ignore + public data: string; + // @ts-ignore + public parseValue(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.Tag.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.Tag.d.ts new file mode 100644 index 00000000..84e966df --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.nbt.tag.Tag.d.ts @@ -0,0 +1,65 @@ +declare namespace cn { + namespace nukkit { + namespace nbt { + namespace tag { + // @ts-ignore + abstract class Tag extends java.lang.Object { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public static TAG_End: number; + // @ts-ignore + public static TAG_Byte: number; + // @ts-ignore + public static TAG_Short: number; + // @ts-ignore + public static TAG_Int: number; + // @ts-ignore + public static TAG_Long: number; + // @ts-ignore + public static TAG_Float: number; + // @ts-ignore + public static TAG_Double: number; + // @ts-ignore + public static TAG_Byte_Array: number; + // @ts-ignore + public static TAG_String: number; + // @ts-ignore + public static TAG_List: number; + // @ts-ignore + public static TAG_Compound: number; + // @ts-ignore + public static TAG_Int_Array: number; + // @ts-ignore + public abstract toString(): string; + // @ts-ignore + public abstract getId(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public print(out: java.io.PrintStream): void; + // @ts-ignore + public print(prefix: string, out: java.io.PrintStream): void; + // @ts-ignore + public setName(name: string): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public getName(): string; + // @ts-ignore + public static readNamedTag(dis: cn.nukkit.nbt.stream.NBTInputStream): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public static writeNamedTag(tag: cn.nukkit.nbt.tag.Tag, dos: cn.nukkit.nbt.stream.NBTOutputStream): void; + // @ts-ignore + public static writeNamedTag(tag: cn.nukkit.nbt.tag.Tag, name: string, dos: cn.nukkit.nbt.stream.NBTOutputStream): void; + // @ts-ignore + public static newTag(type: number, name: string): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public static getTagName(type: number): string; + // @ts-ignore + public abstract copy(): cn.nukkit.nbt.tag.Tag; + // @ts-ignore + public abstract parseValue(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.AdvancedSourceInterface.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.AdvancedSourceInterface.d.ts new file mode 100644 index 00000000..85ca1114 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.AdvancedSourceInterface.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + // @ts-ignore + interface AdvancedSourceInterface extends cn.nukkit.network.SourceInterface { + // @ts-ignore + blockAddress(address: string): void; + // @ts-ignore + blockAddress(address: string, timeout: number): void; + // @ts-ignore + unblockAddress(address: string): void; + // @ts-ignore + setNetwork(network: cn.nukkit.network.Network): void; + // @ts-ignore + sendRawPacket(address: string, port: number, payload: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.CacheEncapsulatedPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.CacheEncapsulatedPacket.d.ts new file mode 100644 index 00000000..dcac9176 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.CacheEncapsulatedPacket.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace network { + // @ts-ignore + class CacheEncapsulatedPacket extends cn.nukkit.raknet.protocol.EncapsulatedPacket { + // @ts-ignore + constructor() + // @ts-ignore + public internalData: number[]; + // @ts-ignore + public toBinary(): number[]; + // @ts-ignore + public toBinary(internal: boolean): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.CompressBatchedPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.CompressBatchedPacket.d.ts new file mode 100644 index 00000000..0330ff29 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.CompressBatchedPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + // @ts-ignore + class CompressBatchedPacket extends cn.nukkit.scheduler.AsyncTask { + // @ts-ignore + constructor(data: number, targets: java.util.List) + // @ts-ignore + constructor(data: number, targets: java.util.List, level: number) + // @ts-ignore + constructor(data: number, targets: java.util.List, level: number, channel: number) + // @ts-ignore + public level: number; + // @ts-ignore + public data: number[]; + // @ts-ignore + public finalData: number[]; + // @ts-ignore + public channel: number; + // @ts-ignore + public targets: java.util.List; + // @ts-ignore + public onRun(): void; + // @ts-ignore + public onCompletion(server: cn.nukkit.Server): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.CompressBatchedTask.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.CompressBatchedTask.d.ts new file mode 100644 index 00000000..08777167 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.CompressBatchedTask.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + // @ts-ignore + class CompressBatchedTask extends cn.nukkit.scheduler.AsyncTask { + // @ts-ignore + constructor(data: number, targets: java.util.List) + // @ts-ignore + constructor(data: number, targets: java.util.List, level: number) + // @ts-ignore + constructor(data: number, targets: java.util.List, level: number, channel: number) + // @ts-ignore + public level: number; + // @ts-ignore + public data: byte[][]; + // @ts-ignore + public finalData: number[]; + // @ts-ignore + public channel: number; + // @ts-ignore + public targets: java.util.List; + // @ts-ignore + public onRun(): void; + // @ts-ignore + public onCompletion(server: cn.nukkit.Server): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.Network.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.Network.d.ts new file mode 100644 index 00000000..ec4d8ad1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.Network.d.ts @@ -0,0 +1,77 @@ +declare namespace cn { + namespace nukkit { + namespace network { + // @ts-ignore + class Network extends java.lang.Object { + // @ts-ignore + constructor(server: cn.nukkit.Server) + // @ts-ignore + public static CHANNEL_NONE: number; + // @ts-ignore + public static CHANNEL_PRIORITY: number; + // @ts-ignore + public static CHANNEL_WORLD_CHUNKS: number; + // @ts-ignore + public static CHANNEL_MOVEMENT: number; + // @ts-ignore + public static CHANNEL_BLOCKS: number; + // @ts-ignore + public static CHANNEL_WORLD_EVENTS: number; + // @ts-ignore + public static CHANNEL_ENTITY_SPAWNING: number; + // @ts-ignore + public static CHANNEL_TEXT: number; + // @ts-ignore + public static CHANNEL_END: number; + // @ts-ignore + public addStatistics(upload: number, download: number): void; + // @ts-ignore + public getUpload(): number; + // @ts-ignore + public getDownload(): number; + // @ts-ignore + public resetStatistics(): void; + // @ts-ignore + public getInterfaces(): java.util.Set; + // @ts-ignore + public processInterfaces(): void; + // @ts-ignore + public registerInterface(interfaz: cn.nukkit.network.SourceInterface): void; + // @ts-ignore + public unregisterInterface(interfaz: cn.nukkit.network.SourceInterface): void; + // @ts-ignore + public setName(name: string): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getSubName(): string; + // @ts-ignore + public setSubName(subName: string): void; + // @ts-ignore + public updateName(): void; + // @ts-ignore + public registerPacket(id: number, clazz: java.lang.Class): void; + // @ts-ignore + public getServer(): cn.nukkit.Server; + // @ts-ignore + public processBatch(packet: cn.nukkit.network.protocol.BatchPacket, player: cn.nukkit.Player): void; + /** + * Process packets obtained from batch packets + * Required to perform additional analyses and filter unnecessary packets + */ + // @ts-ignore + public processPackets(player: cn.nukkit.Player, packets: java.util.List): void; + // @ts-ignore + public getPacket(id: number): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public sendPacket(address: string, port: number, payload: number): void; + // @ts-ignore + public blockAddress(address: string): void; + // @ts-ignore + public blockAddress(address: string, timeout: number): void; + // @ts-ignore + public unblockAddress(address: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.RakNetInterface.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.RakNetInterface.d.ts new file mode 100644 index 00000000..10608c18 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.RakNetInterface.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace network { + // @ts-ignore + class RakNetInterface extends java.lang.Object implements cn.nukkit.raknet.server.ServerInstance, cn.nukkit.network.AdvancedSourceInterface { + // @ts-ignore + constructor(server: cn.nukkit.Server) + // @ts-ignore + public setNetwork(network: cn.nukkit.network.Network): void; + // @ts-ignore + public process(): boolean; + // @ts-ignore + public closeSession(identifier: string, reason: string): void; + // @ts-ignore + public getNetworkLatency(player: cn.nukkit.Player): number; + // @ts-ignore + public close(player: cn.nukkit.Player): void; + // @ts-ignore + public close(player: cn.nukkit.Player, reason: string): void; + // @ts-ignore + public shutdown(): void; + // @ts-ignore + public emergencyShutdown(): void; + // @ts-ignore + public openSession(identifier: string, address: string, port: number, clientID: number): void; + // @ts-ignore + public handleEncapsulated(identifier: string, packet: cn.nukkit.raknet.protocol.EncapsulatedPacket, flags: number): void; + // @ts-ignore + public blockAddress(address: string): void; + // @ts-ignore + public blockAddress(address: string, timeout: number): void; + // @ts-ignore + public unblockAddress(address: string): void; + // @ts-ignore + public handleRaw(address: string, port: number, payload: number): void; + // @ts-ignore + public sendRawPacket(address: string, port: number, payload: number): void; + // @ts-ignore + public notifyACK(identifier: string, identifierACK: number): void; + // @ts-ignore + public setName(name: string): void; + // @ts-ignore + public setPortCheck(value: boolean): void; + // @ts-ignore + public handleOption(name: string, value: string): void; + // @ts-ignore + public putPacket(player: cn.nukkit.Player, packet: cn.nukkit.network.protocol.DataPacket): java.lang.Integer; + // @ts-ignore + public putPacket(player: cn.nukkit.Player, packet: cn.nukkit.network.protocol.DataPacket, needACK: boolean): java.lang.Integer; + // @ts-ignore + public putPacket(player: cn.nukkit.Player, packet: cn.nukkit.network.protocol.DataPacket, needACK: boolean, immediate: boolean): java.lang.Integer; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.SourceInterface.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.SourceInterface.d.ts new file mode 100644 index 00000000..ea523554 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.SourceInterface.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + // @ts-ignore + interface SourceInterface { + // @ts-ignore + putPacket(player: cn.nukkit.Player, packet: cn.nukkit.network.protocol.DataPacket): java.lang.Integer; + // @ts-ignore + putPacket(player: cn.nukkit.Player, packet: cn.nukkit.network.protocol.DataPacket, needACK: boolean): java.lang.Integer; + // @ts-ignore + putPacket(player: cn.nukkit.Player, packet: cn.nukkit.network.protocol.DataPacket, needACK: boolean, immediate: boolean): java.lang.Integer; + // @ts-ignore + getNetworkLatency(player: cn.nukkit.Player): number; + // @ts-ignore + close(player: cn.nukkit.Player): void; + // @ts-ignore + close(player: cn.nukkit.Player, reason: string): void; + // @ts-ignore + setName(name: string): void; + // @ts-ignore + process(): boolean; + // @ts-ignore + shutdown(): void; + // @ts-ignore + emergencyShutdown(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddBehaviorTreePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddBehaviorTreePacket.d.ts new file mode 100644 index 00000000..4dc3fd0b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddBehaviorTreePacket.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class AddBehaviorTreePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public unknown: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddEntityPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddEntityPacket.d.ts new file mode 100644 index 00000000..4af15b61 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddEntityPacket.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class AddEntityPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static LEGACY_IDS: any; + // @ts-ignore + public entityUniqueId: number; + // @ts-ignore + public entityRuntimeId: number; + // @ts-ignore + public type: number; + // @ts-ignore + public id: string; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public speedX: number; + // @ts-ignore + public speedY: number; + // @ts-ignore + public speedZ: number; + // @ts-ignore + public yaw: number; + // @ts-ignore + public pitch: number; + // @ts-ignore + public headYaw: number; + // @ts-ignore + public metadata: cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public attributes: cn.nukkit.entity.Attribute[]; + // @ts-ignore + public links: cn.nukkit.network.protocol.types.EntityLink[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddItemEntityPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddItemEntityPacket.d.ts new file mode 100644 index 00000000..77b2cc86 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddItemEntityPacket.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class AddItemEntityPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public entityUniqueId: number; + // @ts-ignore + public entityRuntimeId: number; + // @ts-ignore + public item: cn.nukkit.item.Item; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public speedX: number; + // @ts-ignore + public speedY: number; + // @ts-ignore + public speedZ: number; + // @ts-ignore + public metadata: cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public isFromFishing: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddPaintingPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddPaintingPacket.d.ts new file mode 100644 index 00000000..277c059c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddPaintingPacket.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class AddPaintingPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public entityUniqueId: number; + // @ts-ignore + public entityRuntimeId: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public direction: number; + // @ts-ignore + public title: string; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddPlayerPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddPlayerPacket.d.ts new file mode 100644 index 00000000..d2f3037d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AddPlayerPacket.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class AddPlayerPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public uuid: java.util.UUID; + // @ts-ignore + public username: string; + // @ts-ignore + public entityUniqueId: number; + // @ts-ignore + public entityRuntimeId: number; + // @ts-ignore + public platformChatId: string; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public speedX: number; + // @ts-ignore + public speedY: number; + // @ts-ignore + public speedZ: number; + // @ts-ignore + public pitch: number; + // @ts-ignore + public yaw: number; + // @ts-ignore + public item: cn.nukkit.item.Item; + // @ts-ignore + public metadata: cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public deviceId: string; + // @ts-ignore + public buildPlatform: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AdventureSettingsPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AdventureSettingsPacket.d.ts new file mode 100644 index 00000000..09ce191c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AdventureSettingsPacket.d.ts @@ -0,0 +1,79 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class AdventureSettingsPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static PERMISSION_NORMAL: number; + // @ts-ignore + public static PERMISSION_OPERATOR: number; + // @ts-ignore + public static PERMISSION_HOST: number; + // @ts-ignore + public static PERMISSION_AUTOMATION: number; + // @ts-ignore + public static PERMISSION_ADMIN: number; + // @ts-ignore + public static BITFLAG_SECOND_SET: number; + // @ts-ignore + public static WORLD_IMMUTABLE: number; + // @ts-ignore + public static NO_PVP: number; + // @ts-ignore + public static AUTO_JUMP: number; + // @ts-ignore + public static ALLOW_FLIGHT: number; + // @ts-ignore + public static NO_CLIP: number; + // @ts-ignore + public static WORLD_BUILDER: number; + // @ts-ignore + public static FLYING: number; + // @ts-ignore + public static MUTED: number; + // @ts-ignore + public static BUILD_AND_MINE: number; + // @ts-ignore + public static DOORS_AND_SWITCHES: number; + // @ts-ignore + public static OPEN_CONTAINERS: number; + // @ts-ignore + public static ATTACK_PLAYERS: number; + // @ts-ignore + public static ATTACK_MOBS: number; + // @ts-ignore + public static OPERATOR: number; + // @ts-ignore + public static TELEPORT: number; + // @ts-ignore + public flags: number; + // @ts-ignore + public commandPermission: number; + // @ts-ignore + public flags2: number; + // @ts-ignore + public playerPermission: number; + // @ts-ignore + public customFlags: number; + // @ts-ignore + public entityUniqueId: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public getFlag(flag: number): boolean; + // @ts-ignore + public setFlag(flag: number, value: boolean): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AnimatePacket.Action.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AnimatePacket.Action.d.ts new file mode 100644 index 00000000..eb0a327b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AnimatePacket.Action.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace AnimatePacket { + // @ts-ignore + class Action extends java.lang.Enum { + // @ts-ignore + public static NO_ACTION: cn.nukkit.network.protocol.AnimatePacket.Action; + // @ts-ignore + public static SWING_ARM: cn.nukkit.network.protocol.AnimatePacket.Action; + // @ts-ignore + public static WAKE_UP: cn.nukkit.network.protocol.AnimatePacket.Action; + // @ts-ignore + public static CRITICAL_HIT: cn.nukkit.network.protocol.AnimatePacket.Action; + // @ts-ignore + public static MAGIC_CRITICAL_HIT: cn.nukkit.network.protocol.AnimatePacket.Action; + // @ts-ignore + public static ROW_RIGHT: cn.nukkit.network.protocol.AnimatePacket.Action; + // @ts-ignore + public static ROW_LEFT: cn.nukkit.network.protocol.AnimatePacket.Action; + // @ts-ignore + public static values(): cn.nukkit.network.protocol.AnimatePacket.Action[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.network.protocol.AnimatePacket.Action; + // @ts-ignore + public getId(): number; + // @ts-ignore + public static fromId(id: number): cn.nukkit.network.protocol.AnimatePacket.Action; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AnimatePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AnimatePacket.d.ts new file mode 100644 index 00000000..4bb1b3bb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AnimatePacket.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class AnimatePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public action: cn.nukkit.network.protocol.AnimatePacket.Action; + // @ts-ignore + public rowingTime: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AvailableCommandsPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AvailableCommandsPacket.d.ts new file mode 100644 index 00000000..f1695e76 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AvailableCommandsPacket.d.ts @@ -0,0 +1,61 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class AvailableCommandsPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static ARG_FLAG_VALID: number; + // @ts-ignore + public static ARG_FLAG_ENUM: number; + // @ts-ignore + public static ARG_FLAG_POSTFIX: number; + // @ts-ignore + public static ARG_FLAG_SOFT_ENUM: number; + // @ts-ignore + public static ARG_TYPE_INT: number; + // @ts-ignore + public static ARG_TYPE_FLOAT: number; + // @ts-ignore + public static ARG_TYPE_VALUE: number; + // @ts-ignore + public static ARG_TYPE_WILDCARD_INT: number; + // @ts-ignore + public static ARG_TYPE_OPERATOR: number; + // @ts-ignore + public static ARG_TYPE_TARGET: number; + // @ts-ignore + public static ARG_TYPE_WILDCARD_TARGET: number; + // @ts-ignore + public static ARG_TYPE_FILE_PATH: number; + // @ts-ignore + public static ARG_TYPE_STRING: number; + // @ts-ignore + public static ARG_TYPE_POSITION: number; + // @ts-ignore + public static ARG_TYPE_MESSAGE: number; + // @ts-ignore + public static ARG_TYPE_RAWTEXT: number; + // @ts-ignore + public static ARG_TYPE_JSON: number; + // @ts-ignore + public static ARG_TYPE_COMMAND: number; + // @ts-ignore + public commands: java.util.Map; + // @ts-ignore + public softEnums: java.util.Map; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AvailableEntityIdentifiersPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AvailableEntityIdentifiersPacket.d.ts new file mode 100644 index 00000000..ec85c17b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.AvailableEntityIdentifiersPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class AvailableEntityIdentifiersPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public tag: number[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BatchPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BatchPacket.d.ts new file mode 100644 index 00000000..cc2693a5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BatchPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class BatchPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public payload: number[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public trim(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BiomeDefinitionListPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BiomeDefinitionListPacket.d.ts new file mode 100644 index 00000000..387b60fc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BiomeDefinitionListPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class BiomeDefinitionListPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public tag: number[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockEntityDataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockEntityDataPacket.d.ts new file mode 100644 index 00000000..f4038675 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockEntityDataPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class BlockEntityDataPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public namedTag: number[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockEventPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockEventPacket.d.ts new file mode 100644 index 00000000..2892401c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockEventPacket.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class BlockEventPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public case1: number; + // @ts-ignore + public case2: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockPickRequestPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockPickRequestPacket.d.ts new file mode 100644 index 00000000..c2cbd256 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BlockPickRequestPacket.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class BlockPickRequestPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public addUserData: boolean; + // @ts-ignore + public selectedSlot: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BookEditPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BookEditPacket.d.ts new file mode 100644 index 00000000..6a0073c9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BookEditPacket.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class BookEditPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BossEventPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BossEventPacket.d.ts new file mode 100644 index 00000000..2a2d23d4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.BossEventPacket.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class BossEventPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static TYPE_SHOW: number; + // @ts-ignore + public static TYPE_REGISTER_PLAYER: number; + // @ts-ignore + public static TYPE_UPDATE: number; + // @ts-ignore + public static TYPE_HIDE: number; + // @ts-ignore + public static TYPE_UNREGISTER_PLAYER: number; + // @ts-ignore + public static TYPE_HEALTH_PERCENT: number; + // @ts-ignore + public static TYPE_TITLE: number; + // @ts-ignore + public static TYPE_UNKNOWN_6: number; + // @ts-ignore + public static TYPE_TEXTURE: number; + // @ts-ignore + public bossEid: number; + // @ts-ignore + public type: number; + // @ts-ignore + public playerEid: number; + // @ts-ignore + public healthPercent: number; + // @ts-ignore + public title: string; + // @ts-ignore + public unknown: number; + // @ts-ignore + public color: number; + // @ts-ignore + public overlay: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CameraPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CameraPacket.d.ts new file mode 100644 index 00000000..57581ce8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CameraPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class CameraPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public cameraUniqueId: number; + // @ts-ignore + public playerUniqueId: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ChangeDimensionPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ChangeDimensionPacket.d.ts new file mode 100644 index 00000000..4ccfce45 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ChangeDimensionPacket.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ChangeDimensionPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public dimension: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public respawn: boolean; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ChunkRadiusUpdatedPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ChunkRadiusUpdatedPacket.d.ts new file mode 100644 index 00000000..1261fa36 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ChunkRadiusUpdatedPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ChunkRadiusUpdatedPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public radius: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientCacheStatusPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientCacheStatusPacket.d.ts new file mode 100644 index 00000000..09711124 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientCacheStatusPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ClientCacheStatusPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public supported: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientToServerHandshakePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientToServerHandshakePacket.d.ts new file mode 100644 index 00000000..88167b32 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientToServerHandshakePacket.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ClientToServerHandshakePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientboundMapItemDataPacket.MapDecorator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientboundMapItemDataPacket.MapDecorator.d.ts new file mode 100644 index 00000000..a6659ba1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientboundMapItemDataPacket.MapDecorator.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace ClientboundMapItemDataPacket { + // @ts-ignore + class MapDecorator extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public rotation: number; + // @ts-ignore + public icon: number; + // @ts-ignore + public offsetX: number; + // @ts-ignore + public offsetZ: number; + // @ts-ignore + public label: string; + // @ts-ignore + public color: java.awt.Color; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientboundMapItemDataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientboundMapItemDataPacket.d.ts new file mode 100644 index 00000000..99628da9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ClientboundMapItemDataPacket.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ClientboundMapItemDataPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public eids: number[]; + // @ts-ignore + public mapId: number; + // @ts-ignore + public update: number; + // @ts-ignore + public scale: number; + // @ts-ignore + public isLocked: boolean; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + // @ts-ignore + public offsetX: number; + // @ts-ignore + public offsetZ: number; + // @ts-ignore + public dimensionId: number; + // @ts-ignore + public decorators: cn.nukkit.network.protocol.ClientboundMapItemDataPacket.MapDecorator[]; + // @ts-ignore + public colors: number[]; + // @ts-ignore + public image: java.awt.image.BufferedImage; + // @ts-ignore + public static TEXTURE_UPDATE: number; + // @ts-ignore + public static DECORATIONS_UPDATE: number; + // @ts-ignore + public static ENTITIES_UPDATE: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CommandBlockUpdatePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CommandBlockUpdatePacket.d.ts new file mode 100644 index 00000000..8872c0fe --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CommandBlockUpdatePacket.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class CommandBlockUpdatePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public isBlock: boolean; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public commandBlockMode: number; + // @ts-ignore + public isRedstoneMode: boolean; + // @ts-ignore + public isConditional: boolean; + // @ts-ignore + public minecartEid: number; + // @ts-ignore + public command: string; + // @ts-ignore + public lastOutput: string; + // @ts-ignore + public name: string; + // @ts-ignore + public shouldTrackOutput: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CommandRequestPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CommandRequestPacket.d.ts new file mode 100644 index 00000000..dd572d29 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CommandRequestPacket.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class CommandRequestPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static TYPE_PLAYER: number; + // @ts-ignore + public static TYPE_COMMAND_BLOCK: number; + // @ts-ignore + public static TYPE_MINECART_COMMAND_BLOCK: number; + // @ts-ignore + public static TYPE_DEV_CONSOLE: number; + // @ts-ignore + public static TYPE_AUTOMATION_PLAYER: number; + // @ts-ignore + public static TYPE_CLIENT_AUTOMATION: number; + // @ts-ignore + public static TYPE_DEDICATED_SERVER: number; + // @ts-ignore + public static TYPE_ENTITY: number; + // @ts-ignore + public static TYPE_VIRTUAL: number; + // @ts-ignore + public static TYPE_GAME_ARGUMENT: number; + // @ts-ignore + public static TYPE_INTERNAL: number; + // @ts-ignore + public command: string; + // @ts-ignore + public data: cn.nukkit.network.protocol.types.CommandOriginData; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CompletedUsingItemPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CompletedUsingItemPacket.d.ts new file mode 100644 index 00000000..a00e0e3d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CompletedUsingItemPacket.d.ts @@ -0,0 +1,57 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class CompletedUsingItemPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static ACTION_UNKNOWN: number; + // @ts-ignore + public static ACTION_EQUIP_ARMOR: number; + // @ts-ignore + public static ACTION_EAT: number; + // @ts-ignore + public static ACTION_ATTACK: number; + // @ts-ignore + public static ACTION_CONSUME: number; + // @ts-ignore + public static ACTION_THROW: number; + // @ts-ignore + public static ACTION_SHOOT: number; + // @ts-ignore + public static ACTION_PLACE: number; + // @ts-ignore + public static ACTION_FILL_BOTTLE: number; + // @ts-ignore + public static ACTION_FILL_BUCKET: number; + // @ts-ignore + public static ACTION_POUR_BUCKET: number; + // @ts-ignore + public static ACTION_USE_TOOL: number; + // @ts-ignore + public static ACTION_INTERACT: number; + // @ts-ignore + public static ACTION_RETRIEVE: number; + // @ts-ignore + public static ACTION_DYED: number; + // @ts-ignore + public static ACTION_TRADED: number; + // @ts-ignore + public itemId: number; + // @ts-ignore + public action: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerClosePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerClosePacket.d.ts new file mode 100644 index 00000000..d55eecbd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerClosePacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ContainerClosePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public windowId: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerOpenPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerOpenPacket.d.ts new file mode 100644 index 00000000..1f8ce2df --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerOpenPacket.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ContainerOpenPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public windowId: number; + // @ts-ignore + public type: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public entityId: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerSetDataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerSetDataPacket.d.ts new file mode 100644 index 00000000..5d2db6b9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ContainerSetDataPacket.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ContainerSetDataPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static PROPERTY_FURNACE_TICK_COUNT: number; + // @ts-ignore + public static PROPERTY_FURNACE_LIT_TIME: number; + // @ts-ignore + public static PROPERTY_FURNACE_LIT_DURATION: number; + // @ts-ignore + public static PROPERTY_FURNACE_FUEL_AUX: number; + // @ts-ignore + public static PROPERTY_BREWING_STAND_BREW_TIME: number; + // @ts-ignore + public static PROPERTY_BREWING_STAND_FUEL_AMOUNT: number; + // @ts-ignore + public static PROPERTY_BREWING_STAND_FUEL_TOTAL: number; + // @ts-ignore + public windowId: number; + // @ts-ignore + public property: number; + // @ts-ignore + public value: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CraftingDataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CraftingDataPacket.d.ts new file mode 100644 index 00000000..3a2b4c42 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CraftingDataPacket.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class CraftingDataPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static CRAFTING_TAG_CRAFTING_TABLE: string; + // @ts-ignore + public static CRAFTING_TAG_CARTOGRAPHY_TABLE: string; + // @ts-ignore + public static CRAFTING_TAG_STONECUTTER: string; + // @ts-ignore + public static CRAFTING_TAG_FURNACE: string; + // @ts-ignore + public static CRAFTING_TAG_CAMPFIRE: string; + // @ts-ignore + public static CRAFTING_TAG_BLAST_FURNACE: string; + // @ts-ignore + public static CRAFTING_TAG_SMOKER: string; + // @ts-ignore + public cleanRecipes: boolean; + // @ts-ignore + public addShapelessRecipe(recipe: cn.nukkit.inventory.ShapelessRecipe): void; + // @ts-ignore + public addShapedRecipe(recipe: cn.nukkit.inventory.ShapedRecipe): void; + // @ts-ignore + public addFurnaceRecipe(recipe: cn.nukkit.inventory.FurnaceRecipe): void; + // @ts-ignore + public addBrewingRecipe(recipe: cn.nukkit.inventory.BrewingRecipe): void; + // @ts-ignore + public addContainerRecipe(recipe: cn.nukkit.inventory.ContainerRecipe): void; + // @ts-ignore + public clean(): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CraftingEventPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CraftingEventPacket.d.ts new file mode 100644 index 00000000..ee06f300 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.CraftingEventPacket.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class CraftingEventPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static TYPE_SHAPELESS: number; + // @ts-ignore + public static TYPE_SHAPED: number; + // @ts-ignore + public static TYPE_FURNACE: number; + // @ts-ignore + public static TYPE_FURNACE_DATA: number; + // @ts-ignore + public static TYPE_MULTI: number; + // @ts-ignore + public static TYPE_SHULKER_BOX: number; + // @ts-ignore + public windowId: number; + // @ts-ignore + public type: number; + // @ts-ignore + public id: java.util.UUID; + // @ts-ignore + public input: cn.nukkit.item.Item[]; + // @ts-ignore + public output: cn.nukkit.item.Item[]; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.DataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.DataPacket.d.ts new file mode 100644 index 00000000..42d3a3e8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.DataPacket.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + abstract class DataPacket extends cn.nukkit.utils.BinaryStream { + // @ts-ignore + constructor() + // @ts-ignore + public isEncoded: boolean; + // @ts-ignore + public encapsulatedPacket: cn.nukkit.raknet.protocol.EncapsulatedPacket; + // @ts-ignore + public reliability: number; + // @ts-ignore + public orderIndex: java.lang.Integer; + // @ts-ignore + public orderChannel: java.lang.Integer; + // @ts-ignore + public abstract pid(): number; + // @ts-ignore + public abstract decode(): void; + // @ts-ignore + public abstract encode(): void; + // @ts-ignore + public reset(): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public setChannel(channel: number): void; + // @ts-ignore + public getChannel(): number; + // @ts-ignore + public clean(): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public clone(): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public compress(): cn.nukkit.network.protocol.BatchPacket; + // @ts-ignore + public compress(level: number): cn.nukkit.network.protocol.BatchPacket; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.DisconnectPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.DisconnectPacket.d.ts new file mode 100644 index 00000000..f0d72698 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.DisconnectPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class DisconnectPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public hideDisconnectionScreen: boolean; + // @ts-ignore + public message: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityEventPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityEventPacket.d.ts new file mode 100644 index 00000000..90fefbd3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityEventPacket.d.ts @@ -0,0 +1,109 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class EntityEventPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static HURT_ANIMATION: number; + // @ts-ignore + public static DEATH_ANIMATION: number; + // @ts-ignore + public static ARM_SWING: number; + // @ts-ignore + public static TAME_FAIL: number; + // @ts-ignore + public static TAME_SUCCESS: number; + // @ts-ignore + public static SHAKE_WET: number; + // @ts-ignore + public static USE_ITEM: number; + // @ts-ignore + public static EAT_GRASS_ANIMATION: number; + // @ts-ignore + public static FISH_HOOK_BUBBLE: number; + // @ts-ignore + public static FISH_HOOK_POSITION: number; + // @ts-ignore + public static FISH_HOOK_HOOK: number; + // @ts-ignore + public static FISH_HOOK_TEASE: number; + // @ts-ignore + public static SQUID_INK_CLOUD: number; + // @ts-ignore + public static ZOMBIE_VILLAGER_CURE: number; + // @ts-ignore + public static AMBIENT_SOUND: number; + // @ts-ignore + public static RESPAWN: number; + // @ts-ignore + public static IRON_GOLEM_OFFER_FLOWER: number; + // @ts-ignore + public static IRON_GOLEM_WITHDRAW_FLOWER: number; + // @ts-ignore + public static LOVE_PARTICLES: number; + // @ts-ignore + public static WITCH_SPELL_PARTICLES: number; + // @ts-ignore + public static FIREWORK_EXPLOSION: number; + // @ts-ignore + public static SILVERFISH_SPAWN_ANIMATION: number; + // @ts-ignore + public static WITCH_DRINK_POTION: number; + // @ts-ignore + public static WITCH_THROW_POTION: number; + // @ts-ignore + public static MINECART_TNT_PRIME_FUSE: number; + // @ts-ignore + public static ENCHANT: number; + // @ts-ignore + public static ELDER_GUARDIAN_CURSE: number; + // @ts-ignore + public static AGENT_ARM_SWING: number; + // @ts-ignore + public static ENDER_DRAGON_DEATH: number; + // @ts-ignore + public static DUST_PARTICLES: number; + // @ts-ignore + public static ARROW_SHAKE: number; + // @ts-ignore + public static EATING_ITEM: number; + // @ts-ignore + public static BABY_ANIMAL_FEED: number; + // @ts-ignore + public static DEATH_SMOKE_CLOUD: number; + // @ts-ignore + public static COMPLETE_TRADE: number; + // @ts-ignore + public static REMOVE_LEASH: number; + // @ts-ignore + public static CONSUME_TOTEM: number; + // @ts-ignore + public static PLAYER_CHECK_TREASURE_HUNTER_ACHIEVEMENT: number; + // @ts-ignore + public static ENTITY_SPAWN: number; + // @ts-ignore + public static DRAGON_PUKE: number; + // @ts-ignore + public static MERGE_ITEMS: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public event: number; + // @ts-ignore + public data: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityFallPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityFallPacket.d.ts new file mode 100644 index 00000000..43f63963 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityFallPacket.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class EntityFallPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public fallDistance: number; + // @ts-ignore + public unknown: boolean; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityPickRequestPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityPickRequestPacket.d.ts new file mode 100644 index 00000000..3242bb6b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EntityPickRequestPacket.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class EntityPickRequestPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EventPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EventPacket.d.ts new file mode 100644 index 00000000..e75effe2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.EventPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class EventPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public eid: number; + // @ts-ignore + public unknown1: number; + // @ts-ignore + public unknown2: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.GUIDataPickItemPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.GUIDataPickItemPacket.d.ts new file mode 100644 index 00000000..e3d6fe01 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.GUIDataPickItemPacket.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class GUIDataPickItemPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public hotbarSlot: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.GameRulesChangedPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.GameRulesChangedPacket.d.ts new file mode 100644 index 00000000..f3d84102 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.GameRulesChangedPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class GameRulesChangedPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public gameRules: cn.nukkit.level.GameRules; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.HurtArmorPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.HurtArmorPacket.d.ts new file mode 100644 index 00000000..b747b229 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.HurtArmorPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class HurtArmorPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public health: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InitiateWebSocketConnectionPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InitiateWebSocketConnectionPacket.d.ts new file mode 100644 index 00000000..5fc71080 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InitiateWebSocketConnectionPacket.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class InitiateWebSocketConnectionPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InteractPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InteractPacket.d.ts new file mode 100644 index 00000000..137cc08a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InteractPacket.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class InteractPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static ACTION_VEHICLE_EXIT: number; + // @ts-ignore + public static ACTION_MOUSEOVER: number; + // @ts-ignore + public static ACTION_OPEN_INVENTORY: number; + // @ts-ignore + public action: number; + // @ts-ignore + public target: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventoryContentPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventoryContentPacket.d.ts new file mode 100644 index 00000000..18f71ed0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventoryContentPacket.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class InventoryContentPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static SPECIAL_INVENTORY: number; + // @ts-ignore + public static SPECIAL_OFFHAND: number; + // @ts-ignore + public static SPECIAL_ARMOR: number; + // @ts-ignore + public static SPECIAL_CREATIVE: number; + // @ts-ignore + public static SPECIAL_HOTBAR: number; + // @ts-ignore + public static SPECIAL_FIXED_INVENTORY: number; + // @ts-ignore + public inventoryId: number; + // @ts-ignore + public slots: cn.nukkit.item.Item[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public clean(): cn.nukkit.network.protocol.DataPacket; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public clone(): cn.nukkit.network.protocol.InventoryContentPacket; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventorySlotPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventorySlotPacket.d.ts new file mode 100644 index 00000000..2a739f21 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventorySlotPacket.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class InventorySlotPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public inventoryId: number; + // @ts-ignore + public slot: number; + // @ts-ignore + public item: cn.nukkit.item.Item; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventoryTransactionPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventoryTransactionPacket.d.ts new file mode 100644 index 00000000..d5fc4e41 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.InventoryTransactionPacket.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class InventoryTransactionPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static TYPE_NORMAL: number; + // @ts-ignore + public static TYPE_MISMATCH: number; + // @ts-ignore + public static TYPE_USE_ITEM: number; + // @ts-ignore + public static TYPE_USE_ITEM_ON_ENTITY: number; + // @ts-ignore + public static TYPE_RELEASE_ITEM: number; + // @ts-ignore + public static USE_ITEM_ACTION_CLICK_BLOCK: number; + // @ts-ignore + public static USE_ITEM_ACTION_CLICK_AIR: number; + // @ts-ignore + public static USE_ITEM_ACTION_BREAK_BLOCK: number; + // @ts-ignore + public static RELEASE_ITEM_ACTION_RELEASE: number; + // @ts-ignore + public static RELEASE_ITEM_ACTION_CONSUME: number; + // @ts-ignore + public static USE_ITEM_ON_ENTITY_ACTION_INTERACT: number; + // @ts-ignore + public static USE_ITEM_ON_ENTITY_ACTION_ATTACK: number; + // @ts-ignore + public static ACTION_MAGIC_SLOT_DROP_ITEM: number; + // @ts-ignore + public static ACTION_MAGIC_SLOT_PICKUP_ITEM: number; + // @ts-ignore + public static ACTION_MAGIC_SLOT_CREATIVE_DELETE_ITEM: number; + // @ts-ignore + public static ACTION_MAGIC_SLOT_CREATIVE_CREATE_ITEM: number; + // @ts-ignore + public transactionType: number; + // @ts-ignore + public actions: cn.nukkit.network.protocol.types.NetworkInventoryAction[]; + // @ts-ignore + public transactionData: cn.nukkit.inventory.transaction.data.TransactionData; + // @ts-ignore + public isCraftingPart: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ItemFrameDropItemPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ItemFrameDropItemPacket.d.ts new file mode 100644 index 00000000..20918eb7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ItemFrameDropItemPacket.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ItemFrameDropItemPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LecternUpdatePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LecternUpdatePacket.d.ts new file mode 100644 index 00000000..fc6c6d1b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LecternUpdatePacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class LecternUpdatePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public page: number; + // @ts-ignore + public totalPages: number; + // @ts-ignore + public blockPosition: cn.nukkit.math.BlockVector3; + // @ts-ignore + public dropBook: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelChunkPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelChunkPacket.d.ts new file mode 100644 index 00000000..8d744480 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelChunkPacket.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class LevelChunkPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public chunkX: number; + // @ts-ignore + public chunkZ: number; + // @ts-ignore + public subChunkCount: number; + // @ts-ignore + public cacheEnabled: boolean; + // @ts-ignore + public blobIds: number[]; + // @ts-ignore + public data: number[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelEventGenericPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelEventGenericPacket.d.ts new file mode 100644 index 00000000..2af115ef --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelEventGenericPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class LevelEventGenericPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eventId: number; + // @ts-ignore + public tag: cn.nukkit.nbt.tag.CompoundTag; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelEventPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelEventPacket.d.ts new file mode 100644 index 00000000..8f747245 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelEventPacket.d.ts @@ -0,0 +1,161 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class LevelEventPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static EVENT_SOUND_CLICK: number; + // @ts-ignore + public static EVENT_SOUND_CLICK_FAIL: number; + // @ts-ignore + public static EVENT_SOUND_SHOOT: number; + // @ts-ignore + public static EVENT_SOUND_DOOR: number; + // @ts-ignore + public static EVENT_SOUND_FIZZ: number; + // @ts-ignore + public static EVENT_SOUND_TNT: number; + // @ts-ignore + public static EVENT_SOUND_GHAST: number; + // @ts-ignore + public static EVENT_SOUND_BLAZE_SHOOT: number; + // @ts-ignore + public static EVENT_SOUND_GHAST_SHOOT: number; + // @ts-ignore + public static EVENT_SOUND_DOOR_BUMP: number; + // @ts-ignore + public static EVENT_SOUND_DOOR_CRASH: number; + // @ts-ignore + public static EVENT_SOUND_ENDERMAN_TELEPORT: number; + // @ts-ignore + public static EVENT_SOUND_ANVIL_BREAK: number; + // @ts-ignore + public static EVENT_SOUND_ANVIL_USE: number; + // @ts-ignore + public static EVENT_SOUND_ANVIL_FALL: number; + // @ts-ignore + public static EVENT_SOUND_ITEM_DROP: number; + // @ts-ignore + public static EVENT_SOUND_ITEM_THROWN: number; + // @ts-ignore + public static EVENT_SOUND_PORTAL: number; + // @ts-ignore + public static EVENT_SOUND_ITEM_FRAME_ITEM_ADDED: number; + // @ts-ignore + public static EVENT_SOUND_ITEM_FRAME_PLACED: number; + // @ts-ignore + public static EVENT_SOUND_ITEM_FRAME_REMOVED: number; + // @ts-ignore + public static EVENT_SOUND_ITEM_FRAME_ITEM_REMOVED: number; + // @ts-ignore + public static EVENT_SOUND_ITEM_FRAME_ITEM_ROTATED: number; + // @ts-ignore + public static EVENT_SOUND_CAMERA_TAKE_PICTURE: number; + // @ts-ignore + public static EVENT_SOUND_EXPERIENCE_ORB: number; + // @ts-ignore + public static EVENT_SOUND_TOTEM: number; + // @ts-ignore + public static EVENT_SOUND_ARMOR_STAND_BREAK: number; + // @ts-ignore + public static EVENT_SOUND_ARMOR_STAND_HIT: number; + // @ts-ignore + public static EVENT_SOUND_ARMOR_STAND_FALL: number; + // @ts-ignore + public static EVENT_SOUND_ARMOR_STAND_PLACE: number; + // @ts-ignore + public static EVENT_GUARDIAN_CURSE: number; + // @ts-ignore + public static EVENT_PARTICLE_BLOCK_FORCE_FIELD: number; + // @ts-ignore + public static EVENT_PARTICLE_PROJECTILE_HIT: number; + // @ts-ignore + public static EVENT_PARTICLE_DRAGON_EGG_TELEPORT: number; + // @ts-ignore + public static EVENT_PARTICLE_ENDERMAN_TELEPORT: number; + // @ts-ignore + public static EVENT_PARTICLE_PUNCH_BLOCK: number; + // @ts-ignore + public static EVENT_SOUND_BUTTON_CLICK: number; + // @ts-ignore + public static EVENT_SOUND_EXPLODE: number; + // @ts-ignore + public static EVENT_CAULDRON_DYE_ARMOR: number; + // @ts-ignore + public static EVENT_CAULDRON_CLEAN_ARMOR: number; + // @ts-ignore + public static EVENT_CAULDRON_FILL_POTION: number; + // @ts-ignore + public static EVENT_CAULDRON_TAKE_POTION: number; + // @ts-ignore + public static EVENT_SOUND_SPLASH: number; + // @ts-ignore + public static EVENT_CAULDRON_TAKE_WATER: number; + // @ts-ignore + public static EVENT_CAULDRON_ADD_DYE: number; + // @ts-ignore + public static EVENT_CAULDRON_CLEAN_BANNER: number; + // @ts-ignore + public static EVENT_PARTICLE_SHOOT: number; + // @ts-ignore + public static EVENT_PARTICLE_DESTROY: number; + // @ts-ignore + public static EVENT_PARTICLE_SPLASH: number; + // @ts-ignore + public static EVENT_PARTICLE_EYE_DESPAWN: number; + // @ts-ignore + public static EVENT_PARTICLE_SPAWN: number; + // @ts-ignore + public static EVENT_PARTICLE_BONEMEAL: number; + // @ts-ignore + public static EVENT_START_RAIN: number; + // @ts-ignore + public static EVENT_START_THUNDER: number; + // @ts-ignore + public static EVENT_STOP_RAIN: number; + // @ts-ignore + public static EVENT_STOP_THUNDER: number; + // @ts-ignore + public static EVENT_SOUND_CAULDRON: number; + // @ts-ignore + public static EVENT_SOUND_CAULDRON_DYE_ARMOR: number; + // @ts-ignore + public static EVENT_SOUND_CAULDRON_FILL_POTION: number; + // @ts-ignore + public static EVENT_SOUND_CAULDRON_FILL_WATER: number; + // @ts-ignore + public static EVENT_BLOCK_START_BREAK: number; + // @ts-ignore + public static EVENT_BLOCK_STOP_BREAK: number; + // @ts-ignore + public static EVENT_SET_DATA: number; + // @ts-ignore + public static EVENT_PLAYERS_SLEEPING: number; + // @ts-ignore + public static EVENT_ADD_PARTICLE_MASK: number; + // @ts-ignore + public evid: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public data: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacket.d.ts new file mode 100644 index 00000000..18a43ced --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacket.d.ts @@ -0,0 +1,533 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class LevelSoundEventPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static SOUND_ITEM_USE_ON: number; + // @ts-ignore + public static SOUND_HIT: number; + // @ts-ignore + public static SOUND_STEP: number; + // @ts-ignore + public static SOUND_FLY: number; + // @ts-ignore + public static SOUND_JUMP: number; + // @ts-ignore + public static SOUND_BREAK: number; + // @ts-ignore + public static SOUND_PLACE: number; + // @ts-ignore + public static SOUND_HEAVY_STEP: number; + // @ts-ignore + public static SOUND_GALLOP: number; + // @ts-ignore + public static SOUND_FALL: number; + // @ts-ignore + public static SOUND_AMBIENT: number; + // @ts-ignore + public static SOUND_AMBIENT_BABY: number; + // @ts-ignore + public static SOUND_AMBIENT_IN_WATER: number; + // @ts-ignore + public static SOUND_BREATHE: number; + // @ts-ignore + public static SOUND_DEATH: number; + // @ts-ignore + public static SOUND_DEATH_IN_WATER: number; + // @ts-ignore + public static SOUND_DEATH_TO_ZOMBIE: number; + // @ts-ignore + public static SOUND_HURT: number; + // @ts-ignore + public static SOUND_HURT_IN_WATER: number; + // @ts-ignore + public static SOUND_MAD: number; + // @ts-ignore + public static SOUND_BOOST: number; + // @ts-ignore + public static SOUND_BOW: number; + // @ts-ignore + public static SOUND_SQUISH_BIG: number; + // @ts-ignore + public static SOUND_SQUISH_SMALL: number; + // @ts-ignore + public static SOUND_FALL_BIG: number; + // @ts-ignore + public static SOUND_FALL_SMALL: number; + // @ts-ignore + public static SOUND_SPLASH: number; + // @ts-ignore + public static SOUND_FIZZ: number; + // @ts-ignore + public static SOUND_FLAP: number; + // @ts-ignore + public static SOUND_SWIM: number; + // @ts-ignore + public static SOUND_DRINK: number; + // @ts-ignore + public static SOUND_EAT: number; + // @ts-ignore + public static SOUND_TAKEOFF: number; + // @ts-ignore + public static SOUND_SHAKE: number; + // @ts-ignore + public static SOUND_PLOP: number; + // @ts-ignore + public static SOUND_LAND: number; + // @ts-ignore + public static SOUND_SADDLE: number; + // @ts-ignore + public static SOUND_ARMOR: number; + // @ts-ignore + public static SOUND_MOB_ARMOR_STAND_PLACE: number; + // @ts-ignore + public static SOUND_ADD_CHEST: number; + // @ts-ignore + public static SOUND_THROW: number; + // @ts-ignore + public static SOUND_ATTACK: number; + // @ts-ignore + public static SOUND_ATTACK_NODAMAGE: number; + // @ts-ignore + public static SOUND_ATTACK_STRONG: number; + // @ts-ignore + public static SOUND_WARN: number; + // @ts-ignore + public static SOUND_SHEAR: number; + // @ts-ignore + public static SOUND_MILK: number; + // @ts-ignore + public static SOUND_THUNDER: number; + // @ts-ignore + public static SOUND_EXPLODE: number; + // @ts-ignore + public static SOUND_FIRE: number; + // @ts-ignore + public static SOUND_IGNITE: number; + // @ts-ignore + public static SOUND_FUSE: number; + // @ts-ignore + public static SOUND_STARE: number; + // @ts-ignore + public static SOUND_SPAWN: number; + // @ts-ignore + public static SOUND_SHOOT: number; + // @ts-ignore + public static SOUND_BREAK_BLOCK: number; + // @ts-ignore + public static SOUND_LAUNCH: number; + // @ts-ignore + public static SOUND_BLAST: number; + // @ts-ignore + public static SOUND_LARGE_BLAST: number; + // @ts-ignore + public static SOUND_TWINKLE: number; + // @ts-ignore + public static SOUND_REMEDY: number; + // @ts-ignore + public static SOUND_UNFECT: number; + // @ts-ignore + public static SOUND_LEVELUP: number; + // @ts-ignore + public static SOUND_BOW_HIT: number; + // @ts-ignore + public static SOUND_BULLET_HIT: number; + // @ts-ignore + public static SOUND_EXTINGUISH_FIRE: number; + // @ts-ignore + public static SOUND_ITEM_FIZZ: number; + // @ts-ignore + public static SOUND_CHEST_OPEN: number; + // @ts-ignore + public static SOUND_CHEST_CLOSED: number; + // @ts-ignore + public static SOUND_SHULKERBOX_OPEN: number; + // @ts-ignore + public static SOUND_SHULKERBOX_CLOSED: number; + // @ts-ignore + public static SOUND_ENDERCHEST_OPEN: number; + // @ts-ignore + public static SOUND_ENDERCHEST_CLOSED: number; + // @ts-ignore + public static SOUND_POWER_ON: number; + // @ts-ignore + public static SOUND_POWER_OFF: number; + // @ts-ignore + public static SOUND_ATTACH: number; + // @ts-ignore + public static SOUND_DETACH: number; + // @ts-ignore + public static SOUND_DENY: number; + // @ts-ignore + public static SOUND_TRIPOD: number; + // @ts-ignore + public static SOUND_POP: number; + // @ts-ignore + public static SOUND_DROP_SLOT: number; + // @ts-ignore + public static SOUND_NOTE: number; + // @ts-ignore + public static SOUND_THORNS: number; + // @ts-ignore + public static SOUND_PISTON_IN: number; + // @ts-ignore + public static SOUND_PISTON_OUT: number; + // @ts-ignore + public static SOUND_PORTAL: number; + // @ts-ignore + public static SOUND_WATER: number; + // @ts-ignore + public static SOUND_LAVA_POP: number; + // @ts-ignore + public static SOUND_LAVA: number; + // @ts-ignore + public static SOUND_BURP: number; + // @ts-ignore + public static SOUND_BUCKET_FILL_WATER: number; + // @ts-ignore + public static SOUND_BUCKET_FILL_LAVA: number; + // @ts-ignore + public static SOUND_BUCKET_EMPTY_WATER: number; + // @ts-ignore + public static SOUND_BUCKET_EMPTY_LAVA: number; + // @ts-ignore + public static SOUND_ARMOR_EQUIP_CHAIN: number; + // @ts-ignore + public static SOUND_ARMOR_EQUIP_DIAMOND: number; + // @ts-ignore + public static SOUND_ARMOR_EQUIP_GENERIC: number; + // @ts-ignore + public static SOUND_ARMOR_EQUIP_GOLD: number; + // @ts-ignore + public static SOUND_ARMOR_EQUIP_IRON: number; + // @ts-ignore + public static SOUND_ARMOR_EQUIP_LEATHER: number; + // @ts-ignore + public static SOUND_ARMOR_EQUIP_ELYTRA: number; + // @ts-ignore + public static SOUND_RECORD_13: number; + // @ts-ignore + public static SOUND_RECORD_CAT: number; + // @ts-ignore + public static SOUND_RECORD_BLOCKS: number; + // @ts-ignore + public static SOUND_RECORD_CHIRP: number; + // @ts-ignore + public static SOUND_RECORD_FAR: number; + // @ts-ignore + public static SOUND_RECORD_MALL: number; + // @ts-ignore + public static SOUND_RECORD_MELLOHI: number; + // @ts-ignore + public static SOUND_RECORD_STAL: number; + // @ts-ignore + public static SOUND_RECORD_STRAD: number; + // @ts-ignore + public static SOUND_RECORD_WARD: number; + // @ts-ignore + public static SOUND_RECORD_11: number; + // @ts-ignore + public static SOUND_RECORD_WAIT: number; + // @ts-ignore + public static SOUND_STOP_RECORD: number; + // @ts-ignore + public static SOUND_GUARDIAN_FLOP: number; + // @ts-ignore + public static SOUND_ELDERGUARDIAN_CURSE: number; + // @ts-ignore + public static SOUND_MOB_WARNING: number; + // @ts-ignore + public static SOUND_MOB_WARNING_BABY: number; + // @ts-ignore + public static SOUND_TELEPORT: number; + // @ts-ignore + public static SOUND_SHULKER_OPEN: number; + // @ts-ignore + public static SOUND_SHULKER_CLOSE: number; + // @ts-ignore + public static SOUND_HAGGLE: number; + // @ts-ignore + public static SOUND_HAGGLE_YES: number; + // @ts-ignore + public static SOUND_HAGGLE_NO: number; + // @ts-ignore + public static SOUND_HAGGLE_IDLE: number; + // @ts-ignore + public static SOUND_CHORUSGROW: number; + // @ts-ignore + public static SOUND_CHORUSDEATH: number; + // @ts-ignore + public static SOUND_GLASS: number; + // @ts-ignore + public static SOUND_POTION_BREWED: number; + // @ts-ignore + public static SOUND_CAST_SPELL: number; + // @ts-ignore + public static SOUND_PREPARE_ATTACK: number; + // @ts-ignore + public static SOUND_PREPARE_SUMMON: number; + // @ts-ignore + public static SOUND_PREPARE_WOLOLO: number; + // @ts-ignore + public static SOUND_FANG: number; + // @ts-ignore + public static SOUND_CHARGE: number; + // @ts-ignore + public static SOUND_CAMERA_TAKE_PICTURE: number; + // @ts-ignore + public static SOUND_LEASHKNOT_PLACE: number; + // @ts-ignore + public static SOUND_LEASHKNOT_BREAK: number; + // @ts-ignore + public static SOUND_GROWL: number; + // @ts-ignore + public static SOUND_WHINE: number; + // @ts-ignore + public static SOUND_PANT: number; + // @ts-ignore + public static SOUND_PURR: number; + // @ts-ignore + public static SOUND_PURREOW: number; + // @ts-ignore + public static SOUND_DEATH_MIN_VOLUME: number; + // @ts-ignore + public static SOUND_DEATH_MID_VOLUME: number; + // @ts-ignore + public static SOUND_IMITATE_BLAZE: number; + // @ts-ignore + public static SOUND_IMITATE_CAVE_SPIDER: number; + // @ts-ignore + public static SOUND_IMITATE_CREEPER: number; + // @ts-ignore + public static SOUND_IMITATE_ELDER_GUARDIAN: number; + // @ts-ignore + public static SOUND_IMITATE_ENDER_DRAGON: number; + // @ts-ignore + public static SOUND_IMITATE_ENDERMAN: number; + // @ts-ignore + public static SOUND_IMITATE_EVOCATION_ILLAGER: number; + // @ts-ignore + public static SOUND_IMITATE_GHAST: number; + // @ts-ignore + public static SOUND_IMITATE_HUSK: number; + // @ts-ignore + public static SOUND_IMITATE_ILLUSION_ILLAGER: number; + // @ts-ignore + public static SOUND_IMITATE_MAGMA_CUBE: number; + // @ts-ignore + public static SOUND_IMITATE_POLAR_BEAR: number; + // @ts-ignore + public static SOUND_IMITATE_SHULKER: number; + // @ts-ignore + public static SOUND_IMITATE_SILVERFISH: number; + // @ts-ignore + public static SOUND_IMITATE_SKELETON: number; + // @ts-ignore + public static SOUND_IMITATE_SLIME: number; + // @ts-ignore + public static SOUND_IMITATE_SPIDER: number; + // @ts-ignore + public static SOUND_IMITATE_STRAY: number; + // @ts-ignore + public static SOUND_IMITATE_VEX: number; + // @ts-ignore + public static SOUND_IMITATE_VINDICATION_ILLAGER: number; + // @ts-ignore + public static SOUND_IMITATE_WITCH: number; + // @ts-ignore + public static SOUND_IMITATE_WITHER: number; + // @ts-ignore + public static SOUND_IMITATE_WITHER_SKELETON: number; + // @ts-ignore + public static SOUND_IMITATE_WOLF: number; + // @ts-ignore + public static SOUND_IMITATE_ZOMBIE: number; + // @ts-ignore + public static SOUND_IMITATE_ZOMBIE_PIGMAN: number; + // @ts-ignore + public static SOUND_IMITATE_ZOMBIE_VILLAGER: number; + // @ts-ignore + public static SOUND_BLOCK_END_PORTAL_FRAME_FILL: number; + // @ts-ignore + public static SOUND_BLOCK_END_PORTAL_SPAWN: number; + // @ts-ignore + public static SOUND_RANDOM_ANVIL_USE: number; + // @ts-ignore + public static SOUND_BOTTLE_DRAGONBREATH: number; + // @ts-ignore + public static SOUND_PORTAL_TRAVEL: number; + // @ts-ignore + public static SOUND_ITEM_TRIDENT_HIT: number; + // @ts-ignore + public static SOUND_ITEM_TRIDENT_RETURN: number; + // @ts-ignore + public static SOUND_ITEM_TRIDENT_RIPTIDE_1: number; + // @ts-ignore + public static SOUND_ITEM_TRIDENT_RIPTIDE_2: number; + // @ts-ignore + public static SOUND_ITEM_TRIDENT_RIPTIDE_3: number; + // @ts-ignore + public static SOUND_ITEM_TRIDENT_THROW: number; + // @ts-ignore + public static SOUND_ITEM_TRIDENT_THUNDER: number; + // @ts-ignore + public static SOUND_ITEM_TRIDENT_HIT_GROUND: number; + // @ts-ignore + public static SOUND_DEFAULT: number; + // @ts-ignore + public static SOUND_ELEMCONSTRUCT_OPEN: number; + // @ts-ignore + public static SOUND_ICEBOMB_HIT: number; + // @ts-ignore + public static SOUND_BALLOONPOP: number; + // @ts-ignore + public static SOUND_LT_REACTION_ICEBOMB: number; + // @ts-ignore + public static SOUND_LT_REACTION_BLEACH: number; + // @ts-ignore + public static SOUND_LT_REACTION_EPASTE: number; + // @ts-ignore + public static SOUND_LT_REACTION_EPASTE2: number; + // @ts-ignore + public static SOUND_LT_REACTION_FERTILIZER: number; + // @ts-ignore + public static SOUND_LT_REACTION_FIREBALL: number; + // @ts-ignore + public static SOUND_LT_REACTION_MGSALT: number; + // @ts-ignore + public static SOUND_LT_REACTION_MISCFIRE: number; + // @ts-ignore + public static SOUND_LT_REACTION_FIRE: number; + // @ts-ignore + public static SOUND_LT_REACTION_MISCEXPLOSION: number; + // @ts-ignore + public static SOUND_LT_REACTION_MISCMYSTICAL: number; + // @ts-ignore + public static SOUND_LT_REACTION_MISCMYSTICAL2: number; + // @ts-ignore + public static SOUND_LT_REACTION_PRODUCT: number; + // @ts-ignore + public static SOUND_SPARKLER_USE: number; + // @ts-ignore + public static SOUND_GLOWSTICK_USE: number; + // @ts-ignore + public static SOUND_SPARKLER_ACTIVE: number; + // @ts-ignore + public static SOUND_CONVERT_TO_DROWNED: number; + // @ts-ignore + public static SOUND_BUCKET_FILL_FISH: number; + // @ts-ignore + public static SOUND_BUCKET_EMPTY_FISH: number; + // @ts-ignore + public static SOUND_BUBBLE_UP: number; + // @ts-ignore + public static SOUND_BUBBLE_DOWN: number; + // @ts-ignore + public static SOUND_BUBBLE_POP: number; + // @ts-ignore + public static SOUND_BUBBLE_UPINSIDE: number; + // @ts-ignore + public static SOUND_BUBBLE_DOWNINSIDE: number; + // @ts-ignore + public static SOUND_HURT_BABY: number; + // @ts-ignore + public static SOUND_DEATH_BABY: number; + // @ts-ignore + public static SOUND_STEP_BABY: number; + // @ts-ignore + public static SOUND_BORN: number; + // @ts-ignore + public static SOUND_BLOCK_TURTLE_EGG_BREAK: number; + // @ts-ignore + public static SOUND_BLOCK_TURTLE_EGG_CRACK: number; + // @ts-ignore + public static SOUND_BLOCK_TURTLE_EGG_HATCH: number; + // @ts-ignore + public static SOUND_BLOCK_TURTLE_EGG_ATTACK: number; + // @ts-ignore + public static SOUND_BEACON_ACTIVATE: number; + // @ts-ignore + public static SOUND_BEACON_AMBIENT: number; + // @ts-ignore + public static SOUND_BEACON_DEACTIVATE: number; + // @ts-ignore + public static SOUND_BEACON_POWER: number; + // @ts-ignore + public static SOUND_CONDUIT_ACTIVATE: number; + // @ts-ignore + public static SOUND_CONDUIT_AMBIENT: number; + // @ts-ignore + public static SOUND_CONDUIT_ATTACK: number; + // @ts-ignore + public static SOUND_CONDUIT_DEACTIVATE: number; + // @ts-ignore + public static SOUND_CONDUIT_SHORT: number; + // @ts-ignore + public static SOUND_SWOOP: number; + // @ts-ignore + public static SOUND_BLOCK_BAMBOO_SAPLING_PLACE: number; + // @ts-ignore + public static SOUND_PRESNEEZE: number; + // @ts-ignore + public static SOUND_SNEEZE: number; + // @ts-ignore + public static SOUND_AMBIENT_TAME: number; + // @ts-ignore + public static SOUND_SCARED: number; + // @ts-ignore + public static SOUND_BLOCK_SCAFFOLDING_CLIMB: number; + // @ts-ignore + public static SOUND_CROSSBOW_LOADING_START: number; + // @ts-ignore + public static SOUND_CROSSBOW_LOADING_MIDDLE: number; + // @ts-ignore + public static SOUND_CROSSBOW_LOADING_END: number; + // @ts-ignore + public static SOUND_CROSSBOW_SHOOT: number; + // @ts-ignore + public static SOUND_CROSSBOW_QUICK_CHARGE_START: number; + // @ts-ignore + public static SOUND_CROSSBOW_QUICK_CHARGE_MIDDLE: number; + // @ts-ignore + public static SOUND_CROSSBOW_QUICK_CHARGE_END: number; + // @ts-ignore + public static SOUND_AMBIENT_AGGRESSIVE: number; + // @ts-ignore + public static SOUND_AMBIENT_WORRIED: number; + // @ts-ignore + public static SOUND_CANT_BREED: number; + // @ts-ignore + public static SOUND_UNDEFINED: number; + // @ts-ignore + public sound: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public extraData: number; + // @ts-ignore + public entityIdentifier: string; + // @ts-ignore + public isBabyMob: boolean; + // @ts-ignore + public isGlobal: boolean; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacketV1.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacketV1.d.ts new file mode 100644 index 00000000..30e617f5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacketV1.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class LevelSoundEventPacketV1 extends cn.nukkit.network.protocol.LevelSoundEventPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public sound: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public extraData: number; + // @ts-ignore + public pitch: number; + // @ts-ignore + public isBabyMob: boolean; + // @ts-ignore + public isGlobal: boolean; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacketV2.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacketV2.d.ts new file mode 100644 index 00000000..c8ad4c19 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LevelSoundEventPacketV2.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class LevelSoundEventPacketV2 extends cn.nukkit.network.protocol.LevelSoundEventPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public sound: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public extraData: number; + // @ts-ignore + public entityIdentifier: string; + // @ts-ignore + public isBabyMob: boolean; + // @ts-ignore + public isGlobal: boolean; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LoginPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LoginPacket.d.ts new file mode 100644 index 00000000..02ea7286 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.LoginPacket.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class LoginPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public username: string; + // @ts-ignore + public protocol: number; + // @ts-ignore + public clientUUID: java.util.UUID; + // @ts-ignore + public clientId: number; + // @ts-ignore + public skin: cn.nukkit.entity.data.Skin; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public getProtocol(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MapCreateLockedCopyPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MapCreateLockedCopyPacket.d.ts new file mode 100644 index 00000000..141cd6b6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MapCreateLockedCopyPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class MapCreateLockedCopyPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public originalMapId: number; + // @ts-ignore + public newMapId: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MapInfoRequestPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MapInfoRequestPacket.d.ts new file mode 100644 index 00000000..194988cb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MapInfoRequestPacket.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class MapInfoRequestPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public mapId: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobArmorEquipmentPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobArmorEquipmentPacket.d.ts new file mode 100644 index 00000000..989de984 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobArmorEquipmentPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class MobArmorEquipmentPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public slots: cn.nukkit.item.Item[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobEffectPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobEffectPacket.d.ts new file mode 100644 index 00000000..8d47d26b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobEffectPacket.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class MobEffectPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static EVENT_ADD: number; + // @ts-ignore + public static EVENT_MODIFY: number; + // @ts-ignore + public static EVENT_REMOVE: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public eventId: number; + // @ts-ignore + public effectId: number; + // @ts-ignore + public amplifier: number; + // @ts-ignore + public particles: boolean; + // @ts-ignore + public duration: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobEquipmentPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobEquipmentPacket.d.ts new file mode 100644 index 00000000..ff5f3701 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MobEquipmentPacket.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class MobEquipmentPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public item: cn.nukkit.item.Item; + // @ts-ignore + public inventorySlot: number; + // @ts-ignore + public hotbarSlot: number; + // @ts-ignore + public windowId: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ModalFormRequestPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ModalFormRequestPacket.d.ts new file mode 100644 index 00000000..38073163 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ModalFormRequestPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ModalFormRequestPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public formId: number; + // @ts-ignore + public data: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ModalFormResponsePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ModalFormResponsePacket.d.ts new file mode 100644 index 00000000..7df3c410 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ModalFormResponsePacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ModalFormResponsePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public formId: number; + // @ts-ignore + public data: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MoveEntityAbsolutePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MoveEntityAbsolutePacket.d.ts new file mode 100644 index 00000000..97c0e293 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MoveEntityAbsolutePacket.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class MoveEntityAbsolutePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public yaw: number; + // @ts-ignore + public headYaw: number; + // @ts-ignore + public pitch: number; + // @ts-ignore + public onGround: boolean; + // @ts-ignore + public teleport: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MoveEntityDeltaPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MoveEntityDeltaPacket.d.ts new file mode 100644 index 00000000..5267eef6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MoveEntityDeltaPacket.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class MoveEntityDeltaPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static FLAG_HAS_X: number; + // @ts-ignore + public static FLAG_HAS_Y: number; + // @ts-ignore + public static FLAG_HAS_Z: number; + // @ts-ignore + public static FLAG_HAS_YAW: number; + // @ts-ignore + public static FLAG_HAS_HEAD_YAW: number; + // @ts-ignore + public static FLAG_HAS_PITCH: number; + // @ts-ignore + public flags: number; + // @ts-ignore + public xDelta: number; + // @ts-ignore + public yDelta: number; + // @ts-ignore + public zDelta: number; + // @ts-ignore + public yawDelta: number; + // @ts-ignore + public headYawDelta: number; + // @ts-ignore + public pitchDelta: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MovePlayerPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MovePlayerPacket.d.ts new file mode 100644 index 00000000..3bf77524 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.MovePlayerPacket.d.ts @@ -0,0 +1,53 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class MovePlayerPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static MODE_NORMAL: number; + // @ts-ignore + public static MODE_RESET: number; + // @ts-ignore + public static MODE_TELEPORT: number; + // @ts-ignore + public static MODE_PITCH: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public yaw: number; + // @ts-ignore + public headYaw: number; + // @ts-ignore + public pitch: number; + // @ts-ignore + public mode: number; + // @ts-ignore + public onGround: boolean; + // @ts-ignore + public ridingEid: number; + // @ts-ignore + public int1: number; + // @ts-ignore + public int2: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NPCRequestPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NPCRequestPacket.d.ts new file mode 100644 index 00000000..72469896 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NPCRequestPacket.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class NPCRequestPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NetworkChunkPublisherUpdatePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NetworkChunkPublisherUpdatePacket.d.ts new file mode 100644 index 00000000..e2a17404 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NetworkChunkPublisherUpdatePacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class NetworkChunkPublisherUpdatePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public position: cn.nukkit.math.BlockVector3; + // @ts-ignore + public radius: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NetworkStackLatencyPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NetworkStackLatencyPacket.d.ts new file mode 100644 index 00000000..a2c15aea --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.NetworkStackLatencyPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class NetworkStackLatencyPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public timestamp: number; + // @ts-ignore + public unknownBool: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.OnScreenTextureAnimationPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.OnScreenTextureAnimationPacket.d.ts new file mode 100644 index 00000000..99f90e67 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.OnScreenTextureAnimationPacket.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class OnScreenTextureAnimationPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public effectId: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlaySoundPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlaySoundPacket.d.ts new file mode 100644 index 00000000..93be643d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlaySoundPacket.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class PlaySoundPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public name: string; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public volume: number; + // @ts-ignore + public pitch: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayStatusPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayStatusPacket.d.ts new file mode 100644 index 00000000..1e1397d3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayStatusPacket.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class PlayStatusPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static LOGIN_SUCCESS: number; + // @ts-ignore + public static LOGIN_FAILED_CLIENT: number; + // @ts-ignore + public static LOGIN_FAILED_SERVER: number; + // @ts-ignore + public static PLAYER_SPAWN: number; + // @ts-ignore + public static LOGIN_FAILED_INVALID_TENANT: number; + // @ts-ignore + public static LOGIN_FAILED_VANILLA_EDU: number; + // @ts-ignore + public static LOGIN_FAILED_EDU_VANILLA: number; + // @ts-ignore + public static LOGIN_FAILED_SERVER_FULL: number; + // @ts-ignore + public status: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerActionPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerActionPacket.d.ts new file mode 100644 index 00000000..017026bb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerActionPacket.d.ts @@ -0,0 +1,81 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class PlayerActionPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static ACTION_START_BREAK: number; + // @ts-ignore + public static ACTION_ABORT_BREAK: number; + // @ts-ignore + public static ACTION_STOP_BREAK: number; + // @ts-ignore + public static ACTION_GET_UPDATED_BLOCK: number; + // @ts-ignore + public static ACTION_DROP_ITEM: number; + // @ts-ignore + public static ACTION_START_SLEEPING: number; + // @ts-ignore + public static ACTION_STOP_SLEEPING: number; + // @ts-ignore + public static ACTION_RESPAWN: number; + // @ts-ignore + public static ACTION_JUMP: number; + // @ts-ignore + public static ACTION_START_SPRINT: number; + // @ts-ignore + public static ACTION_STOP_SPRINT: number; + // @ts-ignore + public static ACTION_START_SNEAK: number; + // @ts-ignore + public static ACTION_STOP_SNEAK: number; + // @ts-ignore + public static ACTION_DIMENSION_CHANGE_REQUEST: number; + // @ts-ignore + public static ACTION_DIMENSION_CHANGE_ACK: number; + // @ts-ignore + public static ACTION_START_GLIDE: number; + // @ts-ignore + public static ACTION_STOP_GLIDE: number; + // @ts-ignore + public static ACTION_BUILD_DENIED: number; + // @ts-ignore + public static ACTION_CONTINUE_BREAK: number; + // @ts-ignore + public static ACTION_SET_ENCHANTMENT_SEED: number; + // @ts-ignore + public static ACTION_START_SWIMMING: number; + // @ts-ignore + public static ACTION_STOP_SWIMMING: number; + // @ts-ignore + public static ACTION_START_SPIN_ATTACK: number; + // @ts-ignore + public static ACTION_STOP_SPIN_ATTACK: number; + // @ts-ignore + public entityId: number; + // @ts-ignore + public action: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public face: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerHotbarPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerHotbarPacket.d.ts new file mode 100644 index 00000000..7856179b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerHotbarPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class PlayerHotbarPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public selectedHotbarSlot: number; + // @ts-ignore + public windowId: number; + // @ts-ignore + public selectHotbarSlot: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerInputPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerInputPacket.d.ts new file mode 100644 index 00000000..92c6ecc9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerInputPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class PlayerInputPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public motionX: number; + // @ts-ignore + public motionY: number; + // @ts-ignore + public jumping: boolean; + // @ts-ignore + public sneaking: boolean; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerListPacket.Entry.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerListPacket.Entry.d.ts new file mode 100644 index 00000000..71d6182f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerListPacket.Entry.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace PlayerListPacket { + // @ts-ignore + class Entry extends java.lang.Object { + // @ts-ignore + constructor(uuid: java.util.UUID) + // @ts-ignore + constructor(uuid: java.util.UUID, entityId: number, name: string, skin: cn.nukkit.entity.data.Skin) + // @ts-ignore + constructor(uuid: java.util.UUID, entityId: number, name: string, skin: cn.nukkit.entity.data.Skin, xboxUserId: string) + // @ts-ignore + public uuid: java.util.UUID; + // @ts-ignore + public entityId: number; + // @ts-ignore + public name: string; + // @ts-ignore + public xboxUserId: string; + // @ts-ignore + public platformChatId: string; + // @ts-ignore + public buildPlatform: number; + // @ts-ignore + public skin: cn.nukkit.entity.data.Skin; + // @ts-ignore + public isTeacher: boolean; + // @ts-ignore + public isHost: boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerListPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerListPacket.d.ts new file mode 100644 index 00000000..27ddbebf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerListPacket.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class PlayerListPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static TYPE_ADD: number; + // @ts-ignore + public static TYPE_REMOVE: number; + // @ts-ignore + public type: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerSkinPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerSkinPacket.d.ts new file mode 100644 index 00000000..c564985d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.PlayerSkinPacket.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class PlayerSkinPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public uuid: java.util.UUID; + // @ts-ignore + public skin: cn.nukkit.entity.data.Skin; + // @ts-ignore + public newSkinName: string; + // @ts-ignore + public oldSkinName: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ProtocolInfo.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ProtocolInfo.d.ts new file mode 100644 index 00000000..cb115dde --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ProtocolInfo.d.ts @@ -0,0 +1,291 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + interface ProtocolInfo { + // @ts-ignore + CURRENT_PROTOCOL: number; + // @ts-ignore + SUPPORTED_PROTOCOLS: java.util.List; + // @ts-ignore + MINECRAFT_VERSION: string; + // @ts-ignore + MINECRAFT_VERSION_NETWORK: string; + // @ts-ignore + LOGIN_PACKET: number; + // @ts-ignore + PLAY_STATUS_PACKET: number; + // @ts-ignore + SERVER_TO_CLIENT_HANDSHAKE_PACKET: number; + // @ts-ignore + CLIENT_TO_SERVER_HANDSHAKE_PACKET: number; + // @ts-ignore + DISCONNECT_PACKET: number; + // @ts-ignore + RESOURCE_PACKS_INFO_PACKET: number; + // @ts-ignore + RESOURCE_PACK_STACK_PACKET: number; + // @ts-ignore + RESOURCE_PACK_CLIENT_RESPONSE_PACKET: number; + // @ts-ignore + TEXT_PACKET: number; + // @ts-ignore + SET_TIME_PACKET: number; + // @ts-ignore + START_GAME_PACKET: number; + // @ts-ignore + ADD_PLAYER_PACKET: number; + // @ts-ignore + ADD_ENTITY_PACKET: number; + // @ts-ignore + REMOVE_ENTITY_PACKET: number; + // @ts-ignore + ADD_ITEM_ENTITY_PACKET: number; + // @ts-ignore + TAKE_ITEM_ENTITY_PACKET: number; + // @ts-ignore + MOVE_ENTITY_ABSOLUTE_PACKET: number; + // @ts-ignore + MOVE_PLAYER_PACKET: number; + // @ts-ignore + RIDER_JUMP_PACKET: number; + // @ts-ignore + UPDATE_BLOCK_PACKET: number; + // @ts-ignore + ADD_PAINTING_PACKET: number; + // @ts-ignore + TICK_SYNC_PACKET: number; + // @ts-ignore + LEVEL_SOUND_EVENT_PACKET_V1: number; + // @ts-ignore + LEVEL_EVENT_PACKET: number; + // @ts-ignore + BLOCK_EVENT_PACKET: number; + // @ts-ignore + ENTITY_EVENT_PACKET: number; + // @ts-ignore + MOB_EFFECT_PACKET: number; + // @ts-ignore + UPDATE_ATTRIBUTES_PACKET: number; + // @ts-ignore + INVENTORY_TRANSACTION_PACKET: number; + // @ts-ignore + MOB_EQUIPMENT_PACKET: number; + // @ts-ignore + MOB_ARMOR_EQUIPMENT_PACKET: number; + // @ts-ignore + INTERACT_PACKET: number; + // @ts-ignore + BLOCK_PICK_REQUEST_PACKET: number; + // @ts-ignore + ENTITY_PICK_REQUEST_PACKET: number; + // @ts-ignore + PLAYER_ACTION_PACKET: number; + // @ts-ignore + ENTITY_FALL_PACKET: number; + // @ts-ignore + HURT_ARMOR_PACKET: number; + // @ts-ignore + SET_ENTITY_DATA_PACKET: number; + // @ts-ignore + SET_ENTITY_MOTION_PACKET: number; + // @ts-ignore + SET_ENTITY_LINK_PACKET: number; + // @ts-ignore + SET_HEALTH_PACKET: number; + // @ts-ignore + SET_SPAWN_POSITION_PACKET: number; + // @ts-ignore + ANIMATE_PACKET: number; + // @ts-ignore + RESPAWN_PACKET: number; + // @ts-ignore + CONTAINER_OPEN_PACKET: number; + // @ts-ignore + CONTAINER_CLOSE_PACKET: number; + // @ts-ignore + PLAYER_HOTBAR_PACKET: number; + // @ts-ignore + INVENTORY_CONTENT_PACKET: number; + // @ts-ignore + INVENTORY_SLOT_PACKET: number; + // @ts-ignore + CONTAINER_SET_DATA_PACKET: number; + // @ts-ignore + CRAFTING_DATA_PACKET: number; + // @ts-ignore + CRAFTING_EVENT_PACKET: number; + // @ts-ignore + GUI_DATA_PICK_ITEM_PACKET: number; + // @ts-ignore + ADVENTURE_SETTINGS_PACKET: number; + // @ts-ignore + BLOCK_ENTITY_DATA_PACKET: number; + // @ts-ignore + PLAYER_INPUT_PACKET: number; + // @ts-ignore + FULL_CHUNK_DATA_PACKET: number; + // @ts-ignore + SET_COMMANDS_ENABLED_PACKET: number; + // @ts-ignore + SET_DIFFICULTY_PACKET: number; + // @ts-ignore + CHANGE_DIMENSION_PACKET: number; + // @ts-ignore + SET_PLAYER_GAME_TYPE_PACKET: number; + // @ts-ignore + PLAYER_LIST_PACKET: number; + // @ts-ignore + SIMPLE_EVENT_PACKET: number; + // @ts-ignore + EVENT_PACKET: number; + // @ts-ignore + SPAWN_EXPERIENCE_ORB_PACKET: number; + // @ts-ignore + CLIENTBOUND_MAP_ITEM_DATA_PACKET: number; + // @ts-ignore + MAP_INFO_REQUEST_PACKET: number; + // @ts-ignore + REQUEST_CHUNK_RADIUS_PACKET: number; + // @ts-ignore + CHUNK_RADIUS_UPDATED_PACKET: number; + // @ts-ignore + ITEM_FRAME_DROP_ITEM_PACKET: number; + // @ts-ignore + GAME_RULES_CHANGED_PACKET: number; + // @ts-ignore + CAMERA_PACKET: number; + // @ts-ignore + BOSS_EVENT_PACKET: number; + // @ts-ignore + SHOW_CREDITS_PACKET: number; + // @ts-ignore + AVAILABLE_COMMANDS_PACKET: number; + // @ts-ignore + COMMAND_REQUEST_PACKET: number; + // @ts-ignore + COMMAND_BLOCK_UPDATE_PACKET: number; + // @ts-ignore + COMMAND_OUTPUT_PACKET: number; + // @ts-ignore + UPDATE_TRADE_PACKET: number; + // @ts-ignore + UPDATE_EQUIPMENT_PACKET: number; + // @ts-ignore + RESOURCE_PACK_DATA_INFO_PACKET: number; + // @ts-ignore + RESOURCE_PACK_CHUNK_DATA_PACKET: number; + // @ts-ignore + RESOURCE_PACK_CHUNK_REQUEST_PACKET: number; + // @ts-ignore + TRANSFER_PACKET: number; + // @ts-ignore + PLAY_SOUND_PACKET: number; + // @ts-ignore + STOP_SOUND_PACKET: number; + // @ts-ignore + SET_TITLE_PACKET: number; + // @ts-ignore + ADD_BEHAVIOR_TREE_PACKET: number; + // @ts-ignore + STRUCTURE_BLOCK_UPDATE_PACKET: number; + // @ts-ignore + SHOW_STORE_OFFER_PACKET: number; + // @ts-ignore + PURCHASE_RECEIPT_PACKET: number; + // @ts-ignore + PLAYER_SKIN_PACKET: number; + // @ts-ignore + SUB_CLIENT_LOGIN_PACKET: number; + // @ts-ignore + INITIATE_WEB_SOCKET_CONNECTION_PACKET: number; + // @ts-ignore + SET_LAST_HURT_BY_PACKET: number; + // @ts-ignore + BOOK_EDIT_PACKET: number; + // @ts-ignore + NPC_REQUEST_PACKET: number; + // @ts-ignore + PHOTO_TRANSFER_PACKET: number; + // @ts-ignore + MODAL_FORM_REQUEST_PACKET: number; + // @ts-ignore + MODAL_FORM_RESPONSE_PACKET: number; + // @ts-ignore + SERVER_SETTINGS_REQUEST_PACKET: number; + // @ts-ignore + SERVER_SETTINGS_RESPONSE_PACKET: number; + // @ts-ignore + SHOW_PROFILE_PACKET: number; + // @ts-ignore + SET_DEFAULT_GAME_TYPE_PACKET: number; + // @ts-ignore + MOVE_ENTITY_DELTA_PACKET: number; + // @ts-ignore + SET_SCOREBOARD_IDENTITY_PACKET: number; + // @ts-ignore + SET_LOCAL_PLAYER_AS_INITIALIZED_PACKET: number; + // @ts-ignore + UPDATE_SOFT_ENUM_PACKET: number; + // @ts-ignore + NETWORK_STACK_LATENCY_PACKET: number; + // @ts-ignore + SCRIPT_CUSTOM_EVENT_PACKET: number; + // @ts-ignore + SPAWN_PARTICLE_EFFECT_PACKET: number; + // @ts-ignore + AVAILABLE_ENTITY_IDENTIFIERS_PACKET: number; + // @ts-ignore + LEVEL_SOUND_EVENT_PACKET_V2: number; + // @ts-ignore + NETWORK_CHUNK_PUBLISHER_UPDATE_PACKET: number; + // @ts-ignore + BIOME_DEFINITION_LIST_PACKET: number; + // @ts-ignore + LEVEL_SOUND_EVENT_PACKET: number; + // @ts-ignore + LEVEL_EVENT_GENERIC_PACKET: number; + // @ts-ignore + LECTERN_UPDATE_PACKET: number; + // @ts-ignore + VIDEO_STREAM_CONNECT_PACKET: number; + // @ts-ignore + CLIENT_CACHE_STATUS_PACKET: number; + // @ts-ignore + ON_SCREEN_TEXTURE_ANIMATION_PACKET: number; + // @ts-ignore + MAP_CREATE_LOCKED_COPY_PACKET: number; + // @ts-ignore + STRUCTURE_TEMPLATE_DATA_EXPORT_REQUEST: number; + // @ts-ignore + STRUCTURE_TEMPLATE_DATA_EXPORT_RESPONSE: number; + // @ts-ignore + UPDATE_BLOCK_PROPERTIES: number; + // @ts-ignore + CLIENT_CACHE_BLOB_STATUS_PACKET: number; + // @ts-ignore + CLIENT_CACHE_MISS_RESPONSE_PACKET: number; + // @ts-ignore + EDUCATION_SETTINGS_PACKET: number; + // @ts-ignore + EMOTE_PACKET: number; + // @ts-ignore + MULTIPLAYER_SETTINGS_PACKET: number; + // @ts-ignore + SETTINGS_COMMAND_PACKET: number; + // @ts-ignore + ANVIL_DAMAGE_PACKET: number; + // @ts-ignore + COMPLETED_USING_ITEM_PACKET: number; + // @ts-ignore + NETWORK_SETTINGS_PACKET: number; + // @ts-ignore + PLAYER_AUTH_INPUT_PACKET: number; + // @ts-ignore + BATCH_PACKET: number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RemoveEntityPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RemoveEntityPacket.d.ts new file mode 100644 index 00000000..1f075f87 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RemoveEntityPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class RemoveEntityPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RequestChunkRadiusPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RequestChunkRadiusPacket.d.ts new file mode 100644 index 00000000..cbf083c8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RequestChunkRadiusPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class RequestChunkRadiusPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public radius: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackChunkDataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackChunkDataPacket.d.ts new file mode 100644 index 00000000..4e601781 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackChunkDataPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ResourcePackChunkDataPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public packId: java.util.UUID; + // @ts-ignore + public chunkIndex: number; + // @ts-ignore + public progress: number; + // @ts-ignore + public data: number[]; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackChunkRequestPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackChunkRequestPacket.d.ts new file mode 100644 index 00000000..78f36ffa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackChunkRequestPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ResourcePackChunkRequestPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public packId: java.util.UUID; + // @ts-ignore + public chunkIndex: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackClientResponsePacket.Entry.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackClientResponsePacket.Entry.d.ts new file mode 100644 index 00000000..4599b17f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackClientResponsePacket.Entry.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace ResourcePackClientResponsePacket { + // @ts-ignore + class Entry extends java.lang.Object { + // @ts-ignore + constructor(uuid: java.util.UUID, version: string) + // @ts-ignore + public uuid: java.util.UUID; + // @ts-ignore + public version: string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackClientResponsePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackClientResponsePacket.d.ts new file mode 100644 index 00000000..e965e1b8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackClientResponsePacket.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ResourcePackClientResponsePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static STATUS_REFUSED: number; + // @ts-ignore + public static STATUS_SEND_PACKS: number; + // @ts-ignore + public static STATUS_HAVE_ALL_PACKS: number; + // @ts-ignore + public static STATUS_COMPLETED: number; + // @ts-ignore + public responseStatus: number; + // @ts-ignore + public packEntries: cn.nukkit.network.protocol.ResourcePackClientResponsePacket.Entry[]; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackDataInfoPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackDataInfoPacket.d.ts new file mode 100644 index 00000000..248a3a32 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackDataInfoPacket.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ResourcePackDataInfoPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static TYPE_INVALID: number; + // @ts-ignore + public static TYPE_ADDON: number; + // @ts-ignore + public static TYPE_CACHED: number; + // @ts-ignore + public static TYPE_COPY_PROTECTED: number; + // @ts-ignore + public static TYPE_BEHAVIOR: number; + // @ts-ignore + public static TYPE_PERSONA_PIECE: number; + // @ts-ignore + public static TYPE_RESOURCE: number; + // @ts-ignore + public static TYPE_SKINS: number; + // @ts-ignore + public static TYPE_WORLD_TEMPLATE: number; + // @ts-ignore + public static TYPE_COUNT: number; + // @ts-ignore + public packId: java.util.UUID; + // @ts-ignore + public maxChunkSize: number; + // @ts-ignore + public chunkCount: number; + // @ts-ignore + public compressedPackSize: number; + // @ts-ignore + public sha256: number[]; + // @ts-ignore + public premium: boolean; + // @ts-ignore + public type: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackStackPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackStackPacket.d.ts new file mode 100644 index 00000000..abe76c22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePackStackPacket.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ResourcePackStackPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public mustAccept: boolean; + // @ts-ignore + public behaviourPackStack: cn.nukkit.resourcepacks.ResourcePack[]; + // @ts-ignore + public resourcePackStack: cn.nukkit.resourcepacks.ResourcePack[]; + // @ts-ignore + public isExperimental: boolean; + // @ts-ignore + public gameVersion: string; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePacksInfoPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePacksInfoPacket.d.ts new file mode 100644 index 00000000..2e961017 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ResourcePacksInfoPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ResourcePacksInfoPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public mustAccept: boolean; + // @ts-ignore + public unknownBool: boolean; + // @ts-ignore + public behaviourPackEntries: cn.nukkit.resourcepacks.ResourcePack[]; + // @ts-ignore + public resourcePackEntries: cn.nukkit.resourcepacks.ResourcePack[]; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RespawnPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RespawnPacket.d.ts new file mode 100644 index 00000000..3c7596ac --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RespawnPacket.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class RespawnPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static STATE_SEARCHING_FOR_SPAWN: number; + // @ts-ignore + public static STATE_READY_TO_SPAWN: number; + // @ts-ignore + public static STATE_CLIENT_READY_TO_SPAWN: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public respawnState: number; + // @ts-ignore + public runtimeEntityId: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RiderJumpPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RiderJumpPacket.d.ts new file mode 100644 index 00000000..87b3ad65 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.RiderJumpPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class RiderJumpPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public unknown: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ScriptCustomEventPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ScriptCustomEventPacket.d.ts new file mode 100644 index 00000000..87d71d20 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ScriptCustomEventPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ScriptCustomEventPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public eventName: string; + // @ts-ignore + public eventData: number[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerSettingsRequestPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerSettingsRequestPacket.d.ts new file mode 100644 index 00000000..f18e605e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerSettingsRequestPacket.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ServerSettingsRequestPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerSettingsResponsePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerSettingsResponsePacket.d.ts new file mode 100644 index 00000000..815bb7b8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerSettingsResponsePacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ServerSettingsResponsePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public formId: number; + // @ts-ignore + public data: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerToClientHandshakePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerToClientHandshakePacket.d.ts new file mode 100644 index 00000000..310bb641 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ServerToClientHandshakePacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ServerToClientHandshakePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public publicKey: string; + // @ts-ignore + public serverToken: string; + // @ts-ignore + public privateKey: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetCommandsEnabledPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetCommandsEnabledPacket.d.ts new file mode 100644 index 00000000..49edeb08 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetCommandsEnabledPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetCommandsEnabledPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public enabled: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetDifficultyPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetDifficultyPacket.d.ts new file mode 100644 index 00000000..e4c9ffe6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetDifficultyPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetDifficultyPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public difficulty: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityDataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityDataPacket.d.ts new file mode 100644 index 00000000..36bd7567 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityDataPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetEntityDataPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public metadata: cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityLinkPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityLinkPacket.d.ts new file mode 100644 index 00000000..bf91243d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityLinkPacket.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetEntityLinkPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static TYPE_REMOVE: number; + // @ts-ignore + public static TYPE_RIDE: number; + // @ts-ignore + public static TYPE_PASSENGER: number; + // @ts-ignore + public vehicleUniqueId: number; + // @ts-ignore + public riderUniqueId: number; + // @ts-ignore + public type: number; + // @ts-ignore + public immediate: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityMotionPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityMotionPacket.d.ts new file mode 100644 index 00000000..035be6cb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetEntityMotionPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetEntityMotionPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public motionX: number; + // @ts-ignore + public motionY: number; + // @ts-ignore + public motionZ: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetHealthPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetHealthPacket.d.ts new file mode 100644 index 00000000..1d279012 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetHealthPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetHealthPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public health: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetLastHurtByPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetLastHurtByPacket.d.ts new file mode 100644 index 00000000..dd9c0c3f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetLastHurtByPacket.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetLastHurtByPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetLocalPlayerAsInitializedPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetLocalPlayerAsInitializedPacket.d.ts new file mode 100644 index 00000000..41ebb912 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetLocalPlayerAsInitializedPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetLocalPlayerAsInitializedPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetPlayerGameTypePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetPlayerGameTypePacket.d.ts new file mode 100644 index 00000000..f3c3c2e2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetPlayerGameTypePacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetPlayerGameTypePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public gamemode: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetSpawnPositionPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetSpawnPositionPacket.d.ts new file mode 100644 index 00000000..eac1068e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetSpawnPositionPacket.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetSpawnPositionPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static TYPE_PLAYER_SPAWN: number; + // @ts-ignore + public static TYPE_WORLD_SPAWN: number; + // @ts-ignore + public spawnType: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public x: number; + // @ts-ignore + public spawnForced: boolean; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetTimePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetTimePacket.d.ts new file mode 100644 index 00000000..fb756641 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetTimePacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetTimePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public time: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetTitlePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetTitlePacket.d.ts new file mode 100644 index 00000000..52ce1422 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SetTitlePacket.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SetTitlePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static TYPE_CLEAR: number; + // @ts-ignore + public static TYPE_RESET: number; + // @ts-ignore + public static TYPE_TITLE: number; + // @ts-ignore + public static TYPE_SUBTITLE: number; + // @ts-ignore + public static TYPE_ACTION_BAR: number; + // @ts-ignore + public static TYPE_ANIMATION_TIMES: number; + // @ts-ignore + public type: number; + // @ts-ignore + public text: string; + // @ts-ignore + public fadeInTime: number; + // @ts-ignore + public stayTime: number; + // @ts-ignore + public fadeOutTime: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ShowCreditsPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ShowCreditsPacket.d.ts new file mode 100644 index 00000000..fa038387 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ShowCreditsPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ShowCreditsPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static STATUS_START_CREDITS: number; + // @ts-ignore + public static STATUS_END_CREDITS: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public status: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ShowProfilePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ShowProfilePacket.d.ts new file mode 100644 index 00000000..15a55980 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.ShowProfilePacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class ShowProfilePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public xuid: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SimpleEventPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SimpleEventPacket.d.ts new file mode 100644 index 00000000..4e44cc6b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SimpleEventPacket.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SimpleEventPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public unknown: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SpawnExperienceOrbPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SpawnExperienceOrbPacket.d.ts new file mode 100644 index 00000000..0739672a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SpawnExperienceOrbPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SpawnExperienceOrbPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public amount: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SpawnParticleEffectPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SpawnParticleEffectPacket.d.ts new file mode 100644 index 00000000..ff7cb362 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SpawnParticleEffectPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SpawnParticleEffectPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public dimensionId: number; + // @ts-ignore + public uniqueEntityId: number; + // @ts-ignore + public position: cn.nukkit.math.Vector3f; + // @ts-ignore + public identifier: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StartGamePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StartGamePacket.d.ts new file mode 100644 index 00000000..f76fb88e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StartGamePacket.d.ts @@ -0,0 +1,131 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class StartGamePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static GAME_PUBLISH_SETTING_NO_MULTI_PLAY: number; + // @ts-ignore + public static GAME_PUBLISH_SETTING_INVITE_ONLY: number; + // @ts-ignore + public static GAME_PUBLISH_SETTING_FRIENDS_ONLY: number; + // @ts-ignore + public static GAME_PUBLISH_SETTING_FRIENDS_OF_FRIENDS: number; + // @ts-ignore + public static GAME_PUBLISH_SETTING_PUBLIC: number; + // @ts-ignore + public entityUniqueId: number; + // @ts-ignore + public entityRuntimeId: number; + // @ts-ignore + public playerGamemode: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public z: number; + // @ts-ignore + public yaw: number; + // @ts-ignore + public pitch: number; + // @ts-ignore + public seed: number; + // @ts-ignore + public dimension: number; + // @ts-ignore + public generator: number; + // @ts-ignore + public worldGamemode: number; + // @ts-ignore + public difficulty: number; + // @ts-ignore + public spawnX: number; + // @ts-ignore + public spawnY: number; + // @ts-ignore + public spawnZ: number; + // @ts-ignore + public hasAchievementsDisabled: boolean; + // @ts-ignore + public dayCycleStopTime: number; + // @ts-ignore + public eduEditionOffer: number; + // @ts-ignore + public hasEduFeaturesEnabled: boolean; + // @ts-ignore + public rainLevel: number; + // @ts-ignore + public lightningLevel: number; + // @ts-ignore + public hasConfirmedPlatformLockedContent: boolean; + // @ts-ignore + public multiplayerGame: boolean; + // @ts-ignore + public broadcastToLAN: boolean; + // @ts-ignore + public xblBroadcastIntent: number; + // @ts-ignore + public platformBroadcastIntent: number; + // @ts-ignore + public commandsEnabled: boolean; + // @ts-ignore + public isTexturePacksRequired: boolean; + // @ts-ignore + public gameRules: cn.nukkit.level.GameRules; + // @ts-ignore + public bonusChest: boolean; + // @ts-ignore + public hasStartWithMapEnabled: boolean; + // @ts-ignore + public permissionLevel: number; + // @ts-ignore + public serverChunkTickRange: number; + // @ts-ignore + public hasLockedBehaviorPack: boolean; + // @ts-ignore + public hasLockedResourcePack: boolean; + // @ts-ignore + public isFromLockedWorldTemplate: boolean; + // @ts-ignore + public isUsingMsaGamertagsOnly: boolean; + // @ts-ignore + public isFromWorldTemplate: boolean; + // @ts-ignore + public isWorldTemplateOptionLocked: boolean; + // @ts-ignore + public isOnlySpawningV1Villagers: boolean; + // @ts-ignore + public vanillaVersion: string; + // @ts-ignore + public levelId: string; + // @ts-ignore + public worldName: string; + // @ts-ignore + public premiumWorldTemplateId: string; + // @ts-ignore + public isTrial: boolean; + // @ts-ignore + public isMovementServerAuthoritative: boolean; + // @ts-ignore + public currentTick: number; + // @ts-ignore + public enchantmentSeed: number; + // @ts-ignore + public multiplayerCorrelationId: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StopSoundPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StopSoundPacket.d.ts new file mode 100644 index 00000000..12bff3db --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StopSoundPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class StopSoundPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public name: string; + // @ts-ignore + public stopAll: boolean; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StructureBlockUpdatePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StructureBlockUpdatePacket.d.ts new file mode 100644 index 00000000..434fb09e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.StructureBlockUpdatePacket.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class StructureBlockUpdatePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SubClientLoginPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SubClientLoginPacket.d.ts new file mode 100644 index 00000000..bac08a37 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.SubClientLoginPacket.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class SubClientLoginPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TakeItemEntityPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TakeItemEntityPacket.d.ts new file mode 100644 index 00000000..434208ea --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TakeItemEntityPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class TakeItemEntityPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public entityId: number; + // @ts-ignore + public target: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TextPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TextPacket.d.ts new file mode 100644 index 00000000..aefac7a7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TextPacket.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class TextPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static TYPE_RAW: number; + // @ts-ignore + public static TYPE_CHAT: number; + // @ts-ignore + public static TYPE_TRANSLATION: number; + // @ts-ignore + public static TYPE_POPUP: number; + // @ts-ignore + public static TYPE_JUKEBOX_POPUP: number; + // @ts-ignore + public static TYPE_TIP: number; + // @ts-ignore + public static TYPE_SYSTEM: number; + // @ts-ignore + public static TYPE_WHISPER: number; + // @ts-ignore + public static TYPE_ANNOUNCEMENT: number; + // @ts-ignore + public static TYPE_JSON: number; + // @ts-ignore + public type: number; + // @ts-ignore + public source: string; + // @ts-ignore + public message: string; + // @ts-ignore + public parameters: java.lang.String[]; + // @ts-ignore + public isLocalized: boolean; + // @ts-ignore + public xboxUserId: string; + // @ts-ignore + public platformChatId: string; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TransferPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TransferPacket.d.ts new file mode 100644 index 00000000..bf54b69c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.TransferPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class TransferPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public address: string; + // @ts-ignore + public port: number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public pid(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateAttributesPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateAttributesPacket.d.ts new file mode 100644 index 00000000..01dad545 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateAttributesPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class UpdateAttributesPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public entityId: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateBlockPacket.Entry.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateBlockPacket.Entry.d.ts new file mode 100644 index 00000000..1188c0dc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateBlockPacket.Entry.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace UpdateBlockPacket { + // @ts-ignore + class Entry extends java.lang.Object { + // @ts-ignore + constructor(x: number, z: number, y: number, blockId: number, blockData: number, flags: number) + // @ts-ignore + public x: number; + // @ts-ignore + public z: number; + // @ts-ignore + public y: number; + // @ts-ignore + public blockId: number; + // @ts-ignore + public blockData: number; + // @ts-ignore + public flags: number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateBlockPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateBlockPacket.d.ts new file mode 100644 index 00000000..15a3fa22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateBlockPacket.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class UpdateBlockPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static FLAG_NONE: number; + // @ts-ignore + public static FLAG_NEIGHBORS: number; + // @ts-ignore + public static FLAG_NETWORK: number; + // @ts-ignore + public static FLAG_NOGRAPHIC: number; + // @ts-ignore + public static FLAG_PRIORITY: number; + // @ts-ignore + public static FLAG_ALL: number; + // @ts-ignore + public static FLAG_ALL_PRIORITY: number; + // @ts-ignore + public x: number; + // @ts-ignore + public z: number; + // @ts-ignore + public y: number; + // @ts-ignore + public blockRuntimeId: number; + // @ts-ignore + public flags: number; + // @ts-ignore + public dataLayer: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateEquipmentPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateEquipmentPacket.d.ts new file mode 100644 index 00000000..b6ae73d2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateEquipmentPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class UpdateEquipmentPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public windowId: number; + // @ts-ignore + public windowType: number; + // @ts-ignore + public unknown: number; + // @ts-ignore + public eid: number; + // @ts-ignore + public namedtag: number[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type.d.ts new file mode 100644 index 00000000..27f8e8db --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace UpdateSoftEnumPacket { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static ADD: cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type; + // @ts-ignore + public static REMOVE: cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type; + // @ts-ignore + public static SET: cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type; + // @ts-ignore + public static values(): cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateSoftEnumPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateSoftEnumPacket.d.ts new file mode 100644 index 00000000..33b5e528 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateSoftEnumPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class UpdateSoftEnumPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public name: string; + // @ts-ignore + public type: cn.nukkit.network.protocol.UpdateSoftEnumPacket.Type; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateTradePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateTradePacket.d.ts new file mode 100644 index 00000000..50466697 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.UpdateTradePacket.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class UpdateTradePacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public windowId: number; + // @ts-ignore + public windowType: number; + // @ts-ignore + public unknownVarInt1: number; + // @ts-ignore + public tradeTier: number; + // @ts-ignore + public trader: number; + // @ts-ignore + public player: number; + // @ts-ignore + public displayName: string; + // @ts-ignore + public screen2: boolean; + // @ts-ignore + public isWilling: boolean; + // @ts-ignore + public offers: number[]; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.VideoStreamConnectPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.VideoStreamConnectPacket.d.ts new file mode 100644 index 00000000..5ba3ad2a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.VideoStreamConnectPacket.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + // @ts-ignore + class VideoStreamConnectPacket extends cn.nukkit.network.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static NETWORK_ID: number; + // @ts-ignore + public static ACTION_OPEN: number; + // @ts-ignore + public static ACTION_CLOSE: number; + // @ts-ignore + public address: string; + // @ts-ignore + public screenshotFrequency: number; + // @ts-ignore + public action: number; + // @ts-ignore + public pid(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public encode(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.CommandOriginData.Origin.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.CommandOriginData.Origin.d.ts new file mode 100644 index 00000000..7859d27a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.CommandOriginData.Origin.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace types { + namespace CommandOriginData { + // @ts-ignore + class Origin extends java.lang.Enum { + // @ts-ignore + public static PLAYER: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static BLOCK: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static MINECART_BLOCK: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static DEV_CONSOLE: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static TEST: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static AUTOMATION_PLAYER: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static CLIENT_AUTOMATION: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static DEDICATED_SERVER: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static ENTITY: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static VIRTUAL: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static GAME_ARGUMENT: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static ENTITY_SERVER: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public static values(): cn.nukkit.network.protocol.types.CommandOriginData.Origin[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.network.protocol.types.CommandOriginData.Origin; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.CommandOriginData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.CommandOriginData.d.ts new file mode 100644 index 00000000..ef4f88fd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.CommandOriginData.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace types { + // @ts-ignore + class CommandOriginData extends java.lang.Object { + // @ts-ignore + constructor(type: cn.nukkit.network.protocol.types.CommandOriginData.Origin, uuid: java.util.UUID, requestId: string, varlong: java.lang.Long) + // @ts-ignore + public type: cn.nukkit.network.protocol.types.CommandOriginData.Origin; + // @ts-ignore + public uuid: java.util.UUID; + // @ts-ignore + public requestId: string; + // @ts-ignore + public getVarLong(): java.util.OptionalLong; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.ContainerIds.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.ContainerIds.d.ts new file mode 100644 index 00000000..5f1c4801 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.ContainerIds.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace types { + // @ts-ignore + interface ContainerIds { + // @ts-ignore + NONE: number; + // @ts-ignore + INVENTORY: number; + // @ts-ignore + FIRST: number; + // @ts-ignore + LAST: number; + // @ts-ignore + OFFHAND: number; + // @ts-ignore + ARMOR: number; + // @ts-ignore + CREATIVE: number; + // @ts-ignore + HOTBAR: number; + // @ts-ignore + FIXED_INVENTORY: number; + // @ts-ignore + UI: number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.EntityLink.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.EntityLink.d.ts new file mode 100644 index 00000000..fc1f45c5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.EntityLink.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace types { + // @ts-ignore + class EntityLink extends java.lang.Object { + // @ts-ignore + constructor(fromEntityUniquieId: number, toEntityUniquieId: number, type: number, immediate: boolean) + // @ts-ignore + public static TYPE_REMOVE: number; + // @ts-ignore + public static TYPE_RIDER: number; + // @ts-ignore + public static TYPE_PASSENGER: number; + // @ts-ignore + public fromEntityUniquieId: number; + // @ts-ignore + public toEntityUniquieId: number; + // @ts-ignore + public type: number; + // @ts-ignore + public immediate: boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.NetworkInventoryAction.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.NetworkInventoryAction.d.ts new file mode 100644 index 00000000..7e079d39 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.protocol.types.NetworkInventoryAction.d.ts @@ -0,0 +1,77 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace protocol { + namespace types { + // @ts-ignore + class NetworkInventoryAction extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static SOURCE_CONTAINER: number; + // @ts-ignore + public static SOURCE_WORLD: number; + // @ts-ignore + public static SOURCE_CREATIVE: number; + // @ts-ignore + public static SOURCE_TODO: number; + // @ts-ignore + public static SOURCE_CRAFT_SLOT: number; + // @ts-ignore + public static SOURCE_TYPE_CRAFTING_ADD_INGREDIENT: number; + // @ts-ignore + public static SOURCE_TYPE_CRAFTING_REMOVE_INGREDIENT: number; + // @ts-ignore + public static SOURCE_TYPE_CRAFTING_RESULT: number; + // @ts-ignore + public static SOURCE_TYPE_CRAFTING_USE_INGREDIENT: number; + // @ts-ignore + public static SOURCE_TYPE_ANVIL_INPUT: number; + // @ts-ignore + public static SOURCE_TYPE_ANVIL_MATERIAL: number; + // @ts-ignore + public static SOURCE_TYPE_ANVIL_RESULT: number; + // @ts-ignore + public static SOURCE_TYPE_ANVIL_OUTPUT: number; + // @ts-ignore + public static SOURCE_TYPE_ENCHANT_INPUT: number; + // @ts-ignore + public static SOURCE_TYPE_ENCHANT_MATERIAL: number; + // @ts-ignore + public static SOURCE_TYPE_ENCHANT_OUTPUT: number; + // @ts-ignore + public static SOURCE_TYPE_TRADING_INPUT_1: number; + // @ts-ignore + public static SOURCE_TYPE_TRADING_INPUT_2: number; + // @ts-ignore + public static SOURCE_TYPE_TRADING_USE_INPUTS: number; + // @ts-ignore + public static SOURCE_TYPE_TRADING_OUTPUT: number; + // @ts-ignore + public static SOURCE_TYPE_BEACON: number; + // @ts-ignore + public static SOURCE_TYPE_CONTAINER_DROP_CONTENTS: number; + // @ts-ignore + public sourceType: number; + // @ts-ignore + public windowId: number; + // @ts-ignore + public unknown: number; + // @ts-ignore + public inventorySlot: number; + // @ts-ignore + public oldItem: cn.nukkit.item.Item; + // @ts-ignore + public newItem: cn.nukkit.item.Item; + // @ts-ignore + public read(packet: cn.nukkit.network.protocol.InventoryTransactionPacket): cn.nukkit.network.protocol.types.NetworkInventoryAction; + // @ts-ignore + public write(packet: cn.nukkit.network.protocol.InventoryTransactionPacket): void; + // @ts-ignore + public createInventoryAction(player: cn.nukkit.Player): cn.nukkit.inventory.transaction.action.InventoryAction; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.query.QueryHandler.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.query.QueryHandler.d.ts new file mode 100644 index 00000000..e0d17aee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.query.QueryHandler.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace query { + // @ts-ignore + class QueryHandler extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static HANDSHAKE: number; + // @ts-ignore + public static STATISTICS: number; + // @ts-ignore + public regenerateInfo(): void; + // @ts-ignore + public regenerateToken(): void; + // @ts-ignore + public static getTokenString(token: number, salt: string): string; + // @ts-ignore + public static getTokenString(token: string, salt: string): string; + // @ts-ignore + public handle(address: string, port: number, packet: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCON.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCON.d.ts new file mode 100644 index 00000000..8e7abaa1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCON.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace rcon { + // @ts-ignore + class RCON extends java.lang.Object { + // @ts-ignore + constructor(server: cn.nukkit.Server, password: string, address: string, port: number) + // @ts-ignore + public check(): void; + // @ts-ignore + public close(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONCommand.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONCommand.d.ts new file mode 100644 index 00000000..9b76f2ee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONCommand.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace rcon { + // @ts-ignore + class RCONCommand extends java.lang.Object { + // @ts-ignore + constructor(sender: java.nio.channels.SocketChannel, id: number, command: string) + // @ts-ignore + public getSender(): java.nio.channels.SocketChannel; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getCommand(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONPacket.d.ts new file mode 100644 index 00000000..ec544cf0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONPacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace rcon { + // @ts-ignore + class RCONPacket extends java.lang.Object { + // @ts-ignore + constructor(id: number, type: number, payload: number) + // @ts-ignore + constructor(buffer: java.nio.ByteBuffer) + // @ts-ignore + public toBuffer(): java.nio.ByteBuffer; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getType(): number; + // @ts-ignore + public getPayload(): number[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONServer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONServer.d.ts new file mode 100644 index 00000000..246a0e0e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.network.rcon.RCONServer.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace network { + namespace rcon { + // @ts-ignore + class RCONServer extends java.lang.Thread { + // @ts-ignore + constructor(address: string, port: number, password: string) + // @ts-ignore + public receive(): cn.nukkit.network.rcon.RCONCommand; + // @ts-ignore + public respond(channel: java.nio.channels.SocketChannel, id: number, response: string): void; + // @ts-ignore + public close(): void; + // @ts-ignore + public run(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.BanEntry.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.BanEntry.d.ts new file mode 100644 index 00000000..9c79af5b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.BanEntry.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @ts-ignore + class BanEntry extends java.lang.Object { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public static format: string; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getCreationDate(): java.util.Date; + // @ts-ignore + public setCreationDate(creationDate: java.util.Date): void; + // @ts-ignore + public getSource(): string; + // @ts-ignore + public setSource(source: string): void; + // @ts-ignore + public getExpirationDate(): java.util.Date; + // @ts-ignore + public setExpirationDate(expirationDate: java.util.Date): void; + // @ts-ignore + public hasExpired(): boolean; + // @ts-ignore + public getReason(): string; + // @ts-ignore + public setReason(reason: string): void; + // @ts-ignore + public getMap(): java.util.LinkedHashMap; + // @ts-ignore + public static fromMap(map: java.util.Map): cn.nukkit.permission.BanEntry; + // @ts-ignore + public getString(): string; + // @ts-ignore + public static fromString(str: string): cn.nukkit.permission.BanEntry; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.BanList.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.BanList.d.ts new file mode 100644 index 00000000..550a2456 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.BanList.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @ts-ignore + class BanList extends java.lang.Object { + // @ts-ignore + constructor(file: string) + // @ts-ignore + public isEnable(): boolean; + // @ts-ignore + public setEnable(enable: boolean): void; + // @ts-ignore + public getEntires(): java.util.LinkedHashMap; + // @ts-ignore + public isBanned(name: string): boolean; + // @ts-ignore + public add(entry: cn.nukkit.permission.BanEntry): void; + // @ts-ignore + public addBan(target: string): cn.nukkit.permission.BanEntry; + // @ts-ignore + public addBan(target: string, reason: string): cn.nukkit.permission.BanEntry; + // @ts-ignore + public addBan(target: string, reason: string, expireDate: java.util.Date): cn.nukkit.permission.BanEntry; + // @ts-ignore + public addBan(target: string, reason: string, expireDate: java.util.Date, source: string): cn.nukkit.permission.BanEntry; + // @ts-ignore + public remove(name: string): void; + // @ts-ignore + public removeExpired(): void; + // @ts-ignore + public load(): void; + // @ts-ignore + public save(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.DefaultPermissions.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.DefaultPermissions.d.ts new file mode 100644 index 00000000..0b7544b8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.DefaultPermissions.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @ts-ignore + abstract class DefaultPermissions extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static ROOT: string; + // @ts-ignore + public static registerPermission(perm: cn.nukkit.permission.Permission): cn.nukkit.permission.Permission; + // @ts-ignore + public static registerPermission(perm: cn.nukkit.permission.Permission, parent: cn.nukkit.permission.Permission): cn.nukkit.permission.Permission; + // @ts-ignore + public static registerCorePermissions(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.Permissible.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.Permissible.d.ts new file mode 100644 index 00000000..56819209 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.Permissible.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @ts-ignore + interface Permissible extends cn.nukkit.permission.ServerOperator { + // @ts-ignore + isPermissionSet(name: string): boolean; + // @ts-ignore + isPermissionSet(permission: cn.nukkit.permission.Permission): boolean; + // @ts-ignore + hasPermission(name: string): boolean; + // @ts-ignore + hasPermission(permission: cn.nukkit.permission.Permission): boolean; + // @ts-ignore + addAttachment(plugin: cn.nukkit.plugin.Plugin): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + addAttachment(plugin: cn.nukkit.plugin.Plugin, name: string): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + addAttachment(plugin: cn.nukkit.plugin.Plugin, name: string, value: java.lang.Boolean): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + removeAttachment(attachment: cn.nukkit.permission.PermissionAttachment): void; + // @ts-ignore + recalculatePermissions(): void; + // @ts-ignore + getEffectivePermissions(): java.util.Map; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissibleBase.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissibleBase.d.ts new file mode 100644 index 00000000..52531de2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissibleBase.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @ts-ignore + class PermissibleBase extends java.lang.Object implements cn.nukkit.permission.Permissible { + // @ts-ignore + constructor(opable: cn.nukkit.permission.ServerOperator) + // @ts-ignore + public isOp(): boolean; + // @ts-ignore + public setOp(value: boolean): void; + // @ts-ignore + public isPermissionSet(name: string): boolean; + // @ts-ignore + public isPermissionSet(permission: cn.nukkit.permission.Permission): boolean; + // @ts-ignore + public hasPermission(name: string): boolean; + // @ts-ignore + public hasPermission(permission: cn.nukkit.permission.Permission): boolean; + // @ts-ignore + public addAttachment(plugin: cn.nukkit.plugin.Plugin): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public addAttachment(plugin: cn.nukkit.plugin.Plugin, name: string): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public addAttachment(plugin: cn.nukkit.plugin.Plugin, name: string, value: java.lang.Boolean): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public removeAttachment(attachment: cn.nukkit.permission.PermissionAttachment): void; + // @ts-ignore + public recalculatePermissions(): void; + // @ts-ignore + public clearPermissions(): void; + // @ts-ignore + public getEffectivePermissions(): java.util.Map; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.Permission.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.Permission.d.ts new file mode 100644 index 00000000..e983fb4f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.Permission.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @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, description: string, defualtValue: string) + // @ts-ignore + constructor(name: string, description: string, defualtValue: string, children: java.util.Map) + // @ts-ignore + public static DEFAULT_OP: string; + // @ts-ignore + public static DEFAULT_NOT_OP: string; + // @ts-ignore + public static DEFAULT_TRUE: string; + // @ts-ignore + public static DEFAULT_FALSE: string; + // @ts-ignore + public static DEFAULT_PERMISSION: string; + // @ts-ignore + public static getByName(value: string): string; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getChildren(): java.util.Map; + // @ts-ignore + public getDefault(): string; + // @ts-ignore + public setDefault(value: string): void; + // @ts-ignore + public getDescription(): string; + // @ts-ignore + public setDescription(description: string): void; + // @ts-ignore + public getPermissibles(): java.util.Set; + // @ts-ignore + public recalculatePermissibles(): void; + // @ts-ignore + public addParent(permission: cn.nukkit.permission.Permission, value: boolean): void; + // @ts-ignore + public addParent(name: string, value: boolean): cn.nukkit.permission.Permission; + // @ts-ignore + public static loadPermissions(data: java.util.Map): java.util.List; + // @ts-ignore + public static loadPermissions(data: java.util.Map, defaultValue: string): java.util.List; + // @ts-ignore + public static loadPermission(name: string, data: java.util.Map): cn.nukkit.permission.Permission; + // @ts-ignore + public static loadPermission(name: string, data: java.util.Map, defaultValue: string): cn.nukkit.permission.Permission; + // @ts-ignore + public static loadPermission(name: string, data: java.util.Map, defaultValue: string, output: java.util.List): cn.nukkit.permission.Permission; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionAttachment.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionAttachment.d.ts new file mode 100644 index 00000000..34ab0e7f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionAttachment.d.ts @@ -0,0 +1,35 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @ts-ignore + class PermissionAttachment extends java.lang.Object { + // @ts-ignore + constructor(plugin: cn.nukkit.plugin.Plugin, permissible: cn.nukkit.permission.Permissible) + // @ts-ignore + public getPlugin(): cn.nukkit.plugin.Plugin; + // @ts-ignore + public setRemovalCallback(executor: cn.nukkit.permission.PermissionRemovedExecutor): void; + // @ts-ignore + public getRemovalCallback(): cn.nukkit.permission.PermissionRemovedExecutor; + // @ts-ignore + public getPermissions(): java.util.Map; + // @ts-ignore + public clearPermissions(): void; + // @ts-ignore + public setPermissions(permissions: java.util.Map): void; + // @ts-ignore + public unsetPermissions(permissions: java.util.List): void; + // @ts-ignore + public setPermission(permission: cn.nukkit.permission.Permission, value: boolean): void; + // @ts-ignore + public setPermission(name: string, value: boolean): void; + // @ts-ignore + public unsetPermission(permission: cn.nukkit.permission.Permission, value: boolean): void; + // @ts-ignore + public unsetPermission(name: string, value: boolean): void; + // @ts-ignore + public remove(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionAttachmentInfo.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionAttachmentInfo.d.ts new file mode 100644 index 00000000..f0c81e47 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionAttachmentInfo.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @ts-ignore + class PermissionAttachmentInfo extends java.lang.Object { + // @ts-ignore + constructor(permissible: cn.nukkit.permission.Permissible, permission: string, attachment: cn.nukkit.permission.PermissionAttachment, value: boolean) + // @ts-ignore + public getPermissible(): cn.nukkit.permission.Permissible; + // @ts-ignore + public getPermission(): string; + // @ts-ignore + public getAttachment(): cn.nukkit.permission.PermissionAttachment; + // @ts-ignore + public getValue(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionRemovedExecutor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionRemovedExecutor.d.ts new file mode 100644 index 00000000..9b085f93 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.PermissionRemovedExecutor.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @ts-ignore + interface PermissionRemovedExecutor { + // @ts-ignore + attachmentRemoved(attachment: cn.nukkit.permission.PermissionAttachment): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.permission.ServerOperator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.permission.ServerOperator.d.ts new file mode 100644 index 00000000..b560ed4b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.permission.ServerOperator.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace permission { + // @ts-ignore + interface ServerOperator { + /** + * 返回这个对象是不是服务器管理员。
+ * Returns if this object is an operator. + */ + // @ts-ignore + isOp(): boolean; + /** + * 把这个对象设置成服务器管理员。
+ * Sets this object to be an operator or not to be. + */ + // @ts-ignore + setOp(value: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.EventExecutor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.EventExecutor.d.ts new file mode 100644 index 00000000..199d277a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.EventExecutor.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + interface EventExecutor { + // @ts-ignore + execute(listener: cn.nukkit.event.Listener, event: cn.nukkit.event.Event): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.JavaPluginLoader.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.JavaPluginLoader.d.ts new file mode 100644 index 00000000..82b18536 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.JavaPluginLoader.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class JavaPluginLoader extends java.lang.Object implements cn.nukkit.plugin.PluginLoader { + // @ts-ignore + constructor(server: cn.nukkit.Server) + // @ts-ignore + public loadPlugin(file: java.io.File): cn.nukkit.plugin.Plugin; + // @ts-ignore + public loadPlugin(filename: string): cn.nukkit.plugin.Plugin; + // @ts-ignore + public getPluginDescription(file: java.io.File): cn.nukkit.plugin.PluginDescription; + // @ts-ignore + public getPluginDescription(filename: string): cn.nukkit.plugin.PluginDescription; + // @ts-ignore + public getPluginFilters(): java.util.regex.Pattern[]; + // @ts-ignore + public enablePlugin(plugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public disablePlugin(plugin: cn.nukkit.plugin.Plugin): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.Library.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.Library.d.ts new file mode 100644 index 00000000..983fe8ce --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.Library.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + interface Library { + // @ts-ignore + getGroupId(): string; + // @ts-ignore + getArtifactId(): string; + // @ts-ignore + getVersion(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.LibraryLoadException.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.LibraryLoadException.d.ts new file mode 100644 index 00000000..1cbfddd8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.LibraryLoadException.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class LibraryLoadException extends java.lang.RuntimeException { + // @ts-ignore + constructor(library: cn.nukkit.plugin.Library) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.LibraryLoader.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.LibraryLoader.d.ts new file mode 100644 index 00000000..d996c6ae --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.LibraryLoader.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class LibraryLoader extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static load(library: string): void; + // @ts-ignore + public static load(library: cn.nukkit.plugin.Library): void; + // @ts-ignore + public static getBaseFolder(): java.io.File; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.MethodEventExecutor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.MethodEventExecutor.d.ts new file mode 100644 index 00000000..7c72092b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.MethodEventExecutor.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class MethodEventExecutor extends java.lang.Object implements cn.nukkit.plugin.EventExecutor { + // @ts-ignore + constructor(method: java.lang.reflect.Method) + // @ts-ignore + public execute(listener: cn.nukkit.event.Listener, event: cn.nukkit.event.Event): void; + // @ts-ignore + public getMethod(): java.lang.reflect.Method; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.Plugin.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.Plugin.d.ts new file mode 100644 index 00000000..f91ae303 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.Plugin.d.ts @@ -0,0 +1,181 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + interface Plugin extends cn.nukkit.command.CommandExecutor { + /** + * 在一个Nukkit插件被加载时调用的方法。这个方法会在{@link Plugin#onEnable()}之前调用。
+ * Called when a Nukkit plugin is loaded, before {@link Plugin#onEnable()} . + *

应该填写加载插件时需要作出的动作。例如:初始化数组、初始化数据库连接。
+ * Use this to init a Nukkit plugin, such as init arrays or init database connections.

+ */ + // @ts-ignore + onLoad(): void; + /** + * 在一个Nukkit插件被启用时调用的方法。
+ * Called when a Nukkit plugin is enabled. + *

应该填写插件启用时需要作出的动作。例如:读取配置文件、读取资源、连接数据库。
+ * Use this to open config files, open resources, connect databases.

+ *

注意到可能存在的插件管理器插件,这个方法在插件多次重启时可能被调用多次。
+ * Notes that there may be plugin manager plugins, + * this method can be called many times when a plugin is restarted many times.

+ */ + // @ts-ignore + onEnable(): void; + /** + * 返回这个Nukkit插件是否已启用。
+ * Whether this Nukkit plugin is enabled. + */ + // @ts-ignore + isEnabled(): boolean; + /** + * 在一个Nukkit插件被停用时调用的方法。
+ * Called when a Nukkit plugin is disabled. + *

应该填写插件停用时需要作出的动作。例如:关闭数据库,断开资源。
+ * Use this to free open things and finish actions, + * such as disconnecting databases and close resources.

+ *

注意到可能存在的插件管理器插件,这个方法在插件多次重启时可能被调用多次。
+ * Notes that there may be plugin manager plugins, + * this method can be called many times when a plugin is restarted many times.

+ */ + // @ts-ignore + onDisable(): void; + /** + * 返回这个Nukkit插件是否已停用。
+ * Whether this Nukkit plugin is disabled. + */ + // @ts-ignore + isDisabled(): boolean; + /** + * 返回这个Nukkit插件的数据文件夹。
+ * The data folder of this Nukkit plugin. + *

一般情况下,数据文件夹名字与插件名字相同,而且都放在nukkit安装目录下的plugins文件夹里。
+ * Under normal circumstances, the data folder has the same name with the plugin, + * and is placed in the 'plugins' folder inside the nukkit installation directory.

+ */ + // @ts-ignore + getDataFolder(): java.io.File; + /** + * 返回描述这个Nukkit插件的{@link PluginDescription}对象。
+ * The description this Nukkit plugin as a {@link PluginDescription} object. + *

对于jar格式的Nukkit插件,插件的描述在plugin.yml文件内定义。
+ * For jar-packed Nukkit plugins, the description is defined in the 'plugin.yml' file.

+ */ + // @ts-ignore + getDescription(): cn.nukkit.plugin.PluginDescription; + /** + * 读取这个插件特定的资源文件,并返回为{@code InputStream}对象。
+ * Reads a resource of this plugin, and returns as an {@code InputStream} object. + *

对于jar格式的Nukkit插件,Nukkit会在jar包内的资源文件夹(一般为resources文件夹)寻找资源文件。
+ * For jar-packed Nukkit plugins, Nukkit will look for your resource file in the resources folder, + * which is normally named 'resources' and placed in plugin jar file.

+ *

当你需要把一个文件的所有内容读取为字符串,可以使用{@link cn.nukkit.utils.Utils#readFile}函数, + * 来从{@code InputStream}读取所有内容为字符串。例如:
+ * When you need to read the whole file content as a String, you can use {@link cn.nukkit.utils.Utils#readFile} + * to read from a {@code InputStream} and get whole content as a String. For example:

+ *

String string = Utils.readFile(this.getResource("string.txt"));

+ */ + // @ts-ignore + getResource(filename: string): java.io.InputStream; + /** + * 保存这个Nukkit插件的资源。
+ * Saves the resource of this plugin. + *

对于jar格式的Nukkit插件,Nukkit会在jar包内的资源文件夹寻找资源文件,然后保存到数据文件夹。
+ * For jar-packed Nukkit plugins, Nukkit will look for your resource file in the resources folder, + * which is normally named 'resources' and placed in plugin jar file, and copy it into data folder.

+ *

这个函数通常用来在插件被加载(load)时,保存默认的资源文件。这样插件在启用(enable)时不会错误读取空的资源文件, + * 用户也无需从开发者处手动下载资源文件后再使用插件。
+ * This is usually used to save the default plugin resource when the plugin is LOADED .If this is used, + * it won't happen to load an empty resource when plugin is ENABLED, and plugin users are not required to get + * default resources from the developer and place it manually.

+ *

如果需要替换已存在的资源文件,建议使用{@link cn.nukkit.plugin.Plugin#saveResource(String, boolean)}
+ * If you need to REPLACE an existing resource file, it's recommended + * to use {@link cn.nukkit.plugin.Plugin#saveResource(String, boolean)}.

+ */ + // @ts-ignore + saveResource(filename: string): boolean; + /** + * 保存或替换这个Nukkit插件的资源。
+ * Saves or replaces the resource of this plugin. + *

对于jar格式的Nukkit插件,Nukkit会在jar包内的资源文件夹寻找资源文件,然后保存到数据文件夹。
+ * For jar-packed Nukkit plugins, Nukkit will look for your resource file in the resources folder, + * which is normally named 'resources' and placed in plugin jar file, and copy it into data folder.

+ *

如果需要保存默认的资源文件,建议使用{@link cn.nukkit.plugin.Plugin#saveResource(String)}
+ * If you need to SAVE DEFAULT resource file, it's recommended + * to use {@link cn.nukkit.plugin.Plugin#saveResource(String)}.

+ */ + // @ts-ignore + saveResource(filename: string, replace: boolean): boolean; + // @ts-ignore + saveResource(filename: string, outputName: string, replace: boolean): boolean; + /** + * 返回这个Nukkit插件配置文件的{@link cn.nukkit.utils.Config}对象。
+ * The config file this Nukkit plugin as a {@link cn.nukkit.utils.Config} object. + *

一般地,插件的配置保存在数据文件夹下的config.yml文件。
+ * Normally, the plugin config is saved in the 'config.yml' file in its data folder.

+ */ + // @ts-ignore + getConfig(): cn.nukkit.utils.Config; + /** + * 保存这个Nukkit插件的配置文件。
+ * Saves the plugin config. + */ + // @ts-ignore + saveConfig(): void; + /** + * 保存这个Nukkit插件的默认配置文件。
+ * Saves the DEFAULT plugin config. + *

执行这个函数时,Nukkit会在资源文件夹内寻找开发者配置好的默认配置文件config.yml,然后保存在数据文件夹。 + * 如果数据文件夹已经有一个config.yml文件,Nukkit不会替换这个文件。
+ * When this is used, Nukkit will look for the default 'config.yml' file which is configured by plugin developer + * and save it to the data folder. If a config.yml file exists in the data folder, Nukkit won't replace it.

+ *

这个函数通常用来在插件被加载(load)时,保存默认的配置文件。这样插件在启用(enable)时不会错误读取空的配置文件, + * 用户也无需从开发者处手动下载配置文件保存后再使用插件。
+ * This is usually used to save the default plugin config when the plugin is LOADED .If this is used, + * it won't happen to load an empty config when plugin is ENABLED, and plugin users are not required to get + * default config from the developer and place it manually.

+ */ + // @ts-ignore + saveDefaultConfig(): void; + /** + * 重新读取这个Nukkit插件的默认配置文件。
+ * Reloads the plugin config. + *

执行这个函数时,Nukkit会从数据文件夹中的config.yml文件重新加载配置。 + * 这样用户在调整插件配置后,无需重启就可以马上使用新的配置。
+ * By using this, Nukkit will reload the config from 'config.yml' file, then it isn't necessary to restart + * for plugin user who changes the config and needs to use new config at once.

+ */ + // @ts-ignore + reloadConfig(): void; + /** + * 返回运行这个插件的服务器的{@link cn.nukkit.Server}对象。
+ * Gets the server which is running this plugin, and returns as a {@link cn.nukkit.Server} object. + */ + // @ts-ignore + getServer(): cn.nukkit.Server; + /** + * 返回这个插件的名字。
+ * Returns the name of this plugin. + *

Nukkit会从已经读取的插件描述中获取插件的名字。
+ * Nukkit will read plugin name from plugin description.

+ */ + // @ts-ignore + getName(): string; + /** + * 返回这个插件的日志记录器为{@link cn.nukkit.plugin.PluginLogger}对象。
+ * Returns the logger of this plugin as a {@link cn.nukkit.plugin.PluginLogger} object. + *

使用日志记录器,你可以在控制台和日志文件输出信息。
+ * You can use a plugin logger to output messages to the console and log file.

+ */ + // @ts-ignore + getLogger(): cn.nukkit.plugin.PluginLogger; + /** + * 返回这个插件的加载器为{@link cn.nukkit.plugin.PluginLoader}对象。
+ * Returns the loader of this plugin as a {@link cn.nukkit.plugin.PluginLoader} object. + */ + // @ts-ignore + getPluginLoader(): cn.nukkit.plugin.PluginLoader; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginBase.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginBase.d.ts new file mode 100644 index 00000000..1f975fa4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginBase.d.ts @@ -0,0 +1,105 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + abstract class PluginBase extends java.lang.Object implements cn.nukkit.plugin.Plugin { + // @ts-ignore + constructor() + // @ts-ignore + public onLoad(): void; + // @ts-ignore + public onEnable(): void; + // @ts-ignore + public onDisable(): void; + // @ts-ignore + public isEnabled(): boolean; + /** + * 加载这个插件。
+ * Enables this plugin. + *

+ *

如果你需要卸载这个插件,建议使用{@link #setEnabled(boolean)}
+ * If you need to disable this plugin, it's recommended to use {@link #setEnabled(boolean)}

+ */ + // @ts-ignore + public setEnabled(): void; + /** + * 加载或卸载这个插件。
+ * Enables or disables this plugin. + *

+ *

插件管理器插件常常使用这个方法。
+ * It's normally used by a plugin manager plugin to manage plugins.

+ */ + // @ts-ignore + public setEnabled(value: boolean): void; + // @ts-ignore + public isDisabled(): boolean; + // @ts-ignore + public getDataFolder(): java.io.File; + // @ts-ignore + public getDescription(): cn.nukkit.plugin.PluginDescription; + /** + * 初始化这个插件。
+ * Initialize the plugin. + *

+ *

这个方法会在加载(load)之前被插件加载器调用,初始化关于插件的一些事项,不能被重写。
+ * Called by plugin loader before load, and initialize the plugin. Can't be overridden.

+ */ + // @ts-ignore + public init(loader: cn.nukkit.plugin.PluginLoader, server: cn.nukkit.Server, description: cn.nukkit.plugin.PluginDescription, dataFolder: java.io.File, file: java.io.File): void; + // @ts-ignore + public getLogger(): cn.nukkit.plugin.PluginLogger; + /** + * 返回这个插件是否已经初始化。
+ * Returns if this plugin is initialized. + */ + // @ts-ignore + public isInitialized(): boolean; + /** + * TODO: FINISH JAVADOC + */ + // @ts-ignore + public getCommand(name: string): cn.nukkit.command.PluginIdentifiableCommand; + // @ts-ignore + public onCommand(sender: cn.nukkit.command.CommandSender, command: cn.nukkit.command.Command, label: string, args: string): boolean; + // @ts-ignore + public getResource(filename: string): java.io.InputStream; + // @ts-ignore + public saveResource(filename: string): boolean; + // @ts-ignore + public saveResource(filename: string, replace: boolean): boolean; + // @ts-ignore + public saveResource(filename: string, outputName: string, replace: boolean): boolean; + // @ts-ignore + public getConfig(): cn.nukkit.utils.Config; + // @ts-ignore + public saveConfig(): void; + // @ts-ignore + public saveDefaultConfig(): void; + // @ts-ignore + public reloadConfig(): void; + // @ts-ignore + public getServer(): cn.nukkit.Server; + // @ts-ignore + public getName(): string; + /** + * 返回这个插件完整的名字。
+ * Returns the full name of this plugin. + *

+ *

一个插件完整的名字由{@code 名字+" v"+版本号}组成。比如:
+ * A full name of a plugin is composed by {@code name+" v"+version}.for example:

+ *

{@code HelloWorld v1.0.0}

+ */ + // @ts-ignore + public getFullName(): string; + /** + * 返回这个插件的文件{@code File}对象。对于jar格式的插件,就是jar文件本身。
+ * Returns the {@code File} object of this plugin itself. For jar-packed plugins, it is the jar file itself. + */ + // @ts-ignore + protected getFile(): java.io.File; + // @ts-ignore + public getPluginLoader(): cn.nukkit.plugin.PluginLoader; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginClassLoader.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginClassLoader.d.ts new file mode 100644 index 00000000..b0de1ec7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginClassLoader.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class PluginClassLoader extends java.net.URLClassLoader { + // @ts-ignore + constructor(loader: cn.nukkit.plugin.JavaPluginLoader, parent: java.lang.ClassLoader, file: java.io.File) + // @ts-ignore + protected findClass(name: string): java.lang.Class; + // @ts-ignore + protected findClass(name: string, checkGlobal: boolean): java.lang.Class; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginDescription.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginDescription.d.ts new file mode 100644 index 00000000..8e8af339 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginDescription.d.ts @@ -0,0 +1,126 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class PluginDescription extends java.lang.Object { + // @ts-ignore + constructor(yamlMap: java.util.Map) + // @ts-ignore + constructor(yamlString: string) + /** + * 返回这个插件完整的名字。
+ * Returns the full name of this plugin. + *

一个插件完整的名字由{@code 名字+" v"+版本号}组成。比如:
+ * A full name of a plugin is composed by {@code name+" v"+version}.for example:

+ *

{@code HelloWorld v1.0.0}

+ */ + // @ts-ignore + public getFullName(): string; + /** + * 返回这个插件支持的Nukkit API版本列表。
+ * Returns all Nukkit API versions this plugin supports. + */ + // @ts-ignore + public getCompatibleAPIs(): java.util.List; + /** + * 返回这个插件的作者列表。
+ * Returns all the authors of this plugin. + */ + // @ts-ignore + public getAuthors(): java.util.List; + /** + * 返回这个插件的信息前缀。
+ * Returns the message title of this plugin. + *

插件的信息前缀在记录器记录信息时,会作为信息头衔使用。如果没有定义记录器,会使用插件的名字作为信息头衔。
+ * When a PluginLogger logs, the message title is used as the prefix of message. If prefix is undefined, + * the plugin name will be used instead.

+ */ + // @ts-ignore + public getPrefix(): string; + /** + * 返回这个插件定义的命令列表。
+ * Returns all the defined commands of this plugin. + */ + // @ts-ignore + public getCommands(): java.util.Map; + /** + * 返回这个插件所依赖的插件名字。
+ * The names of the plugins what is depended by this plugin. + * Nukkit插件的依赖有这些注意事项:
Here are some note for Nukkit plugin depending: + * + *

举个例子,如果A插件依赖于B插件,在没有安装B插件而安装A插件的情况下,Nukkit会阻止A插件的加载。 + * 只有在安装B插件前安装了它所依赖的A插件,Nukkit才会允许加载B插件。
+ * For example, there is a Plugin A which relies on Plugin B. If you installed A without installing B, + * Nukkit won't load A because its dependency B is lost. Only when B is installed, A will be loaded + * by Nukkit.

+ */ + // @ts-ignore + public getDepend(): java.util.List; + /** + * 返回这个插件的描述文字。
+ * Returns the description text of this plugin. + */ + // @ts-ignore + public getDescription(): string; + /** + * TODO finish javadoc + */ + // @ts-ignore + public getLoadBefore(): java.util.List; + /** + * 返回这个插件的主类名。
+ * Returns the main class name of this plugin. + *

一个插件的加载都是从主类开始的。主类的名字在插件的配置文件中定义后可以通过这个函数返回。一个返回值例子:
+ * The load action of a Nukkit plugin begins from main class. The name of main class should be defined + * in the plugin configuration, and it can be returned by this function. An example for return value:
+ * {@code "com.example.ExamplePlugin"}

+ */ + // @ts-ignore + public getMain(): string; + /** + * 返回这个插件的名字。
+ * Returns the name of this plugin. + */ + // @ts-ignore + public getName(): string; + /** + * 返回这个插件加载的顺序,即插件应该在什么时候加载。
+ * Returns the order the plugin loads, or when the plugin is loaded. + */ + // @ts-ignore + public getOrder(): cn.nukkit.plugin.PluginLoadOrder; + /** + * 返回这个插件定义的权限列表。
+ * Returns all the defined permissions of this plugin. + */ + // @ts-ignore + public getPermissions(): java.util.List; + /** + * TODO finish javadoc + */ + // @ts-ignore + public getSoftDepend(): java.util.List; + /** + * 返回这个插件的版本号。
+ * Returns the version string of this plugin. + */ + // @ts-ignore + public getVersion(): string; + /** + * 返回这个插件的网站。
+ * Returns the website of this plugin. + */ + // @ts-ignore + public getWebsite(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLoadOrder.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLoadOrder.d.ts new file mode 100644 index 00000000..fd98a935 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLoadOrder.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class PluginLoadOrder extends java.lang.Enum { + // @ts-ignore + public static STARTUP: cn.nukkit.plugin.PluginLoadOrder; + // @ts-ignore + public static POSTWORLD: cn.nukkit.plugin.PluginLoadOrder; + // @ts-ignore + public static values(): cn.nukkit.plugin.PluginLoadOrder[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.plugin.PluginLoadOrder; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLoader.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLoader.d.ts new file mode 100644 index 00000000..8ba2a356 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLoader.d.ts @@ -0,0 +1,84 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + interface PluginLoader { + /** + * 通过文件名字的字符串,来加载和初始化一个插件。
+ * Loads and initializes a plugin by its file name. + *

这个方法应该设置好插件的相关属性。比如,插件所在的服务器对象,插件的加载器对象,插件的描述对象,插件的数据文件夹。
+ * Properties for loaded plugin should be set in this method. Such as, the {@code Server} object for which this + * plugin is running in, the {@code PluginLoader} object for its loader, and the {@code File} object for its + * data folder.

+ *

如果插件加载失败,这个方法应该返回{@code null},或者抛出异常。
+ * If the plugin loader does not load this plugin successfully, a {@code null} should be returned, + * or an exception should be thrown.

+ */ + // @ts-ignore + loadPlugin(filename: string): cn.nukkit.plugin.Plugin; + /** + * 通过插件的 {@code File}对象,来加载和初始化一个插件。
+ * Loads and initializes a plugin by a {@code File} object describes the file. + *

这个方法应该设置好插件的相关属性。比如,插件所在的服务器对象,插件的加载器对象,插件的描述对象,插件的数据文件夹。
+ * Properties for loaded plugin should be set in this method. Such as, the {@code Server} object for which this + * plugin is running in, the {@code PluginLoader} object for its loader, and the {@code File} object for its + * data folder.

+ *

如果插件加载失败,这个方法应该返回{@code null},或者抛出异常。
+ * If the plugin loader does not load this plugin successfully, a {@code null} should be returned, + * or an exception should be thrown.

+ */ + // @ts-ignore + loadPlugin(file: java.io.File): cn.nukkit.plugin.Plugin; + /** + * 通过插件文件名的字符串,来获得描述这个插件的 {@code PluginDescription}对象。
+ * Gets a {@code PluginDescription} object describes the plugin by its file name. + *

如果插件的描述对象获取失败,这个方法应该返回{@code null}。
+ * If the plugin loader does not get its description successfully, a {@code null} should be returned.

+ */ + // @ts-ignore + getPluginDescription(filename: string): cn.nukkit.plugin.PluginDescription; + /** + * 通过插件的 {@code File}对象,来获得描述这个插件的 {@code PluginDescription}对象。
+ * Gets a {@code PluginDescription} object describes the plugin by a {@code File} object describes the plugin file. + *

如果插件的描述对象获取失败,这个方法应该返回{@code null}。
+ * If the plugin loader does not get its description successfully, a {@code null} should be returned.

+ */ + // @ts-ignore + getPluginDescription(file: java.io.File): cn.nukkit.plugin.PluginDescription; + /** + * 返回这个插件加载器支持的文件类型。
+ * Returns the file types this plugin loader supports. + *

在Nukkit读取所有插件时,插件管理器会查找所有已经安装的插件加载器,通过识别这个插件是否满足下面的条件, + * 来选择对应的插件加载器。
+ * When Nukkit is trying to load all its plugins, the plugin manager will look for all installed plugin loader, + * and choose the correct one by checking if this plugin matches the filters given below.

+ *

举个例子,识别这个文件是否以jar为扩展名,它的正则表达式是:
+ * For example, to check if this file is has a "jar" extension, the regular expression should be:
+ * {@code ^.+\\.jar$}
+ * 所以只读取jar扩展名的插件加载器,这个函数应该写成:
+ * So, for a jar-extension-only file plugin loader, this method should be: + *

+ *
 {@code           @Override}
+                 * public Pattern[] getPluginFilters() {
+                 * return new Pattern[]{Pattern.compile("^.+\\.jar$")};
+                 * }
+                 * 
+ */ + // @ts-ignore + getPluginFilters(): java.util.regex.Pattern[]; + /** + * 启用一个插件。
+ * Enables a plugin. + */ + // @ts-ignore + enablePlugin(plugin: cn.nukkit.plugin.Plugin): void; + /** + * 停用一个插件。
+ * Disables a plugin. + */ + // @ts-ignore + disablePlugin(plugin: cn.nukkit.plugin.Plugin): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLogger.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLogger.d.ts new file mode 100644 index 00000000..5fcd4cf0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginLogger.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class PluginLogger extends java.lang.Object implements cn.nukkit.utils.Logger { + // @ts-ignore + constructor(context: cn.nukkit.plugin.Plugin) + // @ts-ignore + public emergency(message: string): void; + // @ts-ignore + public alert(message: string): void; + // @ts-ignore + public critical(message: string): void; + // @ts-ignore + public error(message: string): void; + // @ts-ignore + public warning(message: string): void; + // @ts-ignore + public notice(message: string): void; + // @ts-ignore + public info(message: string): void; + // @ts-ignore + public debug(message: string): void; + // @ts-ignore + public log(level: cn.nukkit.utils.LogLevel, message: string): void; + // @ts-ignore + public emergency(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public alert(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public critical(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public error(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public warning(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public notice(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public info(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public debug(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public log(level: cn.nukkit.utils.LogLevel, message: string, t: java.lang.Throwable): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginManager.d.ts new file mode 100644 index 00000000..5c968b41 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.PluginManager.d.ts @@ -0,0 +1,97 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class PluginManager extends java.lang.Object { + // @ts-ignore + constructor(server: cn.nukkit.Server, commandMap: cn.nukkit.command.SimpleCommandMap) + // @ts-ignore + protected plugins: java.util.Map; + // @ts-ignore + protected permissions: java.util.Map; + // @ts-ignore + protected defaultPerms: java.util.Map; + // @ts-ignore + protected defaultPermsOp: java.util.Map; + // @ts-ignore + protected permSubs: java.util.Map; + // @ts-ignore + protected defSubs: java.util.Set; + // @ts-ignore + protected defSubsOp: java.util.Set; + // @ts-ignore + protected fileAssociations: java.util.Map; + // @ts-ignore + public getPlugin(name: string): cn.nukkit.plugin.Plugin; + // @ts-ignore + public registerInterface(loaderClass: java.lang.Class): boolean; + // @ts-ignore + public getPlugins(): java.util.Map; + // @ts-ignore + public loadPlugin(path: string): cn.nukkit.plugin.Plugin; + // @ts-ignore + public loadPlugin(file: java.io.File): cn.nukkit.plugin.Plugin; + // @ts-ignore + public loadPlugin(path: string, loaders: java.util.Map): cn.nukkit.plugin.Plugin; + // @ts-ignore + public loadPlugin(file: java.io.File, loaders: java.util.Map): cn.nukkit.plugin.Plugin; + // @ts-ignore + public loadPlugins(dictionary: string): java.util.Map; + // @ts-ignore + public loadPlugins(dictionary: java.io.File): java.util.Map; + // @ts-ignore + public loadPlugins(dictionary: string, newLoaders: java.util.List): java.util.Map; + // @ts-ignore + public loadPlugins(dictionary: java.io.File, newLoaders: java.util.List): java.util.Map; + // @ts-ignore + public loadPlugins(dictionary: java.io.File, newLoaders: java.util.List, includeDir: boolean): java.util.Map; + // @ts-ignore + public getPermission(name: string): cn.nukkit.permission.Permission; + // @ts-ignore + public addPermission(permission: cn.nukkit.permission.Permission): boolean; + // @ts-ignore + public removePermission(name: string): void; + // @ts-ignore + public removePermission(permission: cn.nukkit.permission.Permission): void; + // @ts-ignore + public getDefaultPermissions(op: boolean): java.util.Map; + // @ts-ignore + public recalculatePermissionDefaults(permission: cn.nukkit.permission.Permission): void; + // @ts-ignore + public subscribeToPermission(permission: string, permissible: cn.nukkit.permission.Permissible): void; + // @ts-ignore + public unsubscribeFromPermission(permission: string, permissible: cn.nukkit.permission.Permissible): void; + // @ts-ignore + public getPermissionSubscriptions(permission: string): java.util.Set; + // @ts-ignore + public subscribeToDefaultPerms(op: boolean, permissible: cn.nukkit.permission.Permissible): void; + // @ts-ignore + public unsubscribeFromDefaultPerms(op: boolean, permissible: cn.nukkit.permission.Permissible): void; + // @ts-ignore + public getDefaultPermSubscriptions(op: boolean): java.util.Set; + // @ts-ignore + public getPermissions(): java.util.Map; + // @ts-ignore + public isPluginEnabled(plugin: cn.nukkit.plugin.Plugin): boolean; + // @ts-ignore + public enablePlugin(plugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + protected parseYamlCommands(plugin: cn.nukkit.plugin.Plugin): java.util.List; + // @ts-ignore + public disablePlugins(): void; + // @ts-ignore + public disablePlugin(plugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public clearPlugins(): void; + // @ts-ignore + public callEvent(event: cn.nukkit.event.Event): void; + // @ts-ignore + public registerEvents(listener: cn.nukkit.event.Listener, plugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public registerEvent(event: java.lang.Class, listener: cn.nukkit.event.Listener, priority: cn.nukkit.event.EventPriority, executor: cn.nukkit.plugin.EventExecutor, plugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public registerEvent(event: java.lang.Class, listener: cn.nukkit.event.Listener, priority: cn.nukkit.event.EventPriority, executor: cn.nukkit.plugin.EventExecutor, plugin: cn.nukkit.plugin.Plugin, ignoreCancelled: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.RegisteredListener.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.RegisteredListener.d.ts new file mode 100644 index 00000000..305f73bb --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.RegisteredListener.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + // @ts-ignore + class RegisteredListener extends java.lang.Object { + // @ts-ignore + constructor(listener: cn.nukkit.event.Listener, executor: cn.nukkit.plugin.EventExecutor, priority: cn.nukkit.event.EventPriority, plugin: cn.nukkit.plugin.Plugin, ignoreCancelled: boolean, timing: any /*co.aikar.timings.Timing*/) + // @ts-ignore + public getListener(): cn.nukkit.event.Listener; + // @ts-ignore + public getPlugin(): cn.nukkit.plugin.Plugin; + // @ts-ignore + public getPriority(): cn.nukkit.event.EventPriority; + // @ts-ignore + public callEvent(event: cn.nukkit.event.Event): void; + // @ts-ignore + public isIgnoringCancelled(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.NKServiceManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.NKServiceManager.d.ts new file mode 100644 index 00000000..3bbe6563 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.NKServiceManager.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + namespace service { + // @ts-ignore + class NKServiceManager extends java.lang.Object implements cn.nukkit.plugin.service.ServiceManager { + // @ts-ignore + constructor() + // @ts-ignore + public register(service: java.lang.Class, provider: java.lang.Object, plugin: cn.nukkit.plugin.Plugin, priority: cn.nukkit.plugin.service.ServicePriority): boolean; + // @ts-ignore + protected provide(service: java.lang.Class, instance: java.lang.Object, plugin: cn.nukkit.plugin.Plugin, priority: cn.nukkit.plugin.service.ServicePriority): boolean; + // @ts-ignore + public cancel(plugin: cn.nukkit.plugin.Plugin): java.util.List; + // @ts-ignore + public cancel(service: java.lang.Class, provider: java.lang.Object): cn.nukkit.plugin.service.RegisteredServiceProvider; + // @ts-ignore + public getProvider(service: java.lang.Class): cn.nukkit.plugin.service.RegisteredServiceProvider; + // @ts-ignore + public getKnownService(): java.util.List; + // @ts-ignore + public getRegistrations(plugin: cn.nukkit.plugin.Plugin): java.util.List; + // @ts-ignore + public getRegistrations(service: java.lang.Class): java.util.List; + // @ts-ignore + public isProvidedFor(service: java.lang.Class): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.RegisteredServiceProvider.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.RegisteredServiceProvider.d.ts new file mode 100644 index 00000000..8cb2a79e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.RegisteredServiceProvider.d.ts @@ -0,0 +1,34 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + namespace service { + // @ts-ignore + class RegisteredServiceProvider extends java.lang.Object { + /** + * Return the provided service. + */ + // @ts-ignore + public getService(): java.lang.Class; + /** + * Return the plugin provide this service. + */ + // @ts-ignore + public getPlugin(): cn.nukkit.plugin.Plugin; + /** + * Return the service provider. + */ + // @ts-ignore + public getProvider(): java.lang.Object; + // @ts-ignore + public getPriority(): cn.nukkit.plugin.service.ServicePriority; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public compareTo(other: cn.nukkit.plugin.service.RegisteredServiceProvider): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.ServiceManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.ServiceManager.d.ts new file mode 100644 index 00000000..5d18df5f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.ServiceManager.d.ts @@ -0,0 +1,42 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + namespace service { + // @ts-ignore + interface ServiceManager { + /** + * Register an object as a service's provider. + */ + // @ts-ignore + register(service: java.lang.Class, provider: java.lang.Object, plugin: cn.nukkit.plugin.Plugin, priority: cn.nukkit.plugin.service.ServicePriority): boolean; + /** + * Cancel service's provider(s) offered this plugin. + */ + // @ts-ignore + cancel(plugin: cn.nukkit.plugin.Plugin): java.util.List; + /** + * Cancel a service's provider. + */ + // @ts-ignore + cancel(service: java.lang.Class, provider: java.lang.Object): cn.nukkit.plugin.service.RegisteredServiceProvider; + /** + * Return the service's provider. + */ + // @ts-ignore + getProvider(service: java.lang.Class): cn.nukkit.plugin.service.RegisteredServiceProvider; + /** + * Return the known service(s). + */ + // @ts-ignore + getKnownService(): java.util.List; + // @ts-ignore + getRegistrations(plugin: cn.nukkit.plugin.Plugin): java.util.List; + // @ts-ignore + getRegistrations(service: java.lang.Class): java.util.List; + // @ts-ignore + isProvidedFor(service: java.lang.Class): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.ServicePriority.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.ServicePriority.d.ts new file mode 100644 index 00000000..2339487e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.plugin.service.ServicePriority.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace plugin { + namespace service { + // @ts-ignore + class ServicePriority extends java.lang.Enum { + // @ts-ignore + public static LOWEST: cn.nukkit.plugin.service.ServicePriority; + // @ts-ignore + public static LOWER: cn.nukkit.plugin.service.ServicePriority; + // @ts-ignore + public static NORMAL: cn.nukkit.plugin.service.ServicePriority; + // @ts-ignore + public static HIGHER: cn.nukkit.plugin.service.ServicePriority; + // @ts-ignore + public static HIGHEST: cn.nukkit.plugin.service.ServicePriority; + // @ts-ignore + public static values(): cn.nukkit.plugin.service.ServicePriority[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.plugin.service.ServicePriority; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.potion.Effect.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.potion.Effect.d.ts new file mode 100644 index 00000000..732c844b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.potion.Effect.d.ts @@ -0,0 +1,133 @@ +declare namespace cn { + namespace nukkit { + namespace potion { + // @ts-ignore + class Effect extends java.lang.Object { + // @ts-ignore + constructor(id: number, name: string, r: number, g: number, b: number) + // @ts-ignore + constructor(id: number, name: string, r: number, g: number, b: number, isBad: boolean) + // @ts-ignore + public static SPEED: number; + // @ts-ignore + public static SLOWNESS: number; + // @ts-ignore + public static HASTE: number; + // @ts-ignore + public static SWIFTNESS: number; + // @ts-ignore + public static FATIGUE: number; + // @ts-ignore + public static MINING_FATIGUE: number; + // @ts-ignore + public static STRENGTH: number; + // @ts-ignore + public static HEALING: number; + // @ts-ignore + public static HARMING: number; + // @ts-ignore + public static JUMP: number; + // @ts-ignore + public static NAUSEA: number; + // @ts-ignore + public static CONFUSION: number; + // @ts-ignore + public static REGENERATION: number; + // @ts-ignore + public static DAMAGE_RESISTANCE: number; + // @ts-ignore + public static FIRE_RESISTANCE: number; + // @ts-ignore + public static WATER_BREATHING: number; + // @ts-ignore + public static INVISIBILITY: number; + // @ts-ignore + public static BLINDNESS: number; + // @ts-ignore + public static NIGHT_VISION: number; + // @ts-ignore + public static HUNGER: number; + // @ts-ignore + public static WEAKNESS: number; + // @ts-ignore + public static POISON: number; + // @ts-ignore + public static WITHER: number; + // @ts-ignore + public static HEALTH_BOOST: number; + // @ts-ignore + public static ABSORPTION: number; + // @ts-ignore + public static SATURATION: number; + // @ts-ignore + public static LEVITATION: number; + // @ts-ignore + public static FATAL_POISON: number; + // @ts-ignore + public static COUNDIT_POWER: number; + // @ts-ignore + public static SLOW_FALLING: number; + // @ts-ignore + protected static effects: cn.nukkit.potion.Effect[]; + // @ts-ignore + protected id: number; + // @ts-ignore + protected name: string; + // @ts-ignore + protected duration: number; + // @ts-ignore + protected amplifier: number; + // @ts-ignore + protected color: number; + // @ts-ignore + protected show: boolean; + // @ts-ignore + protected ambient: boolean; + // @ts-ignore + protected bad: boolean; + // @ts-ignore + public static init(): void; + // @ts-ignore + public static getEffect(id: number): cn.nukkit.potion.Effect; + // @ts-ignore + public static getEffectByName(name: string): cn.nukkit.potion.Effect; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getId(): number; + // @ts-ignore + public setDuration(ticks: number): cn.nukkit.potion.Effect; + // @ts-ignore + public getDuration(): number; + // @ts-ignore + public isVisible(): boolean; + // @ts-ignore + public setVisible(visible: boolean): cn.nukkit.potion.Effect; + // @ts-ignore + public getAmplifier(): number; + // @ts-ignore + public setAmplifier(amplifier: number): cn.nukkit.potion.Effect; + // @ts-ignore + public isAmbient(): boolean; + // @ts-ignore + public setAmbient(ambient: boolean): cn.nukkit.potion.Effect; + // @ts-ignore + public isBad(): boolean; + // @ts-ignore + public canTick(): boolean; + // @ts-ignore + public applyEffect(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public getColor(): number[]; + // @ts-ignore + public setColor(r: number, g: number, b: number): void; + // @ts-ignore + public add(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public remove(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public clone(): cn.nukkit.potion.Effect; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.potion.InstantEffect.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.potion.InstantEffect.d.ts new file mode 100644 index 00000000..1143a70a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.potion.InstantEffect.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace potion { + // @ts-ignore + class InstantEffect extends cn.nukkit.potion.Effect { + // @ts-ignore + constructor(id: number, name: string, r: number, g: number, b: number) + // @ts-ignore + constructor(id: number, name: string, r: number, g: number, b: number, isBad: boolean) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.potion.Potion.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.potion.Potion.d.ts new file mode 100644 index 00000000..008edc1b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.potion.Potion.d.ts @@ -0,0 +1,139 @@ +declare namespace cn { + namespace nukkit { + namespace potion { + // @ts-ignore + class Potion extends java.lang.Object { + // @ts-ignore + constructor(id: number) + // @ts-ignore + constructor(id: number, level: number) + // @ts-ignore + constructor(id: number, level: number, splash: boolean) + // @ts-ignore + public static NO_EFFECTS: number; + // @ts-ignore + public static WATER: number; + // @ts-ignore + public static MUNDANE: number; + // @ts-ignore + public static MUNDANE_II: number; + // @ts-ignore + public static THICK: number; + // @ts-ignore + public static AWKWARD: number; + // @ts-ignore + public static NIGHT_VISION: number; + // @ts-ignore + public static NIGHT_VISION_LONG: number; + // @ts-ignore + public static INVISIBLE: number; + // @ts-ignore + public static INVISIBLE_LONG: number; + // @ts-ignore + public static LEAPING: number; + // @ts-ignore + public static LEAPING_LONG: number; + // @ts-ignore + public static LEAPING_II: number; + // @ts-ignore + public static FIRE_RESISTANCE: number; + // @ts-ignore + public static FIRE_RESISTANCE_LONG: number; + // @ts-ignore + public static SPEED: number; + // @ts-ignore + public static SPEED_LONG: number; + // @ts-ignore + public static SPEED_II: number; + // @ts-ignore + public static SLOWNESS: number; + // @ts-ignore + public static SLOWNESS_LONG: number; + // @ts-ignore + public static WATER_BREATHING: number; + // @ts-ignore + public static WATER_BREATHING_LONG: number; + // @ts-ignore + public static INSTANT_HEALTH: number; + // @ts-ignore + public static INSTANT_HEALTH_II: number; + // @ts-ignore + public static HARMING: number; + // @ts-ignore + public static HARMING_II: number; + // @ts-ignore + public static POISON: number; + // @ts-ignore + public static POISON_LONG: number; + // @ts-ignore + public static POISON_II: number; + // @ts-ignore + public static REGENERATION: number; + // @ts-ignore + public static REGENERATION_LONG: number; + // @ts-ignore + public static REGENERATION_II: number; + // @ts-ignore + public static STRENGTH: number; + // @ts-ignore + public static STRENGTH_LONG: number; + // @ts-ignore + public static STRENGTH_II: number; + // @ts-ignore + public static WEAKNESS: number; + // @ts-ignore + public static WEAKNESS_LONG: number; + // @ts-ignore + public static WITHER_II: number; + // @ts-ignore + public static TURTLE_MASTER: number; + // @ts-ignore + public static TURTLE_MASTER_LONG: number; + // @ts-ignore + public static TURTLE_MASTER_II: number; + // @ts-ignore + public static SLOW_FALLING: number; + // @ts-ignore + public static SLOW_FALLING_LONG: number; + // @ts-ignore + protected static potions: cn.nukkit.potion.Potion[]; + // @ts-ignore + protected id: number; + // @ts-ignore + protected level: number; + // @ts-ignore + protected splash: boolean; + // @ts-ignore + public static init(): void; + // @ts-ignore + public static getPotion(id: number): cn.nukkit.potion.Potion; + // @ts-ignore + public static getPotionByName(name: string): cn.nukkit.potion.Potion; + // @ts-ignore + public getEffect(): cn.nukkit.potion.Effect; + // @ts-ignore + public getId(): number; + // @ts-ignore + public getLevel(): number; + // @ts-ignore + public isSplash(): boolean; + // @ts-ignore + public setSplash(splash: boolean): cn.nukkit.potion.Potion; + // @ts-ignore + public applyPotion(entity: cn.nukkit.entity.Entity): void; + // @ts-ignore + public applyPotion(entity: cn.nukkit.entity.Entity, health: number): void; + // @ts-ignore + public clone(): cn.nukkit.potion.Potion; + // @ts-ignore + public static getEffect(potionType: number, isSplash: boolean): cn.nukkit.potion.Effect; + // @ts-ignore + public static getLevel(potionType: number): number; + // @ts-ignore + public static isInstant(potionType: number): boolean; + // @ts-ignore + public static getApplySeconds(potionType: number, isSplash: boolean): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.RakNet.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.RakNet.d.ts new file mode 100644 index 00000000..8c055a33 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.RakNet.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + // @ts-ignore + abstract class RakNet extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static VERSION: string; + // @ts-ignore + public static PROTOCOL: number; + // @ts-ignore + public static MAGIC: number[]; + // @ts-ignore + public static PRIORITY_NORMAL: number; + // @ts-ignore + public static PRIORITY_IMMEDIATE: number; + // @ts-ignore + public static FLAG_NEED_ACK: number; + // @ts-ignore + public static PACKET_ENCAPSULATED: number; + // @ts-ignore + public static PACKET_OPEN_SESSION: number; + // @ts-ignore + public static PACKET_CLOSE_SESSION: number; + // @ts-ignore + public static PACKET_INVALID_SESSION: number; + // @ts-ignore + public static PACKET_SEND_QUEUE: number; + // @ts-ignore + public static PACKET_ACK_NOTIFICATION: number; + // @ts-ignore + public static PACKET_SET_OPTION: number; + // @ts-ignore + public static PACKET_RAW: number; + // @ts-ignore + public static PACKET_BLOCK_ADDRESS: number; + // @ts-ignore + public static PACKET_UNBLOCK_ADDRESS: number; + // @ts-ignore + public static PACKET_SHUTDOWN: number; + // @ts-ignore + public static PACKET_EMERGENCY_SHUTDOWN: number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.AcknowledgePacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.AcknowledgePacket.d.ts new file mode 100644 index 00000000..55b1b7d2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.AcknowledgePacket.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + // @ts-ignore + abstract class AcknowledgePacket extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public packets: java.util.TreeMap; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + // @ts-ignore + public clean(): cn.nukkit.raknet.protocol.Packet; + // @ts-ignore + public clone(): cn.nukkit.raknet.protocol.AcknowledgePacket; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.DataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.DataPacket.d.ts new file mode 100644 index 00000000..701215af --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.DataPacket.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + // @ts-ignore + abstract class DataPacket extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public packets: java.util.concurrent.ConcurrentLinkedQueue; + // @ts-ignore + public seqNumber: java.lang.Integer; + // @ts-ignore + public encode(): void; + // @ts-ignore + public length(): number; + // @ts-ignore + public decode(): void; + // @ts-ignore + public clean(): cn.nukkit.raknet.protocol.Packet; + // @ts-ignore + public clone(): cn.nukkit.raknet.protocol.DataPacket; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.EncapsulatedPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.EncapsulatedPacket.d.ts new file mode 100644 index 00000000..e3e78047 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.EncapsulatedPacket.d.ts @@ -0,0 +1,53 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + // @ts-ignore + class EncapsulatedPacket extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public reliability: number; + // @ts-ignore + public hasSplit: boolean; + // @ts-ignore + public length: number; + // @ts-ignore + public messageIndex: java.lang.Integer; + // @ts-ignore + public orderIndex: java.lang.Integer; + // @ts-ignore + public orderChannel: java.lang.Integer; + // @ts-ignore + public splitCount: java.lang.Integer; + // @ts-ignore + public splitID: java.lang.Integer; + // @ts-ignore + public splitIndex: java.lang.Integer; + // @ts-ignore + public buffer: number[]; + // @ts-ignore + public needACK: boolean; + // @ts-ignore + public identifierACK: java.lang.Integer; + // @ts-ignore + public getOffset(): number; + // @ts-ignore + public static fromBinary(binary: number): cn.nukkit.raknet.protocol.EncapsulatedPacket; + // @ts-ignore + public static fromBinary(binary: number, internal: boolean): cn.nukkit.raknet.protocol.EncapsulatedPacket; + // @ts-ignore + public getTotalLength(): number; + // @ts-ignore + public toBinary(): number[]; + // @ts-ignore + public toBinary(internal: boolean): number[]; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): cn.nukkit.raknet.protocol.EncapsulatedPacket; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.Packet.PacketFactory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.Packet.PacketFactory.d.ts new file mode 100644 index 00000000..d8906b01 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.Packet.PacketFactory.d.ts @@ -0,0 +1,18 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace Packet { + // @ts-ignore + interface PacketFactory { + /** + * Creates the packet + */ + // @ts-ignore + create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.Packet.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.Packet.d.ts new file mode 100644 index 00000000..9a5fd426 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.Packet.d.ts @@ -0,0 +1,79 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + // @ts-ignore + abstract class Packet extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected offset: number; + // @ts-ignore + public buffer: number[]; + // @ts-ignore + public sendTime: java.lang.Long; + // @ts-ignore + public abstract getID(): number; + // @ts-ignore + protected get(len: number): number[]; + // @ts-ignore + protected getAll(): number[]; + // @ts-ignore + protected get(): number[]; + // @ts-ignore + protected getLong(): number; + // @ts-ignore + protected getInt(): number; + // @ts-ignore + protected getSignedShort(): number; + // @ts-ignore + protected getShort(): number; + // @ts-ignore + protected getTriad(): number; + // @ts-ignore + protected getLTriad(): number; + // @ts-ignore + protected getByte(): number; + // @ts-ignore + protected getString(): string; + // @ts-ignore + protected getAddress(): java.net.InetSocketAddress; + // @ts-ignore + protected feof(): boolean; + // @ts-ignore + protected put(b: number): void; + // @ts-ignore + protected putLong(v: number): void; + // @ts-ignore + protected putInt(v: number): void; + // @ts-ignore + protected putShort(v: number): void; + // @ts-ignore + protected putSignedShort(v: number): void; + // @ts-ignore + protected putTriad(v: number): void; + // @ts-ignore + protected putLTriad(v: number): void; + // @ts-ignore + protected putByte(b: number): void; + // @ts-ignore + protected putString(str: string): void; + // @ts-ignore + protected putAddress(addr: string, port: number): void; + // @ts-ignore + protected putAddress(addr: string, port: number, version: number): void; + // @ts-ignore + protected putAddress(address: java.net.InetSocketAddress): void; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + // @ts-ignore + public clean(): cn.nukkit.raknet.protocol.Packet; + // @ts-ignore + public clone(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ACK.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ACK.Factory.d.ts new file mode 100644 index 00000000..bfe112be --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ACK.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace ACK { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ACK.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ACK.d.ts new file mode 100644 index 00000000..17a3f909 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ACK.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class ACK extends cn.nukkit.raknet.protocol.AcknowledgePacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ADVERTISE_SYSTEM.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ADVERTISE_SYSTEM.Factory.d.ts new file mode 100644 index 00000000..81507792 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ADVERTISE_SYSTEM.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace ADVERTISE_SYSTEM { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ADVERTISE_SYSTEM.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ADVERTISE_SYSTEM.d.ts new file mode 100644 index 00000000..7ec38104 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.ADVERTISE_SYSTEM.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class ADVERTISE_SYSTEM extends cn.nukkit.raknet.protocol.packet.UNCONNECTED_PONG { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_CONNECT_DataPacket.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_CONNECT_DataPacket.Factory.d.ts new file mode 100644 index 00000000..8ca29c17 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_CONNECT_DataPacket.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace CLIENT_CONNECT_DataPacket { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_CONNECT_DataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_CONNECT_DataPacket.d.ts new file mode 100644 index 00000000..3a64ecf0 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_CONNECT_DataPacket.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class CLIENT_CONNECT_DataPacket extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public clientID: number; + // @ts-ignore + public sendPing: number; + // @ts-ignore + public useSecurity: boolean; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_DISCONNECT_DataPacket.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_DISCONNECT_DataPacket.Factory.d.ts new file mode 100644 index 00000000..46b03aa4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_DISCONNECT_DataPacket.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace CLIENT_DISCONNECT_DataPacket { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_DISCONNECT_DataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_DISCONNECT_DataPacket.d.ts new file mode 100644 index 00000000..f5ed81a9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_DISCONNECT_DataPacket.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class CLIENT_DISCONNECT_DataPacket extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_HANDSHAKE_DataPacket.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_HANDSHAKE_DataPacket.Factory.d.ts new file mode 100644 index 00000000..462c6b4c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_HANDSHAKE_DataPacket.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace CLIENT_HANDSHAKE_DataPacket { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_HANDSHAKE_DataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_HANDSHAKE_DataPacket.d.ts new file mode 100644 index 00000000..10865d94 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.CLIENT_HANDSHAKE_DataPacket.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class CLIENT_HANDSHAKE_DataPacket extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public address: string; + // @ts-ignore + public port: number; + // @ts-ignore + public systemAddresses: java.net.InetSocketAddress[]; + // @ts-ignore + public sendPing: number; + // @ts-ignore + public sendPong: number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_0.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_0.Factory.d.ts new file mode 100644 index 00000000..cf07f935 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_0.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_0 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_0.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_0.d.ts new file mode 100644 index 00000000..132177f6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_0.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_0 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_1.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_1.Factory.d.ts new file mode 100644 index 00000000..be81152b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_1.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_1 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_1.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_1.d.ts new file mode 100644 index 00000000..92944f53 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_1.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_1 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_2.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_2.Factory.d.ts new file mode 100644 index 00000000..25290c57 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_2.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_2 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_2.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_2.d.ts new file mode 100644 index 00000000..35042579 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_2.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_2 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_3.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_3.Factory.d.ts new file mode 100644 index 00000000..c0ed175e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_3.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_3 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_3.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_3.d.ts new file mode 100644 index 00000000..08e99c31 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_3.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_3 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_4.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_4.Factory.d.ts new file mode 100644 index 00000000..f093fdf2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_4.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_4 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_4.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_4.d.ts new file mode 100644 index 00000000..bf5cf4fa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_4.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_4 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_5.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_5.Factory.d.ts new file mode 100644 index 00000000..74b8f5be --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_5.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_5 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_5.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_5.d.ts new file mode 100644 index 00000000..0bd76a5d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_5.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_5 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_6.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_6.Factory.d.ts new file mode 100644 index 00000000..1defc869 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_6.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_6 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_6.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_6.d.ts new file mode 100644 index 00000000..4989359e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_6.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_6 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_7.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_7.Factory.d.ts new file mode 100644 index 00000000..949e0257 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_7.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_7 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_7.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_7.d.ts new file mode 100644 index 00000000..6b11a8f9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_7.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_7 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_8.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_8.Factory.d.ts new file mode 100644 index 00000000..017a87f1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_8.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_8 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_8.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_8.d.ts new file mode 100644 index 00000000..2111b755 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_8.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_8 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_9.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_9.Factory.d.ts new file mode 100644 index 00000000..b743e8fd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_9.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_9 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_9.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_9.d.ts new file mode 100644 index 00000000..894151a3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_9.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_9 extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_A.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_A.Factory.d.ts new file mode 100644 index 00000000..30bc7ffc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_A.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_A { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_A.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_A.d.ts new file mode 100644 index 00000000..6af3c767 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_A.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_A extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_B.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_B.Factory.d.ts new file mode 100644 index 00000000..d02a591f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_B.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_B { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_B.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_B.d.ts new file mode 100644 index 00000000..ef82f76e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_B.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_B extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_C.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_C.Factory.d.ts new file mode 100644 index 00000000..4567b052 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_C.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_C { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_C.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_C.d.ts new file mode 100644 index 00000000..b6494893 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_C.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_C extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_D.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_D.Factory.d.ts new file mode 100644 index 00000000..7264db63 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_D.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_D { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_D.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_D.d.ts new file mode 100644 index 00000000..3d9d515d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_D.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_D extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_E.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_E.Factory.d.ts new file mode 100644 index 00000000..bfb0c013 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_E.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_E { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_E.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_E.d.ts new file mode 100644 index 00000000..913a9e79 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_E.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_E extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_F.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_F.Factory.d.ts new file mode 100644 index 00000000..8a138396 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_F.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace DATA_PACKET_F { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_F.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_F.d.ts new file mode 100644 index 00000000..dd1b3aa4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.DATA_PACKET_F.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class DATA_PACKET_F extends cn.nukkit.raknet.protocol.DataPacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.NACK.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.NACK.Factory.d.ts new file mode 100644 index 00000000..eedda1a2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.NACK.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace NACK { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.NACK.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.NACK.d.ts new file mode 100644 index 00000000..2955852f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.NACK.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class NACK extends cn.nukkit.raknet.protocol.AcknowledgePacket { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_1.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_1.Factory.d.ts new file mode 100644 index 00000000..39282f4e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_1.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace OPEN_CONNECTION_REPLY_1 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_1.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_1.d.ts new file mode 100644 index 00000000..0405e8fa --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_1.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class OPEN_CONNECTION_REPLY_1 extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public serverID: number; + // @ts-ignore + public mtuSize: number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_2.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_2.Factory.d.ts new file mode 100644 index 00000000..c82ab3ed --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_2.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace OPEN_CONNECTION_REPLY_2 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_2.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_2.d.ts new file mode 100644 index 00000000..69e054f5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REPLY_2.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class OPEN_CONNECTION_REPLY_2 extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public serverID: number; + // @ts-ignore + public clientAddress: string; + // @ts-ignore + public clientPort: number; + // @ts-ignore + public mtuSize: number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_1.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_1.Factory.d.ts new file mode 100644 index 00000000..adfc4856 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_1.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace OPEN_CONNECTION_REQUEST_1 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_1.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_1.d.ts new file mode 100644 index 00000000..6ac8fb0b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_1.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class OPEN_CONNECTION_REQUEST_1 extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public protocol: number; + // @ts-ignore + public mtuSize: number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_2.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_2.Factory.d.ts new file mode 100644 index 00000000..c8a0c16b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_2.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace OPEN_CONNECTION_REQUEST_2 { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_2.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_2.d.ts new file mode 100644 index 00000000..3564d309 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.OPEN_CONNECTION_REQUEST_2.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class OPEN_CONNECTION_REQUEST_2 extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public clientID: number; + // @ts-ignore + public serverAddress: string; + // @ts-ignore + public serverPort: number; + // @ts-ignore + public mtuSize: number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PING_DataPacket.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PING_DataPacket.Factory.d.ts new file mode 100644 index 00000000..ce2d5a48 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PING_DataPacket.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace PING_DataPacket { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PING_DataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PING_DataPacket.d.ts new file mode 100644 index 00000000..54412ec2 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PING_DataPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class PING_DataPacket extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public pingID: number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PONG_DataPacket.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PONG_DataPacket.Factory.d.ts new file mode 100644 index 00000000..9745652e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PONG_DataPacket.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace PONG_DataPacket { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PONG_DataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PONG_DataPacket.d.ts new file mode 100644 index 00000000..b8be9327 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.PONG_DataPacket.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class PONG_DataPacket extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public pingID: number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.SERVER_HANDSHAKE_DataPacket.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.SERVER_HANDSHAKE_DataPacket.Factory.d.ts new file mode 100644 index 00000000..d541af80 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.SERVER_HANDSHAKE_DataPacket.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace SERVER_HANDSHAKE_DataPacket { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.SERVER_HANDSHAKE_DataPacket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.SERVER_HANDSHAKE_DataPacket.d.ts new file mode 100644 index 00000000..54b2de72 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.SERVER_HANDSHAKE_DataPacket.d.ts @@ -0,0 +1,31 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class SERVER_HANDSHAKE_DataPacket extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public address: string; + // @ts-ignore + public port: number; + // @ts-ignore + public systemAddresses: java.net.InetSocketAddress[]; + // @ts-ignore + public sendPing: number; + // @ts-ignore + public sendPong: number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING.Factory.d.ts new file mode 100644 index 00000000..7fb00667 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace UNCONNECTED_PING { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING.d.ts new file mode 100644 index 00000000..85b69cba --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class UNCONNECTED_PING extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public pingID: number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING_OPEN_CONNECTIONS.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING_OPEN_CONNECTIONS.Factory.d.ts new file mode 100644 index 00000000..b9074c22 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING_OPEN_CONNECTIONS.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace UNCONNECTED_PING_OPEN_CONNECTIONS { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING_OPEN_CONNECTIONS.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING_OPEN_CONNECTIONS.d.ts new file mode 100644 index 00000000..3a5099a5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING_OPEN_CONNECTIONS.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class UNCONNECTED_PING_OPEN_CONNECTIONS extends cn.nukkit.raknet.protocol.packet.UNCONNECTED_PING { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public getID(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PONG.Factory.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PONG.Factory.d.ts new file mode 100644 index 00000000..1e703aad --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PONG.Factory.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + namespace UNCONNECTED_PONG { + // @ts-ignore + class Factory extends java.lang.Object implements cn.nukkit.raknet.protocol.Packet.PacketFactory { + // @ts-ignore + constructor() + // @ts-ignore + public create(): cn.nukkit.raknet.protocol.Packet; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PONG.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PONG.d.ts new file mode 100644 index 00000000..97332f64 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.protocol.packet.UNCONNECTED_PONG.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace protocol { + namespace packet { + // @ts-ignore + class UNCONNECTED_PONG extends cn.nukkit.raknet.protocol.Packet { + // @ts-ignore + constructor() + // @ts-ignore + public static ID: number; + // @ts-ignore + public pingID: number; + // @ts-ignore + public serverID: number; + // @ts-ignore + public serverName: string; + // @ts-ignore + public getID(): number; + // @ts-ignore + public encode(): void; + // @ts-ignore + public decode(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.RakNetServer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.RakNetServer.d.ts new file mode 100644 index 00000000..d197c812 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.RakNetServer.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace server { + // @ts-ignore + class RakNetServer extends java.lang.Thread { + // @ts-ignore + constructor(logger: cn.nukkit.utils.ThreadedLogger, port: number) + // @ts-ignore + constructor(logger: cn.nukkit.utils.ThreadedLogger, port: number, interfaz: string) + // @ts-ignore + protected port: number; + // @ts-ignore + protected interfaz: string; + // @ts-ignore + protected logger: cn.nukkit.utils.ThreadedLogger; + // @ts-ignore + protected externalQueue: java.util.concurrent.ConcurrentLinkedQueue; + // @ts-ignore + protected internalQueue: java.util.concurrent.ConcurrentLinkedQueue; + // @ts-ignore + public isShutdown(): boolean; + // @ts-ignore + public shutdown(): void; + // @ts-ignore + public getPort(): number; + // @ts-ignore + public getInterface(): string; + // @ts-ignore + public getLogger(): cn.nukkit.utils.ThreadedLogger; + // @ts-ignore + public getExternalQueue(): java.util.concurrent.ConcurrentLinkedQueue; + // @ts-ignore + public getInternalQueue(): java.util.concurrent.ConcurrentLinkedQueue; + // @ts-ignore + public pushMainToThreadPacket(data: number): void; + // @ts-ignore + public readMainToThreadPacket(): number[]; + // @ts-ignore + public pushThreadToMainPacket(data: number): void; + // @ts-ignore + public readThreadToMainPacket(): number[]; + // @ts-ignore + public run(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.ServerHandler.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.ServerHandler.d.ts new file mode 100644 index 00000000..3c7c681a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.ServerHandler.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace server { + // @ts-ignore + class ServerHandler extends java.lang.Object { + // @ts-ignore + constructor(server: cn.nukkit.raknet.server.RakNetServer, instance: cn.nukkit.raknet.server.ServerInstance) + // @ts-ignore + protected server: cn.nukkit.raknet.server.RakNetServer; + // @ts-ignore + protected instance: cn.nukkit.raknet.server.ServerInstance; + // @ts-ignore + public sendEncapsulated(identifier: string, packet: cn.nukkit.raknet.protocol.EncapsulatedPacket): void; + // @ts-ignore + public sendEncapsulated(identifier: string, packet: cn.nukkit.raknet.protocol.EncapsulatedPacket, flags: number): void; + // @ts-ignore + public sendRaw(address: string, port: number, payload: number): void; + // @ts-ignore + public closeSession(identifier: string, reason: string): void; + // @ts-ignore + public sendOption(name: string, value: string): void; + // @ts-ignore + public blockAddress(address: string, timeout: number): void; + // @ts-ignore + public unblockAddress(address: string): void; + // @ts-ignore + public shutdown(): void; + // @ts-ignore + public emergencyShutdown(): void; + // @ts-ignore + protected invalidSession(identifier: string): void; + // @ts-ignore + public handlePacket(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.ServerInstance.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.ServerInstance.d.ts new file mode 100644 index 00000000..756db959 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.ServerInstance.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace server { + // @ts-ignore + interface ServerInstance { + // @ts-ignore + openSession(identifier: string, address: string, port: number, clientID: number): void; + // @ts-ignore + closeSession(identifier: string, reason: string): void; + // @ts-ignore + handleEncapsulated(identifier: string, packet: cn.nukkit.raknet.protocol.EncapsulatedPacket, flags: number): void; + // @ts-ignore + handleRaw(address: string, port: number, payload: number): void; + // @ts-ignore + notifyACK(identifier: string, identifierACK: number): void; + // @ts-ignore + handleOption(option: string, value: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.Session.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.Session.d.ts new file mode 100644 index 00000000..90fa1150 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.Session.d.ts @@ -0,0 +1,53 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace server { + // @ts-ignore + class Session extends java.lang.Object { + // @ts-ignore + constructor(sessionManager: cn.nukkit.raknet.server.SessionManager, address: string, port: number) + // @ts-ignore + public static STATE_UNCONNECTED: number; + // @ts-ignore + public static STATE_CONNECTING_1: number; + // @ts-ignore + public static STATE_CONNECTING_2: number; + // @ts-ignore + public static STATE_CONNECTED: number; + // @ts-ignore + public static MAX_SPLIT_SIZE: number; + // @ts-ignore + public static MAX_SPLIT_COUNT: number; + // @ts-ignore + public static WINDOW_SIZE: number; + // @ts-ignore + public getAddress(): string; + // @ts-ignore + public getPort(): number; + // @ts-ignore + public getID(): number; + // @ts-ignore + public update(time: number): void; + // @ts-ignore + public disconnect(): void; + // @ts-ignore + public disconnect(reason: string): void; + // @ts-ignore + public sendQueue(): void; + // @ts-ignore + public addEncapsulatedToQueue(packet: cn.nukkit.raknet.protocol.EncapsulatedPacket): void; + // @ts-ignore + public addEncapsulatedToQueue(packet: cn.nukkit.raknet.protocol.EncapsulatedPacket, flags: number): void; + // @ts-ignore + public getState(): number; + // @ts-ignore + public isTemporal(): boolean; + // @ts-ignore + public handlePacket(packet: cn.nukkit.raknet.protocol.Packet): void; + // @ts-ignore + public close(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.SessionManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.SessionManager.d.ts new file mode 100644 index 00000000..eebe2343 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.SessionManager.d.ts @@ -0,0 +1,95 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace server { + // @ts-ignore + class SessionManager extends java.lang.Object { + // @ts-ignore + constructor(server: cn.nukkit.raknet.server.RakNetServer, socket: cn.nukkit.raknet.server.UDPServerSocket) + // @ts-ignore + protected packetPool: cn.nukkit.raknet.protocol.Packet.PacketFactory[]; + // @ts-ignore + protected server: cn.nukkit.raknet.server.RakNetServer; + // @ts-ignore + protected socket: cn.nukkit.raknet.server.UDPServerSocket; + // @ts-ignore + protected receiveBytes: number; + // @ts-ignore + protected sendBytes: number; + // @ts-ignore + protected sessions: java.util.Map; + // @ts-ignore + protected name: string; + // @ts-ignore + protected packetLimit: number; + // @ts-ignore + protected shutdown: boolean; + // @ts-ignore + protected ticks: number; + // @ts-ignore + protected lastMeasure: number; + // @ts-ignore + protected block: java.util.Map; + // @ts-ignore + protected ipSec: java.util.Map; + // @ts-ignore + public portChecking: boolean; + // @ts-ignore + public serverId: number; + // @ts-ignore + protected currentSource: string; + // @ts-ignore + public getPort(): number; + // @ts-ignore + public getLogger(): cn.nukkit.utils.ThreadedLogger; + // @ts-ignore + public run(): void; + // @ts-ignore + public sendPacket(packet: cn.nukkit.raknet.protocol.Packet, dest: string, port: number): void; + // @ts-ignore + public sendPacket(packet: cn.nukkit.raknet.protocol.Packet, dest: java.net.InetSocketAddress): void; + // @ts-ignore + public streamEncapsulated(session: cn.nukkit.raknet.server.Session, packet: cn.nukkit.raknet.protocol.EncapsulatedPacket): void; + // @ts-ignore + public streamEncapsulated(session: cn.nukkit.raknet.server.Session, packet: cn.nukkit.raknet.protocol.EncapsulatedPacket, flags: number): void; + // @ts-ignore + public streamRAW(address: string, port: number, payload: number): void; + // @ts-ignore + protected streamClose(identifier: string, reason: string): void; + // @ts-ignore + protected streamInvalid(identifier: string): void; + // @ts-ignore + protected streamOpen(session: cn.nukkit.raknet.server.Session): void; + // @ts-ignore + protected streamACK(identifier: string, identifierACK: number): void; + // @ts-ignore + protected streamOption(name: string, value: string): void; + // @ts-ignore + public receiveStream(): boolean; + // @ts-ignore + public blockAddress(address: string): void; + // @ts-ignore + public blockAddress(address: string, timeout: number): void; + // @ts-ignore + public unblockAddress(address: string): void; + // @ts-ignore + public getSession(ip: string, port: number): cn.nukkit.raknet.server.Session; + // @ts-ignore + public removeSession(session: cn.nukkit.raknet.server.Session): void; + // @ts-ignore + public removeSession(session: cn.nukkit.raknet.server.Session, reason: string): void; + // @ts-ignore + public openSession(session: cn.nukkit.raknet.server.Session): void; + // @ts-ignore + public notifyACK(session: cn.nukkit.raknet.server.Session, identifierACK: number): void; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getID(): number; + // @ts-ignore + public getPacketFromPool(id: number): cn.nukkit.raknet.protocol.Packet; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.UDPServerSocket.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.UDPServerSocket.d.ts new file mode 100644 index 00000000..9907ab92 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.raknet.server.UDPServerSocket.d.ts @@ -0,0 +1,41 @@ +declare namespace cn { + namespace nukkit { + namespace raknet { + namespace server { + // @ts-ignore + class UDPServerSocket extends ChannelInboundHandlerAdapter { + // @ts-ignore + constructor(logger: cn.nukkit.utils.ThreadedLogger) + // @ts-ignore + constructor(logger: cn.nukkit.utils.ThreadedLogger, port: number) + // @ts-ignore + constructor(logger: cn.nukkit.utils.ThreadedLogger, port: number, interfaz: string) + // @ts-ignore + protected logger: cn.nukkit.utils.ThreadedLogger; + // @ts-ignore + protected bootstrap: Bootstrap; + // @ts-ignore + protected channel: Channel; + // @ts-ignore + public static EPOLL: boolean; + // @ts-ignore + protected packets: java.util.concurrent.ConcurrentLinkedQueue; + // @ts-ignore + public close(): void; + // @ts-ignore + public clearPacketQueue(): void; + // @ts-ignore + public readPacket(): DatagramPacket; + // @ts-ignore + public writePacket(data: number, dest: string, port: number): number; + // @ts-ignore + public writePacket(data: number, dest: java.net.InetSocketAddress): number; + // @ts-ignore + public channelRead(ctx: ChannelHandlerContext, msg: java.lang.Object): void; + // @ts-ignore + public exceptionCaught(ctx: ChannelHandlerContext, cause: java.lang.Throwable): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.AbstractResourcePack.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.AbstractResourcePack.d.ts new file mode 100644 index 00000000..1dcb4fac --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.AbstractResourcePack.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace resourcepacks { + // @ts-ignore + abstract class AbstractResourcePack extends java.lang.Object implements cn.nukkit.resourcepacks.ResourcePack { + // @ts-ignore + constructor() + // @ts-ignore + protected manifest: JsonObject; + // @ts-ignore + protected verifyManifest(): boolean; + // @ts-ignore + public getPackName(): string; + // @ts-ignore + public getPackId(): java.util.UUID; + // @ts-ignore + public getPackVersion(): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ResourcePack.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ResourcePack.d.ts new file mode 100644 index 00000000..639a3adc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ResourcePack.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace resourcepacks { + // @ts-ignore + interface ResourcePack { + // @ts-ignore + getPackName(): string; + // @ts-ignore + getPackId(): java.util.UUID; + // @ts-ignore + getPackVersion(): string; + // @ts-ignore + getPackSize(): number; + // @ts-ignore + getSha256(): number[]; + // @ts-ignore + getPackChunk(off: number, len: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ResourcePackManager.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ResourcePackManager.d.ts new file mode 100644 index 00000000..8db1b01c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ResourcePackManager.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace resourcepacks { + // @ts-ignore + class ResourcePackManager extends java.lang.Object { + // @ts-ignore + constructor(path: java.io.File) + // @ts-ignore + public getResourceStack(): cn.nukkit.resourcepacks.ResourcePack[]; + // @ts-ignore + public getPackById(id: java.util.UUID): cn.nukkit.resourcepacks.ResourcePack; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ZippedResourcePack.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ZippedResourcePack.d.ts new file mode 100644 index 00000000..632b8751 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.resourcepacks.ZippedResourcePack.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace resourcepacks { + // @ts-ignore + class ZippedResourcePack extends cn.nukkit.resourcepacks.AbstractResourcePack { + // @ts-ignore + constructor(file: java.io.File) + // @ts-ignore + public getPackSize(): number; + // @ts-ignore + public getSha256(): number[]; + // @ts-ignore + public getPackChunk(off: number, len: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncPool.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncPool.d.ts new file mode 100644 index 00000000..ad200d03 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncPool.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + class AsyncPool extends java.util.concurrent.ThreadPoolExecutor { + // @ts-ignore + constructor(server: cn.nukkit.Server, size: number) + // @ts-ignore + protected afterExecute(runnable: java.lang.Runnable, throwable: java.lang.Throwable): void; + // @ts-ignore + public getServer(): cn.nukkit.Server; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncTask.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncTask.d.ts new file mode 100644 index 00000000..1081da78 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncTask.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + abstract class AsyncTask extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static FINISHED_LIST: java.util.Queue; + // @ts-ignore + public run(): void; + // @ts-ignore + public isFinished(): boolean; + // @ts-ignore + public getResult(): java.lang.Object; + // @ts-ignore + public hasResult(): boolean; + // @ts-ignore + public setResult(result: java.lang.Object): void; + // @ts-ignore + public setTaskId(taskId: number): void; + // @ts-ignore + public getTaskId(): number; + // @ts-ignore + public getFromThreadStore(identifier: string): java.lang.Object; + // @ts-ignore + public saveToThreadStore(identifier: string, value: java.lang.Object): void; + // @ts-ignore + public abstract onRun(): void; + // @ts-ignore + public onCompletion(server: cn.nukkit.Server): void; + // @ts-ignore + public cleanObject(): void; + // @ts-ignore + public static collectTask(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncWorker.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncWorker.d.ts new file mode 100644 index 00000000..95f6c9d6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.AsyncWorker.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + class AsyncWorker extends java.lang.Thread implements cn.nukkit.InterruptibleThread { + // @ts-ignore + constructor() + // @ts-ignore + public stack(task: cn.nukkit.scheduler.AsyncTask): void; + // @ts-ignore + public unstack(): void; + // @ts-ignore + public unstack(task: cn.nukkit.scheduler.AsyncTask): void; + // @ts-ignore + public run(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.BlockUpdateScheduler.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.BlockUpdateScheduler.d.ts new file mode 100644 index 00000000..811caed3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.BlockUpdateScheduler.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + class BlockUpdateScheduler extends java.lang.Object { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, currentTick: number) + // @ts-ignore + public tick(currentTick: number): void; + // @ts-ignore + public getPendingBlockUpdates(boundingBox: cn.nukkit.math.AxisAlignedBB): java.util.Set; + // @ts-ignore + public isBlockTickPending(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public add(entry: cn.nukkit.utils.BlockUpdateEntry): void; + // @ts-ignore + public contains(entry: cn.nukkit.utils.BlockUpdateEntry): boolean; + // @ts-ignore + public remove(entry: cn.nukkit.utils.BlockUpdateEntry): boolean; + // @ts-ignore + public remove(pos: cn.nukkit.math.Vector3): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.FileWriteTask.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.FileWriteTask.d.ts new file mode 100644 index 00000000..511a5c7f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.FileWriteTask.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + class FileWriteTask extends cn.nukkit.scheduler.AsyncTask { + // @ts-ignore + constructor(path: string, contents: string) + // @ts-ignore + constructor(path: string, contents: number) + // @ts-ignore + constructor(path: string, contents: java.io.InputStream) + // @ts-ignore + constructor(file: java.io.File, contents: string) + // @ts-ignore + constructor(file: java.io.File, contents: number) + // @ts-ignore + constructor(file: java.io.File, contents: java.io.InputStream) + // @ts-ignore + public onRun(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.NukkitRunnable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.NukkitRunnable.d.ts new file mode 100644 index 00000000..6c9eb8d1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.NukkitRunnable.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + abstract class NukkitRunnable extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Attempts to cancel this task. + */ + // @ts-ignore + public cancel(): void; + // @ts-ignore + public runTask(plugin: cn.nukkit.plugin.Plugin): java.lang.Runnable; + // @ts-ignore + public runTaskAsynchronously(plugin: cn.nukkit.plugin.Plugin): java.lang.Runnable; + // @ts-ignore + public runTaskLater(plugin: cn.nukkit.plugin.Plugin, delay: number): java.lang.Runnable; + // @ts-ignore + public runTaskLaterAsynchronously(plugin: cn.nukkit.plugin.Plugin, delay: number): java.lang.Runnable; + // @ts-ignore + public runTaskTimer(plugin: cn.nukkit.plugin.Plugin, delay: number, period: number): java.lang.Runnable; + // @ts-ignore + public runTaskTimerAsynchronously(plugin: cn.nukkit.plugin.Plugin, delay: number, period: number): java.lang.Runnable; + /** + * Gets the task id for this runnable. + */ + // @ts-ignore + public getTaskId(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.PluginTask.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.PluginTask.d.ts new file mode 100644 index 00000000..46019a36 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.PluginTask.d.ts @@ -0,0 +1,22 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + abstract class PluginTask extends cn.nukkit.scheduler.Task { + /** + * 构造一个插件拥有的任务的方法。
Constructs a plugin-owned task. + */ + // @ts-ignore + constructor(owner: cn.nukkit.plugin.Plugin) + // @ts-ignore + protected owner: cn.nukkit.plugin.Plugin; + /** + * 返回这个任务的所有者插件。
+ * Returns the owner of this task. + */ + // @ts-ignore + public getOwner(): cn.nukkit.plugin.Plugin; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.ServerScheduler.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.ServerScheduler.d.ts new file mode 100644 index 00000000..fbcf8216 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.ServerScheduler.d.ts @@ -0,0 +1,81 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + class ServerScheduler extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static WORKERS: number; + // @ts-ignore + public scheduleTask(task: cn.nukkit.scheduler.Task): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleTask(task: java.lang.Runnable): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleTask(plugin: cn.nukkit.plugin.Plugin, task: java.lang.Runnable): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleTask(task: java.lang.Runnable, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleTask(plugin: cn.nukkit.plugin.Plugin, task: java.lang.Runnable, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleAsyncTask(task: cn.nukkit.scheduler.AsyncTask): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleAsyncTask(plugin: cn.nukkit.plugin.Plugin, task: cn.nukkit.scheduler.AsyncTask): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleAsyncTaskToWorker(task: cn.nukkit.scheduler.AsyncTask, worker: number): void; + // @ts-ignore + public getAsyncTaskPoolSize(): number; + // @ts-ignore + public increaseAsyncTaskPoolSize(newSize: number): void; + // @ts-ignore + public scheduleDelayedTask(task: cn.nukkit.scheduler.Task, delay: number): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedTask(task: cn.nukkit.scheduler.Task, delay: number, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedTask(task: java.lang.Runnable, delay: number): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedTask(plugin: cn.nukkit.plugin.Plugin, task: java.lang.Runnable, delay: number): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedTask(task: java.lang.Runnable, delay: number, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedTask(plugin: cn.nukkit.plugin.Plugin, task: java.lang.Runnable, delay: number, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleRepeatingTask(task: java.lang.Runnable, period: number): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleRepeatingTask(plugin: cn.nukkit.plugin.Plugin, task: java.lang.Runnable, period: number): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleRepeatingTask(task: java.lang.Runnable, period: number, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleRepeatingTask(plugin: cn.nukkit.plugin.Plugin, task: java.lang.Runnable, period: number, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleRepeatingTask(task: cn.nukkit.scheduler.Task, period: number): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleRepeatingTask(task: cn.nukkit.scheduler.Task, period: number, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedRepeatingTask(task: cn.nukkit.scheduler.Task, delay: number, period: number): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedRepeatingTask(task: cn.nukkit.scheduler.Task, delay: number, period: number, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedRepeatingTask(task: java.lang.Runnable, delay: number, period: number): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedRepeatingTask(plugin: cn.nukkit.plugin.Plugin, task: java.lang.Runnable, delay: number, period: number): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedRepeatingTask(task: java.lang.Runnable, delay: number, period: number, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public scheduleDelayedRepeatingTask(plugin: cn.nukkit.plugin.Plugin, task: java.lang.Runnable, delay: number, period: number, asynchronous: boolean): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public cancelTask(taskId: number): void; + // @ts-ignore + public cancelTask(plugin: cn.nukkit.plugin.Plugin): void; + // @ts-ignore + public cancelAllTasks(): void; + // @ts-ignore + public isQueued(taskId: number): boolean; + // @ts-ignore + public mainThreadHeartbeat(currentTick: number): void; + // @ts-ignore + public getQueueSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.Task.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.Task.d.ts new file mode 100644 index 00000000..e9e4abf8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.Task.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + abstract class Task extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public getHandler(): cn.nukkit.scheduler.TaskHandler; + // @ts-ignore + public getTaskId(): number; + // @ts-ignore + public setHandler(taskHandler: cn.nukkit.scheduler.TaskHandler): void; + /** + * 这个任务被执行时,会调用的过程。
+ * What will be called when the task is executed. + */ + // @ts-ignore + public abstract onRun(currentTick: number): void; + // @ts-ignore + public run(): void; + // @ts-ignore + public onCancel(): void; + // @ts-ignore + public cancel(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.TaskHandler.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.TaskHandler.d.ts new file mode 100644 index 00000000..62f6eb7e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.scheduler.TaskHandler.d.ts @@ -0,0 +1,51 @@ +declare namespace cn { + namespace nukkit { + namespace scheduler { + // @ts-ignore + class TaskHandler extends java.lang.Object { + // @ts-ignore + constructor(plugin: cn.nukkit.plugin.Plugin, task: java.lang.Runnable, taskId: number, asynchronous: boolean) + // @ts-ignore + public timing: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public getNextRunTick(): number; + // @ts-ignore + public setNextRunTick(nextRunTick: number): void; + // @ts-ignore + public getTaskId(): number; + // @ts-ignore + public getTask(): java.lang.Runnable; + // @ts-ignore + public getDelay(): number; + // @ts-ignore + public isDelayed(): boolean; + // @ts-ignore + public isRepeating(): boolean; + // @ts-ignore + public getPeriod(): number; + // @ts-ignore + public getPlugin(): cn.nukkit.plugin.Plugin; + // @ts-ignore + public getLastRunTick(): number; + // @ts-ignore + public setLastRunTick(lastRunTick: number): void; + // @ts-ignore + public cancel(): void; + // @ts-ignore + public remove(): void; + // @ts-ignore + public run(currentTick: number): void; + // @ts-ignore + public getTaskName(): string; + // @ts-ignore + public isAsynchronous(): boolean; + // @ts-ignore + public setDelay(delay: number): void; + // @ts-ignore + public setPeriod(period: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.timings.JsonUtil.JSONPair.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.timings.JsonUtil.JSONPair.d.ts new file mode 100644 index 00000000..2032e958 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.timings.JsonUtil.JSONPair.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace timings { + namespace JsonUtil { + // @ts-ignore + class JSONPair extends java.lang.Object { + // @ts-ignore + constructor(key: string, value: java.lang.Object) + // @ts-ignore + constructor(key: number, value: java.lang.Object) + // @ts-ignore + public key: string; + // @ts-ignore + public value: java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.timings.JsonUtil.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.timings.JsonUtil.d.ts new file mode 100644 index 00000000..60ac190e --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.timings.JsonUtil.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace timings { + // @ts-ignore + class JsonUtil extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static toArray(objects: java.lang.Object): JsonArray; + // @ts-ignore + public static toObject(object: java.lang.Object): JsonObject; + // @ts-ignore + public static mapToObject(collection: java.lang.Iterable, mapper: java.util.function$.Function): JsonObject; + // @ts-ignore + public static mapToArray(elements: java.lang.Object, mapper: java.util.function$.Function): JsonArray; + // @ts-ignore + public static mapToArray(collection: java.lang.Iterable, mapper: java.util.function$.Function): JsonArray; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.timings.LevelTimings.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.timings.LevelTimings.d.ts new file mode 100644 index 00000000..22f7d216 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.timings.LevelTimings.d.ts @@ -0,0 +1,37 @@ +declare namespace cn { + namespace nukkit { + namespace timings { + // @ts-ignore + class LevelTimings extends java.lang.Object { + // @ts-ignore + constructor(level: cn.nukkit.level.Level) + // @ts-ignore + public doChunkUnload: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public doTickPending: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public doChunkGC: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public doTick: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public tickChunks: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public entityTick: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public blockEntityTick: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public syncChunkSendTimer: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public syncChunkSendPrepareTimer: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public syncChunkLoadTimer: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public syncChunkLoadDataTimer: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public syncChunkLoadEntitiesTimer: any /*co.aikar.timings.Timing*/; + // @ts-ignore + public syncChunkLoadBlockEntitiesTimer: any /*co.aikar.timings.Timing*/; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.BannerPattern.Type.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BannerPattern.Type.d.ts new file mode 100644 index 00000000..8d9c17ee --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BannerPattern.Type.d.ts @@ -0,0 +1,95 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + namespace BannerPattern { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static PATTERN_BOTTOM_STRIPE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_TOP_STRIPE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_LEFT_STRIPE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_RIGHT_STRIPE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_CENTER_STRIPE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_MIDDLE_STRIPE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_DOWN_RIGHT_STRIPE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_DOWN_LEFT_STRIPE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_SMALL_STRIPES: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_DIAGONAL_CROSS: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_SQUARE_CROSS: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_LEFT_OF_DIAGONAL: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_RIGHT_OF_UPSIDE_DOWN_DIAGONAL: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_LEFT_OF_UPSIDE_DOWN_DIAGONAL: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_RIGHT_OF_DIAGONAL: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_VERTICAL_HALF_LEFT: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_VERTICAL_HALF_RIGHT: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_HORIZONTAL_HALF_TOP: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_HORIZONTAL_HALF_BOTTOM: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_BOTTOM_LEFT_CORNER: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_BOTTOM_RIGHT_CORNER: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_TOP_LEFT_CORNER: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_TOP_RIGHT_CORNER: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_BOTTOM_TRIANGLE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_TOP_TRIANGLE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_BOTTOM_TRIANGLE_SAWTOOTH: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_TOP_TRIANGLE_SAWTOOTH: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_MIDDLE_CIRCLE: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_MIDDLE_RHOMBUS: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_BORDER: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_CURLY_BORDER: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_BRICK: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_GRADIENT: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_GRADIENT_UPSIDE_DOWN: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_CREEPER: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_SKULL: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_FLOWER: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static PATTERN_MOJANG: cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static values(): cn.nukkit.utils.BannerPattern.Type[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public getName(): string; + // @ts-ignore + public static getByName(name: string): cn.nukkit.utils.BannerPattern.Type; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.BannerPattern.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BannerPattern.d.ts new file mode 100644 index 00000000..5909a0a1 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BannerPattern.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class BannerPattern extends java.lang.Object { + // @ts-ignore + constructor(type: cn.nukkit.utils.BannerPattern.Type, color: cn.nukkit.utils.DyeColor) + // @ts-ignore + public getColor(): cn.nukkit.utils.DyeColor; + // @ts-ignore + public getType(): cn.nukkit.utils.BannerPattern.Type; + // @ts-ignore + public static fromCompoundTag(compoundTag: cn.nukkit.nbt.tag.CompoundTag): cn.nukkit.utils.BannerPattern; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Binary.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Binary.d.ts new file mode 100644 index 00000000..2ea19705 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Binary.d.ts @@ -0,0 +1,119 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class Binary extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static signByte(value: number): number; + // @ts-ignore + public static unsignByte(value: number): number; + // @ts-ignore + public static signShort(value: number): number; + // @ts-ignore + public unsignShort(value: number): number; + // @ts-ignore + public static signInt(value: number): number; + // @ts-ignore + public static unsignInt(value: number): number; + // @ts-ignore + public static readTriad(bytes: number): number; + // @ts-ignore + public static writeTriad(value: number): number[]; + // @ts-ignore + public static readLTriad(bytes: number): number; + // @ts-ignore + public static writeLTriad(value: number): number[]; + // @ts-ignore + public static readUUID(bytes: number): java.util.UUID; + // @ts-ignore + public static writeUUID(uuid: java.util.UUID): number[]; + // @ts-ignore + public static writeMetadata(metadata: cn.nukkit.entity.data.EntityMetadata): number[]; + // @ts-ignore + public static readMetadata(payload: number): cn.nukkit.entity.data.EntityMetadata; + // @ts-ignore + public static readBool(b: number): boolean; + // @ts-ignore + public static writeBool(b: boolean): number; + // @ts-ignore + public static readSignedByte(b: number): number; + // @ts-ignore + public static writeByte(b: number): number; + // @ts-ignore + public static readShort(bytes: number): number; + // @ts-ignore + public static readSignedShort(bytes: number): number; + // @ts-ignore + public static writeShort(s: number): number[]; + // @ts-ignore + public static readLShort(bytes: number): number; + // @ts-ignore + public static readSignedLShort(bytes: number): number; + // @ts-ignore + public static writeLShort(s: number): number[]; + // @ts-ignore + public static readInt(bytes: number): number; + // @ts-ignore + public static writeInt(i: number): number[]; + // @ts-ignore + public static readLInt(bytes: number): number; + // @ts-ignore + public static writeLInt(i: number): number[]; + // @ts-ignore + public static readFloat(bytes: number): number; + // @ts-ignore + public static readFloat(bytes: number, accuracy: number): number; + // @ts-ignore + public static writeFloat(f: number): number[]; + // @ts-ignore + public static readLFloat(bytes: number): number; + // @ts-ignore + public static readLFloat(bytes: number, accuracy: number): number; + // @ts-ignore + public static writeLFloat(f: number): number[]; + // @ts-ignore + public static readDouble(bytes: number): number; + // @ts-ignore + public static writeDouble(d: number): number[]; + // @ts-ignore + public static readLDouble(bytes: number): number; + // @ts-ignore + public static writeLDouble(d: number): number[]; + // @ts-ignore + public static readLong(bytes: number): number; + // @ts-ignore + public static writeLong(l: number): number[]; + // @ts-ignore + public static readLLong(bytes: number): number; + // @ts-ignore + public static writeLLong(l: number): number[]; + // @ts-ignore + public static writeVarInt(v: number): number[]; + // @ts-ignore + public static writeUnsignedVarInt(v: number): number[]; + // @ts-ignore + public static reserveBytes(bytes: number): number[]; + // @ts-ignore + public static bytesToHexString(src: number): string; + // @ts-ignore + public static bytesToHexString(src: number, blank: boolean): string; + // @ts-ignore + public static hexStringToBytes(hexString: string): number[]; + // @ts-ignore + public static subBytes(bytes: number, start: number, length: number): number[]; + // @ts-ignore + public static subBytes(bytes: number, start: number): number[]; + // @ts-ignore + public static splitBytes(bytes: number, chunkSize: number): byte[][]; + // @ts-ignore + public static appendBytes(bytes: number): number[]; + // @ts-ignore + public static appendBytes(byte1: number, bytes2: number): number[]; + // @ts-ignore + public static appendBytes(bytes1: number, bytes2: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.BinaryStream.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BinaryStream.d.ts new file mode 100644 index 00000000..9904e0b7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BinaryStream.d.ts @@ -0,0 +1,191 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class BinaryStream extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + constructor(buffer: number) + // @ts-ignore + constructor(buffer: number, offset: number) + // @ts-ignore + public offset: number; + // @ts-ignore + public reset(): cn.nukkit.utils.BinaryStream; + // @ts-ignore + public setBuffer(buffer: number): void; + // @ts-ignore + public setBuffer(buffer: number, offset: number): void; + // @ts-ignore + public getOffset(): number; + // @ts-ignore + public setOffset(offset: number): void; + // @ts-ignore + public getBuffer(): number[]; + // @ts-ignore + public getCount(): number; + // @ts-ignore + public get(): number[]; + // @ts-ignore + public get(len: number): number[]; + // @ts-ignore + public put(bytes: number): void; + // @ts-ignore + public getLong(): number; + // @ts-ignore + public putLong(l: number): void; + // @ts-ignore + public getInt(): number; + // @ts-ignore + public putInt(i: number): void; + // @ts-ignore + public getLLong(): number; + // @ts-ignore + public putLLong(l: number): void; + // @ts-ignore + public getLInt(): number; + // @ts-ignore + public putLInt(i: number): void; + // @ts-ignore + public getShort(): number; + // @ts-ignore + public putShort(s: number): void; + // @ts-ignore + public getLShort(): number; + // @ts-ignore + public putLShort(s: number): void; + // @ts-ignore + public getFloat(): number; + // @ts-ignore + public getFloat(accuracy: number): number; + // @ts-ignore + public putFloat(v: number): void; + // @ts-ignore + public getLFloat(): number; + // @ts-ignore + public getLFloat(accuracy: number): number; + // @ts-ignore + public putLFloat(v: number): void; + // @ts-ignore + public getTriad(): number; + // @ts-ignore + public putTriad(triad: number): void; + // @ts-ignore + public getLTriad(): number; + // @ts-ignore + public putLTriad(triad: number): void; + // @ts-ignore + public getBoolean(): boolean; + // @ts-ignore + public putBoolean(bool: boolean): void; + // @ts-ignore + public getByte(): number; + // @ts-ignore + public putByte(b: number): void; + /** + * Reads a list of Attributes from the stream. + */ + // @ts-ignore + public getAttributeList(): cn.nukkit.entity.Attribute[]; + /** + * Writes a list of Attributes to the packet buffer using the standard format. + */ + // @ts-ignore + public putAttributeList(attributes: cn.nukkit.entity.Attribute): void; + // @ts-ignore + public putUUID(uuid: java.util.UUID): void; + // @ts-ignore + public getUUID(): java.util.UUID; + // @ts-ignore + public putSkin(skin: cn.nukkit.entity.data.Skin): void; + // @ts-ignore + public getSkin(): cn.nukkit.entity.data.Skin; + // @ts-ignore + public putImage(image: cn.nukkit.utils.SerializedImage): void; + // @ts-ignore + public getImage(): cn.nukkit.utils.SerializedImage; + // @ts-ignore + public getSlot(): cn.nukkit.item.Item; + // @ts-ignore + public putSlot(item: cn.nukkit.item.Item): void; + // @ts-ignore + public getRecipeIngredient(): cn.nukkit.item.Item; + // @ts-ignore + public putRecipeIngredient(ingredient: cn.nukkit.item.Item): void; + // @ts-ignore + public getByteArray(): number[]; + // @ts-ignore + public putByteArray(b: number): void; + // @ts-ignore + public getString(): string; + // @ts-ignore + public putString(string: string): void; + // @ts-ignore + public getUnsignedVarInt(): number; + // @ts-ignore + public putUnsignedVarInt(v: number): void; + // @ts-ignore + public getVarInt(): number; + // @ts-ignore + public putVarInt(v: number): void; + // @ts-ignore + public getVarLong(): number; + // @ts-ignore + public putVarLong(v: number): void; + // @ts-ignore + public getUnsignedVarLong(): number; + // @ts-ignore + public putUnsignedVarLong(v: number): void; + // @ts-ignore + public getBlockVector3(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public getSignedBlockPosition(): cn.nukkit.math.BlockVector3; + // @ts-ignore + public putSignedBlockPosition(v: cn.nukkit.math.BlockVector3): void; + // @ts-ignore + public putBlockVector3(v: cn.nukkit.math.BlockVector3): void; + // @ts-ignore + public putBlockVector3(x: number, y: number, z: number): void; + // @ts-ignore + public getVector3f(): cn.nukkit.math.Vector3f; + // @ts-ignore + public putVector3f(v: cn.nukkit.math.Vector3f): void; + // @ts-ignore + public putVector3f(x: number, y: number, z: number): void; + // @ts-ignore + public putGameRules(gameRules: cn.nukkit.level.GameRules): void; + /** + * Reads and returns an EntityUniqueID + */ + // @ts-ignore + public getEntityUniqueId(): number; + /** + * Writes an EntityUniqueID + */ + // @ts-ignore + public putEntityUniqueId(eid: number): void; + /** + * Reads and returns an EntityRuntimeID + */ + // @ts-ignore + public getEntityRuntimeId(): number; + /** + * Writes an EntityUniqueID + */ + // @ts-ignore + public putEntityRuntimeId(eid: number): void; + // @ts-ignore + public getBlockFace(): cn.nukkit.math.BlockFace; + // @ts-ignore + public putBlockFace(face: cn.nukkit.math.BlockFace): void; + // @ts-ignore + public putEntityLink(link: cn.nukkit.network.protocol.types.EntityLink): void; + // @ts-ignore + public getEntityLink(): cn.nukkit.network.protocol.types.EntityLink; + // @ts-ignore + public feof(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockColor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockColor.d.ts new file mode 100644 index 00000000..3688370d --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockColor.d.ts @@ -0,0 +1,149 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class BlockColor extends java.lang.Object { + // @ts-ignore + constructor(red: number, green: number, blue: number, alpha: number) + // @ts-ignore + constructor(red: number, green: number, blue: number) + // @ts-ignore + constructor(rgb: number) + // @ts-ignore + public static TRANSPARENT_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static VOID_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static AIR_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static GRASS_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static SAND_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static CLOTH_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static TNT_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static ICE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static IRON_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static FOLIAGE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static SNOW_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static CLAY_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static DIRT_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static STONE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static WATER_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static LAVA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static WOOD_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static QUARTZ_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static ADOBE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static WHITE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static ORANGE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static MAGENTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static LIGHT_BLUE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static YELLOW_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static LIME_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static PINK_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static GRAY_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static LIGHT_GRAY_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static CYAN_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static PURPLE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static BLUE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static BROWN_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static GREEN_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static RED_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static BLACK_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static GOLD_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static DIAMOND_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static LAPIS_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static EMERALD_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static OBSIDIAN_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static SPRUCE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static NETHERRACK_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static REDSTONE_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static WHITE_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static ORANGE_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static MAGENTA_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static LIGHT_BLUE_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static YELLOW_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static LIME_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static PINK_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static GRAY_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static LIGHT_GRAY_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static CYAN_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static PURPLE_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static BLUE_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static BROWN_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static GREEN_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static RED_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public static BLACK_TERRACOTA_BLOCK_COLOR: cn.nukkit.utils.BlockColor; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + // @ts-ignore + public getRed(): number; + // @ts-ignore + public getGreen(): number; + // @ts-ignore + public getBlue(): number; + // @ts-ignore + public getAlpha(): number; + // @ts-ignore + public getRGB(): number; + // @ts-ignore + public static getDyeColor(dyeColorMeta: number): cn.nukkit.utils.BlockColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockIterator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockIterator.d.ts new file mode 100644 index 00000000..637e8209 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockIterator.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class BlockIterator extends java.lang.Object { + // @ts-ignore + constructor(level: cn.nukkit.level.Level, start: cn.nukkit.math.Vector3, direction: cn.nukkit.math.Vector3) + // @ts-ignore + constructor(level: cn.nukkit.level.Level, start: cn.nukkit.math.Vector3, direction: cn.nukkit.math.Vector3, yOffset: number) + // @ts-ignore + constructor(level: cn.nukkit.level.Level, start: cn.nukkit.math.Vector3, direction: cn.nukkit.math.Vector3, yOffset: number, maxDistance: number) + // @ts-ignore + public next(): cn.nukkit.block.Block; + // @ts-ignore + public hasNext(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockUpdateEntry.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockUpdateEntry.d.ts new file mode 100644 index 00000000..0abff129 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.BlockUpdateEntry.d.ts @@ -0,0 +1,29 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class BlockUpdateEntry extends java.lang.Object { + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block) + // @ts-ignore + constructor(pos: cn.nukkit.math.Vector3, block: cn.nukkit.block.Block, delay: number, priority: number) + // @ts-ignore + public priority: number; + // @ts-ignore + public delay: number; + // @ts-ignore + public pos: cn.nukkit.math.Vector3; + // @ts-ignore + public block: cn.nukkit.block.Block; + // @ts-ignore + public id: number; + // @ts-ignore + public compareTo(entry: cn.nukkit.utils.BlockUpdateEntry): number; + // @ts-ignore + public equals(object: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ChunkException.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ChunkException.d.ts new file mode 100644 index 00000000..be8623b9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ChunkException.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ChunkException extends java.lang.RuntimeException { + // @ts-ignore + constructor(message: string) + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ClientChainData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ClientChainData.d.ts new file mode 100644 index 00000000..5568e2e4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ClientChainData.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ClientChainData extends java.lang.Object implements cn.nukkit.utils.LoginChainData { + // @ts-ignore + public static UI_PROFILE_CLASSIC: number; + // @ts-ignore + public static UI_PROFILE_POCKET: number; + // @ts-ignore + public static of(buffer: number): cn.nukkit.utils.ClientChainData; + // @ts-ignore + public static read(pk: cn.nukkit.network.protocol.LoginPacket): cn.nukkit.utils.ClientChainData; + // @ts-ignore + public getUsername(): string; + // @ts-ignore + public getClientUUID(): java.util.UUID; + // @ts-ignore + public getIdentityPublicKey(): string; + // @ts-ignore + public getClientId(): number; + // @ts-ignore + public getServerAddress(): string; + // @ts-ignore + public getDeviceModel(): string; + // @ts-ignore + public getDeviceOS(): number; + // @ts-ignore + public getDeviceId(): string; + // @ts-ignore + public getGameVersion(): string; + // @ts-ignore + public getGuiScale(): number; + // @ts-ignore + public getLanguageCode(): string; + // @ts-ignore + public getXUID(): string; + // @ts-ignore + public getCurrentInputMode(): number; + // @ts-ignore + public getDefaultInputMode(): number; + // @ts-ignore + public getCapeData(): string; + // @ts-ignore + public getUIProfile(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public isXboxAuthed(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Config.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Config.d.ts new file mode 100644 index 00000000..f75aca95 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Config.d.ts @@ -0,0 +1,179 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class Config extends java.lang.Object { + /** + * Constructor for Config instance with undefined file object + */ + // @ts-ignore + constructor(type: number) + /** + * Constructor for Config (YAML) instance with undefined file object + */ + // @ts-ignore + constructor() + // @ts-ignore + constructor(file: string) + // @ts-ignore + constructor(file: java.io.File) + // @ts-ignore + constructor(file: string, type: number) + // @ts-ignore + constructor(file: java.io.File, type: number) + // @ts-ignore + constructor(file: string, type: number, defaultMap: java.util.LinkedHashMap) + // @ts-ignore + constructor(file: string, type: number, defaultMap: cn.nukkit.utils.ConfigSection) + // @ts-ignore + constructor(file: java.io.File, type: number, defaultMap: cn.nukkit.utils.ConfigSection) + // @ts-ignore + constructor(file: java.io.File, type: number, defaultMap: java.util.LinkedHashMap) + // @ts-ignore + public static DETECT: number; + // @ts-ignore + public static PROPERTIES: number; + // @ts-ignore + public static CNF: number; + // @ts-ignore + public static JSON: number; + // @ts-ignore + public static YAML: number; + // @ts-ignore + public static ENUM: number; + // @ts-ignore + public static ENUMERATION: number; + // @ts-ignore + public static format: java.util.Map; + // @ts-ignore + public reload(): void; + // @ts-ignore + public load(file: string): boolean; + // @ts-ignore + public load(file: string, type: number): boolean; + // @ts-ignore + public load(file: string, type: number, defaultMap: cn.nukkit.utils.ConfigSection): boolean; + // @ts-ignore + public load(inputStream: java.io.InputStream): boolean; + // @ts-ignore + public check(): boolean; + // @ts-ignore + public isCorrect(): boolean; + /** + * Save configuration into provided file. Internal file object will be set to new file. + */ + // @ts-ignore + public save(file: java.io.File, async: boolean): boolean; + // @ts-ignore + public save(file: java.io.File): boolean; + // @ts-ignore + public save(): boolean; + // @ts-ignore + public save(async: java.lang.Boolean): boolean; + // @ts-ignore + public set(key: string, value: java.lang.Object): void; + // @ts-ignore + public get(key: string): java.lang.Object; + // @ts-ignore + public get(key: string, defaultValue: java.lang.Object): java.lang.Object; + // @ts-ignore + public getSection(key: string): cn.nukkit.utils.ConfigSection; + // @ts-ignore + public isSection(key: string): boolean; + // @ts-ignore + public getSections(key: string): cn.nukkit.utils.ConfigSection; + // @ts-ignore + public getSections(): cn.nukkit.utils.ConfigSection; + // @ts-ignore + public getInt(key: string): number; + // @ts-ignore + public getInt(key: string, defaultValue: number): number; + // @ts-ignore + public isInt(key: string): boolean; + // @ts-ignore + public getLong(key: string): number; + // @ts-ignore + public getLong(key: string, defaultValue: number): number; + // @ts-ignore + public isLong(key: string): boolean; + // @ts-ignore + public getDouble(key: string): number; + // @ts-ignore + public getDouble(key: string, defaultValue: number): number; + // @ts-ignore + public isDouble(key: string): boolean; + // @ts-ignore + public getString(key: string): string; + // @ts-ignore + public getString(key: string, defaultValue: string): string; + // @ts-ignore + public isString(key: string): boolean; + // @ts-ignore + public getBoolean(key: string): boolean; + // @ts-ignore + public getBoolean(key: string, defaultValue: boolean): boolean; + // @ts-ignore + public isBoolean(key: string): boolean; + // @ts-ignore + public getList(key: string): java.util.List; + // @ts-ignore + public getList(key: string, defaultList: java.util.List): java.util.List; + // @ts-ignore + public isList(key: string): boolean; + // @ts-ignore + public getStringList(key: string): java.util.List; + // @ts-ignore + public getIntegerList(key: string): java.util.List; + // @ts-ignore + public getBooleanList(key: string): java.util.List; + // @ts-ignore + public getDoubleList(key: string): java.util.List; + // @ts-ignore + public getFloatList(key: string): java.util.List; + // @ts-ignore + public getLongList(key: string): java.util.List; + // @ts-ignore + public getByteList(key: string): java.util.List; + // @ts-ignore + public getCharacterList(key: string): java.util.List; + // @ts-ignore + public getShortList(key: string): java.util.List; + // @ts-ignore + public getMapList(key: string): java.util.List; + // @ts-ignore + public setAll(map: java.util.LinkedHashMap): void; + // @ts-ignore + public setAll(section: cn.nukkit.utils.ConfigSection): void; + // @ts-ignore + public exists(key: string): boolean; + // @ts-ignore + public exists(key: string, ignoreCase: boolean): boolean; + // @ts-ignore + public remove(key: string): void; + // @ts-ignore + public getAll(): java.util.Map; + /** + * Get root (main) config section of the Config + */ + // @ts-ignore + public getRootSection(): cn.nukkit.utils.ConfigSection; + // @ts-ignore + public setDefault(map: java.util.LinkedHashMap): number; + // @ts-ignore + public setDefault(map: cn.nukkit.utils.ConfigSection): number; + // @ts-ignore + public getNested(key: string): java.lang.Object; + // @ts-ignore + public getNested(key: string, defaultValue: java.lang.Object): java.lang.Object; + // @ts-ignore + public getNestedAs(key: string, type: java.lang.Class): java.lang.Object; + // @ts-ignore + public removeNested(key: string): void; + // @ts-ignore + public getKeys(): java.util.Set; + // @ts-ignore + public getKeys(child: boolean): java.util.Set; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ConfigSection.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ConfigSection.d.ts new file mode 100644 index 00000000..0b0a04a5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ConfigSection.d.ts @@ -0,0 +1,248 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ConfigSection extends java.util.LinkedHashMap { + /** + * Empty ConfigSection constructor + */ + // @ts-ignore + constructor() + /** + * Constructor of ConfigSection that contains initial key/value data + */ + // @ts-ignore + constructor(key: string, value: java.lang.Object) + /** + * Constructor of ConfigSection, based on values stored in map. + */ + // @ts-ignore + constructor(map: java.util.LinkedHashMap) + /** + * Get root section as LinkedHashMap + */ + // @ts-ignore + public getAllMap(): java.util.Map; + /** + * Get new instance of config section + */ + // @ts-ignore + public getAll(): cn.nukkit.utils.ConfigSection; + /** + * Get object by key. If section does not contain value, return null + */ + // @ts-ignore + public get(key: string): java.lang.Object; + /** + * Get object by key. If section does not contain value, return default value + */ + // @ts-ignore + public get(key: string, defaultValue: java.lang.Object): java.lang.Object; + /** + * Store value into config section + */ + // @ts-ignore + public set(key: string, value: java.lang.Object): void; + /** + * Check type of section element defined by key. Return true this element is ConfigSection + */ + // @ts-ignore + public isSection(key: string): boolean; + /** + * Get config section element defined by key + */ + // @ts-ignore + public getSection(key: string): cn.nukkit.utils.ConfigSection; + /** + * Get all ConfigSections in root path. + * Example config: + * a1: + * b1: + * c1: + * c2: + * a2: + * b2: + * c3: + * c4: + * a3: true + * a4: "hello" + * a5: 100 + *

+ * getSections() will return new ConfigSection, that contains sections a1 and a2 only. + */ + // @ts-ignore + public getSections(): cn.nukkit.utils.ConfigSection; + /** + * Get sections (and only sections) from provided path + */ + // @ts-ignore + public getSections(key: string): cn.nukkit.utils.ConfigSection; + /** + * Get int value of config section element + */ + // @ts-ignore + public getInt(key: string): number; + /** + * Get int value of config section element + */ + // @ts-ignore + public getInt(key: string, defaultValue: number): number; + /** + * Check type of section element defined by key. Return true this element is Integer + */ + // @ts-ignore + public isInt(key: string): boolean; + /** + * Get long value of config section element + */ + // @ts-ignore + public getLong(key: string): number; + /** + * Get long value of config section element + */ + // @ts-ignore + public getLong(key: string, defaultValue: number): number; + /** + * Check type of section element defined by key. Return true this element is Long + */ + // @ts-ignore + public isLong(key: string): boolean; + /** + * Get double value of config section element + */ + // @ts-ignore + public getDouble(key: string): number; + /** + * Get double value of config section element + */ + // @ts-ignore + public getDouble(key: string, defaultValue: number): number; + /** + * Check type of section element defined by key. Return true this element is Double + */ + // @ts-ignore + public isDouble(key: string): boolean; + /** + * Get String value of config section element + */ + // @ts-ignore + public getString(key: string): string; + /** + * Get String value of config section element + */ + // @ts-ignore + public getString(key: string, defaultValue: string): string; + /** + * Check type of section element defined by key. Return true this element is String + */ + // @ts-ignore + public isString(key: string): boolean; + /** + * Get boolean value of config section element + */ + // @ts-ignore + public getBoolean(key: string): boolean; + /** + * Get boolean value of config section element + */ + // @ts-ignore + public getBoolean(key: string, defaultValue: boolean): boolean; + /** + * Check type of section element defined by key. Return true this element is Integer + */ + // @ts-ignore + public isBoolean(key: string): boolean; + /** + * Get List value of config section element + */ + // @ts-ignore + public getList(key: string): java.util.List; + /** + * Get List value of config section element + */ + // @ts-ignore + public getList(key: string, defaultList: java.util.List): java.util.List; + /** + * Check type of section element defined by key. Return true this element is List + */ + // @ts-ignore + public isList(key: string): boolean; + /** + * Get String List value of config section element + */ + // @ts-ignore + public getStringList(key: string): java.util.List; + /** + * Get Integer List value of config section element + */ + // @ts-ignore + public getIntegerList(key: string): java.util.List; + /** + * Get Boolean List value of config section element + */ + // @ts-ignore + public getBooleanList(key: string): java.util.List; + /** + * Get Double List value of config section element + */ + // @ts-ignore + public getDoubleList(key: string): java.util.List; + /** + * Get Float List value of config section element + */ + // @ts-ignore + public getFloatList(key: string): java.util.List; + /** + * Get Long List value of config section element + */ + // @ts-ignore + public getLongList(key: string): java.util.List; + /** + * Get Byte List value of config section element + */ + // @ts-ignore + public getByteList(key: string): java.util.List; + /** + * Get Character List value of config section element + */ + // @ts-ignore + public getCharacterList(key: string): java.util.List; + /** + * Get Short List value of config section element + */ + // @ts-ignore + public getShortList(key: string): java.util.List; + /** + * Get Map List value of config section element + */ + // @ts-ignore + public getMapList(key: string): java.util.List; + /** + * Check existence of config section element + */ + // @ts-ignore + public exists(key: string, ignoreCase: boolean): boolean; + /** + * Check existence of config section element + */ + // @ts-ignore + public exists(key: string): boolean; + /** + * Remove config section element + */ + // @ts-ignore + public remove(key: string): void; + /** + * Get all keys + */ + // @ts-ignore + public getKeys(child: boolean): java.util.Set; + /** + * Get all keys + */ + // @ts-ignore + public getKeys(): java.util.Set; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.DefaultPlayerDataSerializer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.DefaultPlayerDataSerializer.d.ts new file mode 100644 index 00000000..e1af3a7c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.DefaultPlayerDataSerializer.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class DefaultPlayerDataSerializer extends java.lang.Object implements cn.nukkit.utils.PlayerDataSerializer { + // @ts-ignore + constructor() + // @ts-ignore + public read(name: string, uuid: java.util.UUID): java.util.Optional; + // @ts-ignore + public write(name: string, uuid: java.util.UUID): java.io.OutputStream; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.DummyBossBar.Builder.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.DummyBossBar.Builder.d.ts new file mode 100644 index 00000000..5b006b44 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.DummyBossBar.Builder.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + namespace DummyBossBar { + // @ts-ignore + class Builder extends java.lang.Object { + // @ts-ignore + constructor(player: cn.nukkit.Player) + // @ts-ignore + public text(text: string): cn.nukkit.utils.DummyBossBar.Builder; + // @ts-ignore + public length(length: number): cn.nukkit.utils.DummyBossBar.Builder; + // @ts-ignore + public color(color: cn.nukkit.utils.BlockColor): cn.nukkit.utils.DummyBossBar.Builder; + // @ts-ignore + public color(red: number, green: number, blue: number): cn.nukkit.utils.DummyBossBar.Builder; + // @ts-ignore + public build(): cn.nukkit.utils.DummyBossBar; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.DummyBossBar.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.DummyBossBar.d.ts new file mode 100644 index 00000000..92b9c670 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.DummyBossBar.d.ts @@ -0,0 +1,47 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class DummyBossBar extends java.lang.Object { + // @ts-ignore + public getPlayer(): cn.nukkit.Player; + // @ts-ignore + public getBossBarId(): number; + // @ts-ignore + public getText(): string; + // @ts-ignore + public setText(text: string): void; + // @ts-ignore + public getLength(): number; + // @ts-ignore + public setLength(length: number): void; + /** + * Color is not working in the current version. We are keep waiting for client support. + */ + // @ts-ignore + public setColor(color: cn.nukkit.utils.BlockColor): void; + // @ts-ignore + public setColor(red: number, green: number, blue: number): void; + // @ts-ignore + public getMixedColor(): number; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + /** + * Don't let the entity go too far from the player, or the BossBar will disappear. + * Update boss entity's position when teleport and each 5s. + */ + // @ts-ignore + public updateBossEntityPosition(): void; + // @ts-ignore + public create(): void; + /** + * Once the player has teleported, resend Show BossBar + */ + // @ts-ignore + public reshow(): void; + // @ts-ignore + public destroy(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.DyeColor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.DyeColor.d.ts new file mode 100644 index 00000000..7d6945d5 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.DyeColor.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class DyeColor extends java.lang.Enum { + // @ts-ignore + public static BLACK: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static RED: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static GREEN: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static BROWN: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static BLUE: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static PURPLE: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static CYAN: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static LIGHT_GRAY: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static GRAY: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static PINK: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static LIME: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static YELLOW: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static LIGHT_BLUE: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static MAGENTA: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static ORANGE: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static WHITE: cn.nukkit.utils.DyeColor; + // @ts-ignore + public static values(): cn.nukkit.utils.DyeColor[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.utils.DyeColor; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeData(): number; + // @ts-ignore + public getWoolData(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeName(): string; + // @ts-ignore + public static getByDyeData(dyeColorMeta: number): cn.nukkit.utils.DyeColor; + // @ts-ignore + public static getByWoolData(woolColorMeta: number): cn.nukkit.utils.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.EventException.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.EventException.d.ts new file mode 100644 index 00000000..7c236ad8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.EventException.d.ts @@ -0,0 +1,34 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class EventException extends java.lang.RuntimeException { + /** + * 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/nukkit/cn.nukkit.utils.Faceable.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Faceable.d.ts new file mode 100644 index 00000000..0ede8dc3 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Faceable.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + interface Faceable { + // @ts-ignore + getBlockFace(): cn.nukkit.math.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Hash.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Hash.d.ts new file mode 100644 index 00000000..ba8420ed --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Hash.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class Hash extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static hashBlock(x: number, y: number, z: number): number; + // @ts-ignore + public static hashBlockX(triple: number): number; + // @ts-ignore + public static hashBlockY(triple: number): number; + // @ts-ignore + public static hashBlockZ(triple: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.HastebinUtility.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.HastebinUtility.d.ts new file mode 100644 index 00000000..0ed88526 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.HastebinUtility.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class HastebinUtility extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static BIN_URL: string; + // @ts-ignore + public static USER_AGENT: string; + // @ts-ignore + public static PATTERN: java.util.regex.Pattern; + // @ts-ignore + public static upload(string: string): string; + // @ts-ignore + public static upload(file: java.io.File): string; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.IterableThreadLocal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.IterableThreadLocal.d.ts new file mode 100644 index 00000000..05d8eb6c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.IterableThreadLocal.d.ts @@ -0,0 +1,27 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + abstract class IterableThreadLocal extends java.lang.ThreadLocal { + // @ts-ignore + constructor() + // @ts-ignore + protected initialValue(): java.lang.Object; + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public init(): java.lang.Object; + // @ts-ignore + public clean(): void; + // @ts-ignore + public static clean(instance: java.lang.ThreadLocal): void; + // @ts-ignore + public static cleanAll(): void; + // @ts-ignore + public getAll(): java.util.Collection; + // @ts-ignore + protected finalize(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.LevelException.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.LevelException.d.ts new file mode 100644 index 00000000..61978684 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.LevelException.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class LevelException extends cn.nukkit.utils.ServerException { + // @ts-ignore + constructor(message: string) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.LogLevel.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.LogLevel.d.ts new file mode 100644 index 00000000..e6423489 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.LogLevel.d.ts @@ -0,0 +1,39 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class LogLevel extends java.lang.Enum { + // @ts-ignore + public static NONE: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static EMERGENCY: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static ALERT: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static CRITICAL: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static ERROR: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static WARNING: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static NOTICE: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static INFO: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static DEBUG: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static DEFAULT_LEVEL: cn.nukkit.utils.LogLevel; + // @ts-ignore + public static values(): cn.nukkit.utils.LogLevel[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.utils.LogLevel; + // @ts-ignore + public log(logger: cn.nukkit.utils.MainLogger, message: string): void; + // @ts-ignore + public log(logger: cn.nukkit.utils.MainLogger, message: string, throwable: java.lang.Throwable): void; + // @ts-ignore + public getLevel(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Logger.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Logger.d.ts new file mode 100644 index 00000000..7266bf61 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Logger.d.ts @@ -0,0 +1,45 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + interface Logger { + // @ts-ignore + emergency(message: string): void; + // @ts-ignore + alert(message: string): void; + // @ts-ignore + critical(message: string): void; + // @ts-ignore + error(message: string): void; + // @ts-ignore + warning(message: string): void; + // @ts-ignore + notice(message: string): void; + // @ts-ignore + info(message: string): void; + // @ts-ignore + debug(message: string): void; + // @ts-ignore + log(level: cn.nukkit.utils.LogLevel, message: string): void; + // @ts-ignore + emergency(message: string, t: java.lang.Throwable): void; + // @ts-ignore + alert(message: string, t: java.lang.Throwable): void; + // @ts-ignore + critical(message: string, t: java.lang.Throwable): void; + // @ts-ignore + error(message: string, t: java.lang.Throwable): void; + // @ts-ignore + warning(message: string, t: java.lang.Throwable): void; + // @ts-ignore + notice(message: string, t: java.lang.Throwable): void; + // @ts-ignore + info(message: string, t: java.lang.Throwable): void; + // @ts-ignore + debug(message: string, t: java.lang.Throwable): void; + // @ts-ignore + log(level: cn.nukkit.utils.LogLevel, message: string, t: java.lang.Throwable): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.LoginChainData.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.LoginChainData.d.ts new file mode 100644 index 00000000..9f8c9cec --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.LoginChainData.d.ts @@ -0,0 +1,43 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + interface LoginChainData { + // @ts-ignore + getUsername(): string; + // @ts-ignore + getClientUUID(): java.util.UUID; + // @ts-ignore + getIdentityPublicKey(): string; + // @ts-ignore + getClientId(): number; + // @ts-ignore + getServerAddress(): string; + // @ts-ignore + getDeviceModel(): string; + // @ts-ignore + getDeviceOS(): number; + // @ts-ignore + getDeviceId(): string; + // @ts-ignore + getGameVersion(): string; + // @ts-ignore + getGuiScale(): number; + // @ts-ignore + getLanguageCode(): string; + // @ts-ignore + getXUID(): string; + // @ts-ignore + isXboxAuthed(): boolean; + // @ts-ignore + getCurrentInputMode(): number; + // @ts-ignore + getDefaultInputMode(): number; + // @ts-ignore + getCapeData(): string; + // @ts-ignore + getUIProfile(): number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.MainLogger.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.MainLogger.d.ts new file mode 100644 index 00000000..1ef1970f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.MainLogger.d.ts @@ -0,0 +1,55 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class MainLogger extends cn.nukkit.utils.ThreadedLogger { + // @ts-ignore + constructor() + // @ts-ignore + public static getLogger(): cn.nukkit.utils.MainLogger; + // @ts-ignore + public emergency(message: string): void; + // @ts-ignore + public alert(message: string): void; + // @ts-ignore + public critical(message: string): void; + // @ts-ignore + public error(message: string): void; + // @ts-ignore + public warning(message: string): void; + // @ts-ignore + public notice(message: string): void; + // @ts-ignore + public info(message: string): void; + // @ts-ignore + public debug(message: string): void; + // @ts-ignore + public setLogDebug(logDebug: java.lang.Boolean): void; + // @ts-ignore + public logException(t: java.lang.Throwable): void; + // @ts-ignore + public log(level: cn.nukkit.utils.LogLevel, message: string): void; + // @ts-ignore + public shutdown(): void; + // @ts-ignore + public emergency(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public alert(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public critical(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public error(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public warning(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public notice(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public info(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public debug(message: string, t: java.lang.Throwable): void; + // @ts-ignore + public log(level: cn.nukkit.utils.LogLevel, message: string, t: java.lang.Throwable): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.MinecartType.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.MinecartType.d.ts new file mode 100644 index 00000000..37c505d8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.MinecartType.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class MinecartType extends java.lang.Enum { + // @ts-ignore + public static MINECART_EMPTY: cn.nukkit.utils.MinecartType; + // @ts-ignore + public static MINECART_CHEST: cn.nukkit.utils.MinecartType; + // @ts-ignore + public static MINECART_FURNACE: cn.nukkit.utils.MinecartType; + // @ts-ignore + public static MINECART_TNT: cn.nukkit.utils.MinecartType; + // @ts-ignore + public static MINECART_MOB_SPAWNER: cn.nukkit.utils.MinecartType; + // @ts-ignore + public static MINECART_HOPPER: cn.nukkit.utils.MinecartType; + // @ts-ignore + public static MINECART_COMMAND_BLOCK: cn.nukkit.utils.MinecartType; + // @ts-ignore + public static MINECART_UNKNOWN: cn.nukkit.utils.MinecartType; + // @ts-ignore + public static values(): cn.nukkit.utils.MinecartType[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.utils.MinecartType; + /** + * Get the variants of the current minecart + */ + // @ts-ignore + public getId(): number; + /** + * Get the name of the minecart variants + */ + // @ts-ignore + public getName(): string; + /** + * Gets if the minecart contains block + */ + // @ts-ignore + public hasBlockInside(): boolean; + /** + * Returns of an instance of Minecart-variants + */ + // @ts-ignore + public static valueOf(types: number): cn.nukkit.utils.MinecartType; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.PlayerDataSerializer.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.PlayerDataSerializer.d.ts new file mode 100644 index 00000000..6b8d212b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.PlayerDataSerializer.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + interface PlayerDataSerializer { + /** + * Reads player data from {@link InputStream} if the file exists otherwise it will create the default data. + */ + // @ts-ignore + read(name: string, uuid: java.util.UUID): java.util.Optional; + /** + * Writes player data to given {@link OutputStream}. + */ + // @ts-ignore + write(name: string, uuid: java.util.UUID): java.io.OutputStream; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.PluginException.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.PluginException.d.ts new file mode 100644 index 00000000..86827b1f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.PluginException.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class PluginException extends cn.nukkit.utils.ServerException { + // @ts-ignore + constructor(message: string) + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.Orientation.State.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.Orientation.State.d.ts new file mode 100644 index 00000000..83d18651 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.Orientation.State.d.ts @@ -0,0 +1,23 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + namespace Rail { + namespace Orientation { + // @ts-ignore + class State extends java.lang.Enum { + // @ts-ignore + public static STRAIGHT: cn.nukkit.utils.Rail.Orientation.State; + // @ts-ignore + public static ASCENDING: cn.nukkit.utils.Rail.Orientation.State; + // @ts-ignore + public static CURVED: cn.nukkit.utils.Rail.Orientation.State; + // @ts-ignore + public static values(): cn.nukkit.utils.Rail.Orientation.State[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.utils.Rail.Orientation.State; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.Orientation.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.Orientation.d.ts new file mode 100644 index 00000000..4cae1804 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.Orientation.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + namespace Rail { + // @ts-ignore + class Orientation extends java.lang.Enum { + // @ts-ignore + public static STRAIGHT_NORTH_SOUTH: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static STRAIGHT_EAST_WEST: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static ASCENDING_EAST: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static ASCENDING_WEST: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static ASCENDING_NORTH: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static ASCENDING_SOUTH: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static CURVED_SOUTH_EAST: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static CURVED_SOUTH_WEST: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static CURVED_NORTH_WEST: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static CURVED_NORTH_EAST: cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static values(): cn.nukkit.utils.Rail.Orientation[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static byMetadata(meta: number): cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static straight(face: cn.nukkit.math.BlockFace): cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static ascending(face: cn.nukkit.math.BlockFace): cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static curved(f1: cn.nukkit.math.BlockFace, f2: cn.nukkit.math.BlockFace): cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public static straightOrCurved(f1: cn.nukkit.math.BlockFace, f2: cn.nukkit.math.BlockFace): cn.nukkit.utils.Rail.Orientation; + // @ts-ignore + public metadata(): number; + // @ts-ignore + public hasConnectingDirections(faces: cn.nukkit.math.BlockFace): boolean; + // @ts-ignore + public connectingDirections(): java.util.List; + // @ts-ignore + public ascendingDirection(): java.util.Optional; + // @ts-ignore + public isStraight(): boolean; + // @ts-ignore + public isAscending(): boolean; + // @ts-ignore + public isCurved(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.d.ts new file mode 100644 index 00000000..6f5192b4 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Rail.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class Rail extends java.lang.Object { + // @ts-ignore + public static isRailBlock(block: cn.nukkit.block.Block): boolean; + // @ts-ignore + public static isRailBlock(blockId: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.SerializedImage.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SerializedImage.d.ts new file mode 100644 index 00000000..b76f5c25 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SerializedImage.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class SerializedImage extends java.lang.Object { + // @ts-ignore + constructor(width: number, height: number, data: number) + // @ts-ignore + public static EMPTY: cn.nukkit.utils.SerializedImage; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + // @ts-ignore + public data: number[]; + // @ts-ignore + public static fromLegacy(skinData: number): cn.nukkit.utils.SerializedImage; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ServerException.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ServerException.d.ts new file mode 100644 index 00000000..23762c20 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ServerException.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ServerException extends java.lang.RuntimeException { + // @ts-ignore + constructor(message: string) + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ServerKiller.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ServerKiller.d.ts new file mode 100644 index 00000000..be63963a --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ServerKiller.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ServerKiller extends java.lang.Thread { + // @ts-ignore + constructor(time: number) + // @ts-ignore + constructor(time: number, unit: java.util.concurrent.TimeUnit) + // @ts-ignore + public sleepTime: number; + // @ts-ignore + public run(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.Path.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.Path.d.ts new file mode 100644 index 00000000..8a81ec73 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.Path.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + namespace SimpleConfig { + // @ts-ignore + interface Path { + // @ts-ignore + value(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.Skip.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.Skip.d.ts new file mode 100644 index 00000000..c0bfb8fc --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.Skip.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + namespace SimpleConfig { + // @ts-ignore + interface Skip { + // @ts-ignore + skipSave(): boolean; + // @ts-ignore + skipLoad(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.d.ts new file mode 100644 index 00000000..417bfbf6 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SimpleConfig.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + abstract class SimpleConfig extends java.lang.Object { + // @ts-ignore + constructor(plugin: cn.nukkit.plugin.Plugin) + // @ts-ignore + constructor(plugin: cn.nukkit.plugin.Plugin, fileName: string) + // @ts-ignore + constructor(file: java.io.File) + // @ts-ignore + public save(): boolean; + // @ts-ignore + public save(async: boolean): boolean; + // @ts-ignore + public load(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.SkinAnimation.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SkinAnimation.d.ts new file mode 100644 index 00000000..db89d249 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.SkinAnimation.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class SkinAnimation extends java.lang.Object { + // @ts-ignore + constructor(image: cn.nukkit.utils.SerializedImage, type: number, frames: number) + // @ts-ignore + public image: cn.nukkit.utils.SerializedImage; + // @ts-ignore + public type: number; + // @ts-ignore + public frames: number; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.TerracottaColor.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.TerracottaColor.d.ts new file mode 100644 index 00000000..fde15fe7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.TerracottaColor.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class TerracottaColor extends java.lang.Enum { + // @ts-ignore + public static BLACK: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static RED: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static GREEN: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static BROWN: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static BLUE: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static PURPLE: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static CYAN: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static LIGHT_GRAY: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static GRAY: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static PINK: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static LIME: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static YELLOW: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static LIGHT_BLUE: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static MAGENTA: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static ORANGE: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static WHITE: cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static values(): cn.nukkit.utils.TerracottaColor[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public getColor(): cn.nukkit.utils.BlockColor; + // @ts-ignore + public getDyeData(): number; + // @ts-ignore + public getTerracottaData(): number; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getDyeName(): string; + // @ts-ignore + public static getByDyeData(dyeColorMeta: number): cn.nukkit.utils.TerracottaColor; + // @ts-ignore + public static getByTerracottaData(terracottaColorMeta: number): cn.nukkit.utils.TerracottaColor; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.TextFormat.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.TextFormat.d.ts new file mode 100644 index 00000000..7f126536 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.TextFormat.d.ts @@ -0,0 +1,114 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class TextFormat extends java.lang.Enum { + // @ts-ignore + public static BLACK: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static DARK_BLUE: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static DARK_GREEN: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static DARK_AQUA: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static DARK_RED: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static DARK_PURPLE: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static GOLD: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static GRAY: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static DARK_GRAY: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static BLUE: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static GREEN: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static AQUA: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static RED: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static LIGHT_PURPLE: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static YELLOW: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static WHITE: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static OBFUSCATED: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static BOLD: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static STRIKETHROUGH: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static UNDERLINE: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static ITALIC: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static RESET: cn.nukkit.utils.TextFormat; + // @ts-ignore + public static ESCAPE: string; + // @ts-ignore + public static values(): cn.nukkit.utils.TextFormat[]; + // @ts-ignore + public static valueOf(name: string): cn.nukkit.utils.TextFormat; + /** + * Gets the TextFormat represented by the specified format code. + */ + // @ts-ignore + public static getByChar(code: string): cn.nukkit.utils.TextFormat; + /** + * Gets the TextFormat represented by the specified format code. + */ + // @ts-ignore + public static getByChar(code: string): cn.nukkit.utils.TextFormat; + /** + * Cleans the given message of all format codes. + */ + // @ts-ignore + public static clean(input: string): string; + // @ts-ignore + public static clean(input: string, recursive: boolean): string; + /** + * Translates a string using an alternate format code character into a + * string that uses the internal TextFormat.ESCAPE format code + * character. The alternate format 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 colorize(altFormatChar: string, textToTranslate: string): string; + /** + * Translates a string, using an ampersand (&) as an alternate format code + * character, into a string that uses the internal TextFormat.ESCAPE format + * code character. The alternate format 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 colorize(textToTranslate: string): string; + /** + * Gets the chat color used at the end of the given input string. + */ + // @ts-ignore + public static getLastColors(input: string): string; + /** + * 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; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadCache.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadCache.d.ts new file mode 100644 index 00000000..21e44bde --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadCache.d.ts @@ -0,0 +1,33 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ThreadCache extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static idArray: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static dataArray: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static byteCache6144: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static byteCache256: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static boolCache4096: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static charCache4096v2: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static charCache4096: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static intCache256: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static fbaos: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static binaryStream: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static clean(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadStore.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadStore.d.ts new file mode 100644 index 00000000..f4856202 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadStore.d.ts @@ -0,0 +1,13 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ThreadStore extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static store: java.util.Map; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadedLogger.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadedLogger.d.ts new file mode 100644 index 00000000..1df7cfdd --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ThreadedLogger.d.ts @@ -0,0 +1,11 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + abstract class ThreadedLogger extends java.lang.Thread implements cn.nukkit.utils.Logger { + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Utils.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Utils.d.ts new file mode 100644 index 00000000..08cbfb3f --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Utils.d.ts @@ -0,0 +1,59 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class Utils extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static writeFile(fileName: string, content: string): void; + // @ts-ignore + public static writeFile(fileName: string, content: java.io.InputStream): void; + // @ts-ignore + public static writeFile(file: java.io.File, content: string): void; + // @ts-ignore + public static writeFile(file: java.io.File, content: java.io.InputStream): void; + // @ts-ignore + public static readFile(file: java.io.File): string; + // @ts-ignore + public static readFile(filename: string): string; + // @ts-ignore + public static readFile(inputStream: java.io.InputStream): string; + // @ts-ignore + public static copyFile(from: java.io.File, to: java.io.File): void; + // @ts-ignore + public static getAllThreadDumps(): string; + // @ts-ignore + public static getExceptionMessage(e: java.lang.Throwable): string; + // @ts-ignore + public static dataToUUID(params: string): java.util.UUID; + // @ts-ignore + public static dataToUUID(params: number): java.util.UUID; + // @ts-ignore + public static rtrim(s: string, character: string): string; + // @ts-ignore + public static isByteArrayEmpty(array: number): boolean; + // @ts-ignore + public static toRGB(r: number, g: number, b: number, a: number): number; + // @ts-ignore + public static toABGR(argb: number): number; + // @ts-ignore + public static splitArray(arrayToSplit: java.lang.Object, chunkSize: number): java.lang.Object[][]; + // @ts-ignore + public static reverseArray(data: java.lang.Object): void; + // @ts-ignore + public static reverseArray(array: java.lang.Object, copy: boolean): java.lang.Object[]; + // @ts-ignore + public static clone2dArray(array: java.lang.Object): java.lang.Object[][]; + // @ts-ignore + public static getOrCreate(map: java.util.Map, key: java.lang.Object): java.util.Map; + // @ts-ignore + public static getOrCreate(map: java.util.Map, clazz: java.lang.Class, key: java.lang.Object): java.lang.Object; + // @ts-ignore + public static toInt(number: java.lang.Object): number; + // @ts-ignore + public static parseHexBinary(s: string): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.VarInt.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.VarInt.d.ts new file mode 100644 index 00000000..8d5dcf2c --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.VarInt.d.ts @@ -0,0 +1,49 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class VarInt extends java.lang.Object { + // @ts-ignore + public static encodeZigZag32(v: number): number; + // @ts-ignore + public static decodeZigZag32(v: number): number; + // @ts-ignore + public static encodeZigZag64(v: number): number; + // @ts-ignore + public static decodeZigZag64(v: number): number; + // @ts-ignore + public static readVarInt(stream: cn.nukkit.utils.BinaryStream): number; + // @ts-ignore + public static readVarInt(stream: java.io.InputStream): number; + // @ts-ignore + public static readUnsignedVarInt(stream: cn.nukkit.utils.BinaryStream): number; + // @ts-ignore + public static readUnsignedVarInt(stream: java.io.InputStream): number; + // @ts-ignore + public static readVarLong(stream: cn.nukkit.utils.BinaryStream): number; + // @ts-ignore + public static readVarLong(stream: java.io.InputStream): number; + // @ts-ignore + public static readUnsignedVarLong(stream: cn.nukkit.utils.BinaryStream): number; + // @ts-ignore + public static readUnsignedVarLong(stream: java.io.InputStream): number; + // @ts-ignore + public static writeVarInt(stream: cn.nukkit.utils.BinaryStream, value: number): void; + // @ts-ignore + public static writeVarInt(stream: java.io.OutputStream, value: number): void; + // @ts-ignore + public static writeUnsignedVarInt(stream: cn.nukkit.utils.BinaryStream, value: number): void; + // @ts-ignore + public static writeUnsignedVarInt(stream: java.io.OutputStream, value: number): void; + // @ts-ignore + public static writeVarLong(stream: cn.nukkit.utils.BinaryStream, value: number): void; + // @ts-ignore + public static writeVarLong(stream: java.io.OutputStream, value: number): void; + // @ts-ignore + public static writeUnsignedVarLong(stream: cn.nukkit.utils.BinaryStream, value: number): void; + // @ts-ignore + public static writeUnsignedVarLong(stream: java.io.OutputStream, value: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Watchdog.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Watchdog.d.ts new file mode 100644 index 00000000..4caccf87 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Watchdog.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class Watchdog extends java.lang.Thread { + // @ts-ignore + constructor(server: cn.nukkit.Server, time: number) + // @ts-ignore + public running: boolean; + // @ts-ignore + public kill(): void; + // @ts-ignore + public run(): void; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.Zlib.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Zlib.d.ts new file mode 100644 index 00000000..293d9ee9 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.Zlib.d.ts @@ -0,0 +1,25 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + abstract class Zlib extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static setProvider(providerIndex: number): void; + // @ts-ignore + public static deflate(data: number): number[]; + // @ts-ignore + public static deflate(data: number, level: number): number[]; + // @ts-ignore + public static deflate(data: number, level: number): number[]; + // @ts-ignore + public static inflate(stream: java.io.InputStream): number[]; + // @ts-ignore + public static inflate(data: number): number[]; + // @ts-ignore + public static inflate(data: number, maxSize: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibOriginal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibOriginal.d.ts new file mode 100644 index 00000000..53b58b29 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibOriginal.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ZlibOriginal extends java.lang.Object implements cn.nukkit.utils.ZlibProvider { + // @ts-ignore + constructor() + // @ts-ignore + public deflate(datas: number, level: number): number[]; + // @ts-ignore + public deflate(data: number, level: number): number[]; + // @ts-ignore + public inflate(stream: java.io.InputStream): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibSingleThreadLowMem.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibSingleThreadLowMem.d.ts new file mode 100644 index 00000000..c194d5e7 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibSingleThreadLowMem.d.ts @@ -0,0 +1,17 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ZlibSingleThreadLowMem extends java.lang.Object implements cn.nukkit.utils.ZlibProvider { + // @ts-ignore + constructor() + // @ts-ignore + public deflate(datas: number, level: number): number[]; + // @ts-ignore + public deflate(data: number, level: number): number[]; + // @ts-ignore + public inflate(stream: java.io.InputStream): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibThreadLocal.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibThreadLocal.d.ts new file mode 100644 index 00000000..197c7d2b --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.ZlibThreadLocal.d.ts @@ -0,0 +1,21 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + // @ts-ignore + class ZlibThreadLocal extends java.lang.Object implements cn.nukkit.utils.ZlibProvider { + // @ts-ignore + constructor() + // @ts-ignore + public static buf: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public static def: cn.nukkit.utils.IterableThreadLocal; + // @ts-ignore + public deflate(datas: number, level: number): number[]; + // @ts-ignore + public deflate(data: number, level: number): number[]; + // @ts-ignore + public inflate(stream: java.io.InputStream): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.bugreport.BugReportGenerator.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.bugreport.BugReportGenerator.d.ts new file mode 100644 index 00000000..19b63635 --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.bugreport.BugReportGenerator.d.ts @@ -0,0 +1,15 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + namespace bugreport { + // @ts-ignore + class BugReportGenerator extends java.lang.Thread { + // @ts-ignore + public run(): void; + // @ts-ignore + public static getCount(bytes: number, si: boolean): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/cn.nukkit.utils.bugreport.ExceptionHandler.d.ts b/packages/types/dist/typings/nukkit/cn.nukkit.utils.bugreport.ExceptionHandler.d.ts new file mode 100644 index 00000000..a1efcbbf --- /dev/null +++ b/packages/types/dist/typings/nukkit/cn.nukkit.utils.bugreport.ExceptionHandler.d.ts @@ -0,0 +1,19 @@ +declare namespace cn { + namespace nukkit { + namespace utils { + namespace bugreport { + // @ts-ignore + class ExceptionHandler extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static registerExceptionHandler(): void; + // @ts-ignore + public uncaughtException(thread: java.lang.Thread, throwable: java.lang.Throwable): void; + // @ts-ignore + public handle(thread: java.lang.Thread, throwable: java.lang.Throwable): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/nukkit/index.d.ts b/packages/types/dist/typings/nukkit/index.d.ts new file mode 100644 index 00000000..55e16fb8 --- /dev/null +++ b/packages/types/dist/typings/nukkit/index.d.ts @@ -0,0 +1,1589 @@ +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +///