类的使用
cn.nukkit.item.Item
使用Item的程序包
程序包
说明
与方块实现相关的类,基类
Block
与方块实体(例如TNT方块爆炸时的实体)相关的类
与发射器行为相关的类
与实体相关的类,包含友好生物,敌对生物等.
与物品栏相关的类.
与物品相关的类.
与世界相关的类.
与NBT格式相关的类.
各种工具类.
-
cn.nukkit中Item的使用
修饰符和类型方法说明Player.dropAndGetItem
(Item item) Drops an item on the ground in front of the player.boolean
Drops an item on the ground in front of the player.void
Adds the items to the main player inventory and drops on the floor any excess.void
Player.startFishing
(Item fishingRod) Start fishing -
cn.nukkit.block中Item的使用
返回Item的cn.nukkit.block中的方法修饰符和类型方法说明BlockComposter.empty()
Item[]
控制方块被破坏时掉落的物品 常在Level.useBreakOn(Vector3, int, BlockFace, Item, Player, boolean, boolean)
方法被调用Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
BlockFlowerPot.getFlower()
protected Item
BlockLeaves.getSapling()
protected Item
BlockLeaves2.getSapling()
Block.toItem()
BlockAcaciaSignPost.toItem()
BlockAcaciaWallSign.toItem()
BlockBamboo.toItem()
BlockBambooSapling.toItem()
BlockBanner.toItem()
BlockBarrel.toItem()
BlockBed.toItem()
BlockBedrockInvisible.toItem()
BlockBeehive.toItem()
BlockBeetroot.toItem()
BlockBell.toItem()
BlockBirchSignPost.toItem()
BlockBirchWallSign.toItem()
BlockBlastFurnaceBurning.toItem()
BlockBrewingStand.toItem()
BlockBubbleColumn.toItem()
BlockButton.toItem()
BlockCake.toItem()
BlockCampfire.toItem()
BlockCampfireSoul.toItem()
BlockCandleCake.toItem()
BlockCarrot.toItem()
BlockCauldron.toItem()
BlockChain.toItem()
BlockChest.toItem()
BlockCocoa.toItem()
BlockCommandBlock.toItem()
BlockComposter.toItem()
BlockCoralFan.toItem()
BlockCoralFanHang.toItem()
BlockCrimsonSignPost.toItem()
BlockCrimsonWallSign.toItem()
BlockCropsStem.toItem()
BlockDarkOakSignPost.toItem()
BlockDarkOakWallSign.toItem()
BlockDaylightDetector.toItem()
BlockDaylightDetectorInverted.toItem()
BlockDispenser.toItem()
BlockDoorAcacia.toItem()
BlockDoorBirch.toItem()
BlockDoorCrimson.toItem()
BlockDoorDarkOak.toItem()
BlockDoorIron.toItem()
BlockDoorJungle.toItem()
BlockDoorMangrove.toItem()
BlockDoorSpruce.toItem()
BlockDoorWarped.toItem()
BlockDoorWood.toItem()
BlockDoubleSlabBase.toItem()
BlockEnderChest.toItem()
BlockEndGateway.toItem()
BlockEndPortal.toItem()
BlockEndPortalFrame.toItem()
BlockEndRod.toItem()
BlockFarmland.toItem()
BlockFire.toItem()
BlockFlowerPot.toItem()
BlockFurnaceBurning.toItem()
BlockGrindstone.toItem()
BlockHopper.toItem()
BlockIceFrosted.toItem()
BlockIronBars.toItem()
BlockItemFrame.toItem()
BlockItemFrameGlow.toItem()
BlockJukebox.toItem()
BlockJungleSignPost.toItem()
BlockJungleWallSign.toItem()
BlockKelp.toItem()
BlockLever.toItem()
BlockLichen.toItem()
BlockLight.toItem()
BlockLiquid.toItem()
BlockLoom.toItem()
BlockMangroveSignPost.toItem()
BlockMangroveWallSign.toItem()
BlockNetherPortal.toItem()
BlockNetherSprout.toItem()
BlockNetherWart.toItem()
BlockObsidianGlowing.toItem()
BlockOreRedstoneDeepslateGlowing.toItem()
BlockOreRedstoneGlowing.toItem()
BlockPistonBase.toItem()
BlockPistonHead.toItem()
BlockPotato.toItem()
BlockPumpkin.toItem()
BlockPurpur.toItem()
BlockQuartz.toItem()
BlockRail.toItem()
BlockRedSandstone.toItem()
BlockRedstoneComparator.toItem()
BlockRedstoneLampLit.toItem()
BlockRedstoneRepeater.toItem()
BlockRedstoneTorchUnlit.toItem()
BlockRedstoneWire.toItem()
BlockScaffolding.toItem()
BlockSeagrass.toItem()
BlockSeaPickle.toItem()
BlockSignPost.toItem()
BlockSkull.toItem()
BlockSlabWarped.toItem()
BlockSmokerBurning.toItem()
BlockSnowLayer.toItem()
BlockSpruceSignPost.toItem()
BlockSpruceWallSign.toItem()
BlockStonecutterBlock.toItem()
BlockSugarcane.toItem()
BlockSweetBerryBush.toItem()
BlockTripWire.toItem()
BlockTripWireHook.toItem()
BlockTurtleEgg.toItem()
BlockUndyedShulkerBox.toItem()
BlockVine.toItem()
BlockWarpedSignPost.toItem()
BlockWarpedWallSign.toItem()
BlockWaterLily.toItem()
BlockWheat.toItem()
default Item
IBlockOreRedstoneGlowing.toItem()
参数类型为Item的cn.nukkit.block中的方法修饰符和类型方法说明double
Block.calculateBreakTick
(Item item, Player player) 计算方块挖掘需要多少tick (计算算法来自https://minecraft.fandom.com/wiki/Breaking)double
Block.calculateBreakTime
(Item item) double
Block.calculateBreakTime
(Item item, Player player) 计算方块挖掘时间double
BlockBeacon.calculateBreakTime
(Item item) double
BlockBeacon.calculateBreakTime
(Item item, Player player) boolean
Block.canBeBrokenWith
(Item item) boolean
Block.canHarvest
(Item item) boolean
BlockAzaleaLeaves.canHarvest
(Item item) boolean
BlockLichen.canHarvest
(Item item) double
Block.getBreakTime
(Item item) 已过时。double
Block.getBreakTime
(Item item, Player player) 已过时。static int
protected DispenseBehavior
BlockDispenser.getDispenseBehavior
(Item item) protected DispenseBehavior
BlockDropper.getDispenseBehavior
(Item item) Item[]
控制方块被破坏时掉落的物品 常在Level.useBreakOn(Vector3, int, BlockFace, Item, Player, boolean, boolean)
方法被调用Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
Item[]
boolean
Block.isBreakable
(Item item) boolean
Block.isBreakable
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean setBlockDestroy) boolean
BlockAir.isBreakable
(Item item) boolean
BlockAllow.isBreakable
(Item item) boolean
BlockAllow.isBreakable
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean setBlockDestroy) boolean
BlockBarrier.isBreakable
(Item item) boolean
BlockBedrock.isBreakable
(Item item) boolean
BlockBedrockInvisible.isBreakable
(Item item) boolean
BlockBorder.isBreakable
(Item item) boolean
BlockBorder.isBreakable
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean setBlockDestroy) boolean
BlockBubbleColumn.isBreakable
(Item item) boolean
BlockCommandBlock.isBreakable
(Item item) boolean
BlockDeny.isBreakable
(Item item) boolean
BlockDeny.isBreakable
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean setBlockDestroy) boolean
BlockEndGateway.isBreakable
(Item item) boolean
BlockEndPortal.isBreakable
(Item item) boolean
BlockEndPortalFrame.isBreakable
(Item item) boolean
BlockFire.isBreakable
(Item item) boolean
BlockJigsaw.isBreakable
(Item item) boolean
BlockLiquid.isBreakable
(Item item) boolean
BlockMoving.isBreakable
(Item item) boolean
BlockNetherPortal.isBreakable
(Item item) boolean
BlockStructure.isBreakable
(Item item) boolean
BlockStructureVoid.isBreakable
(Item item) protected boolean
BlockDoubleSlabBase.isCorrectTool
(Item item) protected boolean
BlockDoubleSlabCrimson.isCorrectTool
(Item item) protected boolean
BlockDoubleSlabWarped.isCorrectTool
(Item item) protected boolean
BlockDoubleSlabWood.isCorrectTool
(Item item) boolean
boolean
boolean
Block.mustSilkTouch
(Vector3 vector, int layer, BlockFace face, Item item, Player player) boolean
BlockBeehive.mustSilkTouch
(Vector3 vector, int layer, BlockFace face, Item item, Player player) boolean
Block.onActivate
(Item item) boolean
Block.onActivate
(Item item, Player player) boolean
BlockAnvil.onActivate
(Item item, Player player) boolean
BlockAzalea.onActivate
(Item item, Player player) boolean
BlockBamboo.onActivate
(Item item, Player player) boolean
BlockBambooSapling.onActivate
(Item item, Player player) boolean
BlockBarrel.onActivate
(Item item, Player player) boolean
BlockBeacon.onActivate
(Item item, Player player) boolean
BlockBed.onActivate
(Item item) boolean
BlockBed.onActivate
(Item item, Player player) boolean
BlockBeehive.onActivate
(Item item, Player player) boolean
BlockBell.onActivate
(Item item, Player player) boolean
BlockBigDripleaf.onActivate
(Item item, Player player) boolean
BlockBrewingStand.onActivate
(Item item, Player player) boolean
BlockButton.onActivate
(Item item, Player player) boolean
BlockCake.onActivate
(Item item, Player player) boolean
BlockCampfire.onActivate
(Item item, Player player) boolean
BlockCandle.onActivate
(Item item, Player player) boolean
BlockCandleCake.onActivate
(Item item, Player player) boolean
BlockCartographyTable.onActivate
(Item item, Player player) boolean
BlockCarvedPumpkin.onActivate
(Item item, Player player) boolean
BlockCauldron.onActivate
(Item item, Player player) boolean
BlockCauldronLava.onActivate
(Item item, Player player) boolean
BlockCaveVines.onActivate
(Item item, Player player) boolean
BlockChest.onActivate
(Item item, Player player) boolean
BlockCocoa.onActivate
(Item item, Player player) boolean
BlockCommandBlock.onActivate
(Item item, Player player) boolean
BlockComposter.onActivate
(Item item, Player player) boolean
BlockCopperBase.onActivate
(Item item, Player player) boolean
BlockCraftingTable.onActivate
(Item item, Player player) boolean
BlockCrops.onActivate
(Item item, Player player) boolean
BlockDaylightDetector.onActivate
(Item item, Player player) boolean
BlockDaylightDetectorInverted.onActivate
(Item item, Player player) boolean
BlockDirt.onActivate
(Item item, Player player) boolean
BlockDirtWithRoots.onActivate
(Item item, Player player) boolean
BlockDispenser.onActivate
(Item item, Player player) boolean
BlockDoor.onActivate
(Item item, Player player) boolean
BlockDoorIron.onActivate
(Item item, Player player) boolean
BlockDoublePlant.onActivate
(Item item, Player player) boolean
BlockDoubleSlabCopperBase.onActivate
(Item item, Player player) boolean
BlockEnchantingTable.onActivate
(Item item, Player player) boolean
BlockEnderChest.onActivate
(Item item, Player player) boolean
BlockEndPortalFrame.onActivate
(Item item, Player player) boolean
BlockFenceGate.onActivate
(Item item, Player player) boolean
BlockFlower.onActivate
(Item item, Player player) boolean
BlockFlowerPot.onActivate
(Item item, Player player) boolean
BlockFungus.onActivate
(Item item, Player player) boolean
BlockFurnaceBurning.onActivate
(Item item, Player player) boolean
BlockGlowLichen.onActivate
(Item item, Player player) boolean
BlockGrass.onActivate
(Item item) boolean
BlockGrass.onActivate
(Item item, Player player) boolean
BlockGrassPath.onActivate
(Item item, Player player) boolean
BlockGrindstone.onActivate
(Item item, Player player) boolean
BlockHopper.onActivate
(Item item, Player player) boolean
BlockItemFrame.onActivate
(Item item, Player player) boolean
BlockJukebox.onActivate
(Item item, Player player) boolean
BlockKelp.onActivate
(Item item, Player player) boolean
BlockLectern.onActivate
(Item item, Player player) boolean
BlockLever.onActivate
(Item item, Player player) boolean
BlockLodestone.onActivate
(Item item, Player player) boolean
BlockLog.onActivate
(Item item, Player player) boolean
BlockLoom.onActivate
(Item item, Player player) boolean
BlockMangroveLeaves.onActivate
(Item item) boolean
BlockMangrovePropagule.onActivate
(Item item, Player player) boolean
BlockMoss.onActivate
(Item item, Player player) boolean
BlockMushroom.onActivate
(Item item, Player player) boolean
BlockMycelium.onActivate
(Item item, Player player) boolean
BlockNetherrack.onActivate
(Item item, Player player) boolean
BlockNoteblock.onActivate
(Item item, Player player) boolean
BlockNylium.onActivate
(Item item, Player player) boolean
BlockPodzol.onActivate
(Item item, Player player) boolean
BlockPumpkin.onActivate
(Item item, Player player) boolean
BlockPumpkinLit.onActivate
(Item item, Player player) boolean
BlockRedstoneComparator.onActivate
(Item item, Player player) boolean
BlockRedstoneRepeater.onActivate
(Item item, Player player) boolean
BlockRespawnAnchor.onActivate
(Item item, Player player) boolean
BlockSapling.onActivate
(Item item, Player player) boolean
BlockSeagrass.onActivate
(Item item, Player player) boolean
BlockSeaPickle.onActivate
(Item item, Player player) boolean
BlockSignPost.onActivate
(Item item, Player player) boolean
BlockSlabCopperBase.onActivate
(Item item, Player player) boolean
BlockSmallDripleaf.onActivate
(Item item, Player player) boolean
BlockSmithingTable.onActivate
(Item item, Player player) boolean
BlockSnow.onActivate
(Item item, Player player) boolean
BlockStairsCopperBase.onActivate
(Item item, Player player) boolean
BlockStemStripped.onActivate
(Item item, Player player) boolean
BlockStonecutterBlock.onActivate
(Item item, Player player) boolean
BlockStructure.onActivate
(Item item, Player player) boolean
BlockSugarcane.onActivate
(Item item, Player player) boolean
BlockSweetBerryBush.onActivate
(Item item, Player player) boolean
BlockTallGrass.onActivate
(Item item, Player player) boolean
BlockTNT.onActivate
(Item item, Player player) boolean
BlockTrapdoor.onActivate
(Item item, Player player) boolean
BlockTrapdoorIron.onActivate
(Item item, Player player) boolean
BlockTurtleEgg.onActivate
(Item item, Player player) boolean
BlockUndyedShulkerBox.onActivate
(Item item, Player player) boolean
BlockVinesNether.onActivate
(Item item, Player player) boolean
BlockWitherRose.onActivate
(Item item, Player player) boolean
BlockWoodStripped.onActivate
(Item item, Player player) default boolean
Oxidizable.onActivate
(Item item, Player player) default boolean
Waxable.onActivate
(Item item, Player player) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Block.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) Place and initialize a this block correctly in the world.boolean
BlockAllow.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockAmethystBud.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockAnvil.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockAzalea.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockAzaleaLeaves.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBamboo.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBambooSapling.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBanner.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBarrel.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBasalt.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBeacon.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBed.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBeehive.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBell.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBigDripleaf.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBone.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBorder.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBrewingStand.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockBubbleColumn.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockButton.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCactus.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCake.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCampfire.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCandle.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCandleCake.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCarpet.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCauldron.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockChain.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockChest.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockChorusFlower.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockChorusPlant.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCocoa.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCommandBlock.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockConcretePowder.place
(Item item, Block b, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockConduit.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCoral.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCoralFan.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockCrops.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockDaylightDetector.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockDeadBush.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockDeny.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockDispenser.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockDoor.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockDoublePlant.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockEnchantingTable.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockEnderChest.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockEndGateway.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockEndPortal.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockEndPortalFrame.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockEndRod.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockFenceGate.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockFlower.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockFlowerPot.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockFrogSpawn.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockFungus.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockFurnaceBurning.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockGrindstone.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockHayBale.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockHopper.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockIceFrosted.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockItemFrame.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockJigsaw.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockJukebox.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockKelp.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLadder.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLantern.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLava.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLeaves.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLectern.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLever.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLichen.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLightningRod.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLodestone.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLog.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockLoom.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockMangrovePropagule.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockMangroveRoots.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockMoving.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockMushroom.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockNetherReactor.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockNetherWart.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockNoteblock.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockObserver.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockPistonBase.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockPointedDripstone.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockPressurePlateBase.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockPumpkin.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockPurpur.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockQuartz.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRail.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRedstone.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRedstoneComparator.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRedstoneDiode.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRedstoneLamp.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRedstoneRepeater.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRedstoneTorch.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRedstoneWire.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRoots.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockRootsHanging.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSapling.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockScaffolding.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSeagrass.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSeaPickle.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSignPost.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSkull.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSlab.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSmallDripleaf.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSnowLayer.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSponge.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSporeBlossom.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockStairs.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockStonecutterBlock.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockStructure.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSugarcane.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockSweetBerryBush.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockTallGrass.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockTerracottaGlazed.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockTorch.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockTrapdoor.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockTrappedChest.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockTripWire.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockTripWireHook.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockTurtleEgg.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockUndyedShulkerBox.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockVine.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockVinesNether.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockWallBase.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockWater.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) boolean
BlockWaterLily.place
(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) static void
protected void
BlockCauldron.replaceBucket
(Item oldBucket, Player player, Item newBucket) boolean
-
cn.nukkit.block.customblock中Item的使用
-
cn.nukkit.blockentity中Item的使用
返回Item的cn.nukkit.blockentity中的方法修饰符和类型方法说明BlockEntityLectern.getBook()
BlockEntityBrewingStand.getItem
(int index) BlockEntityCampfire.getItem
(int index) BlockEntityContainer.getItem
(int index) 返回一个存储在容器里的物品的Item
对象。BlockEntityEjectable.getItem
(int index) BlockEntityFurnace.getItem
(int index) BlockEntityHopper.getItem
(int index) BlockEntityItemFrame.getItem()
BlockEntityShulkerBox.getItem
(int index) BlockEntitySpawnableContainer.getItem
(int index) BlockEntityJukebox.getRecordItem()
参数类型为Item的cn.nukkit.blockentity中的方法修饰符和类型方法说明protected void
protected boolean
BlockEntityBrewingStand.checkIngredient
(Item ingredient) 已过时。protected SmeltingRecipe
BlockEntityBlastFurnace.matchRecipe
(Item raw) protected SmeltingRecipe
BlockEntityFurnace.matchRecipe
(Item raw) protected SmeltingRecipe
BlockEntitySmoker.matchRecipe
(Item raw) void
void
void
void
把一个物品存储进容器。void
void
void
void
void
void
void
void
BlockEntityJukebox.setRecordItem
(Item recordItem) -
cn.nukkit.dispenser中Item的使用
返回Item的cn.nukkit.dispenser中的方法修饰符和类型方法说明BoatDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) BucketDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) DefaultDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) DispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) DropperDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) DyeDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) EmptyBucketDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) FireworksDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) FlintAndSteelDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) ProjectileDispenseBehavior.dispense
(BlockDispenser source, BlockFace face, Item item) ShulkerBoxDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) SpawnEggDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) TNTDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) 参数类型为Item的cn.nukkit.dispenser中的方法修饰符和类型方法说明BoatDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) BucketDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) DefaultDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) DispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) DropperDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) DyeDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) EmptyBucketDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) FireworksDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) FlintAndSteelDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) ProjectileDispenseBehavior.dispense
(BlockDispenser source, BlockFace face, Item item) ShulkerBoxDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) SpawnEggDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) TNTDispenseBehavior.dispense
(BlockDispenser block, BlockFace face, Item item) -
cn.nukkit.entity中Item的使用
返回Item的cn.nukkit.entity中的方法修饰符和类型方法说明protected Item
EntityHumanType.damageArmor
(Item armor, Entity damager) Item[]
EntityHumanType.getDrops()
Item[]
EntityLiving.getDrops()
参数类型为Item的cn.nukkit.entity中的方法修饰符和类型方法说明protected boolean
EntityCreature.applyNameTag
(Player player, Item item) boolean
EntityHumanType.applyNameTag
(Item item) 已过时。protected boolean
EntityHumanType.applyNameTag
(Player player, Item item) default boolean
EntityNameable.applyNameTag
(Item item) 已过时。protected double
EntityHumanType.calculateEnchantmentProtectionFactor
(Item item, EntityDamageEvent source) protected Item
EntityHumanType.damageArmor
(Item armor, Entity damager) boolean
Entity.onInteract
(Player player, Item item) boolean
Entity.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityCreature.onInteract
(Player player, Item item, Vector3 clickedPos) default boolean
EntityNameable.onInteract
(Player player, Item item, Vector3 clickedPos) final boolean
EntityCreature.playerApplyNameTag
(Player player, Item item) default boolean
EntityNameable.playerApplyNameTag
(Player player, Item item) default boolean
EntityNameable.playerApplyNameTag
(Player player, Item item, boolean consume) -
cn.nukkit.entity.data中Item的使用
参数类型为Item的cn.nukkit.entity.data中的方法 -
cn.nukkit.entity.item中Item的使用
声明为Item的cn.nukkit.entity.item中的字段返回Item的cn.nukkit.entity.item中的方法参数类型为Item的cn.nukkit.entity.item中的方法修饰符和类型方法说明boolean
EntityArmorStand.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityBoat.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityChestBoat.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityMinecartAbstract.onInteract
(Player p, Item item, Vector3 clickedPos) boolean
EntityMinecartChest.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityMinecartHopper.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityMinecartTNT.onInteract
(Player player, Item item, Vector3 clickedPos) void
EntityFirework.setFirework
(Item item) -
cn.nukkit.entity.mob中Item的使用
返回Item的cn.nukkit.entity.mob中的方法修饰符和类型方法说明protected Item
EntityMob.damageArmor
(Item armor, Entity damager) Item[]
EntityCreeper.getDrops()
Item[]
EntityDrowned.getDrops()
Item[]
EntityIronGolem.getDrops()
Item[]
EntityPhantom.getDrops()
Item[]
EntitySkeleton.getDrops()
Item[]
EntitySlime.getDrops()
Item[]
EntitySpider.getDrops()
Item[]
EntityStray.getDrops()
Item[]
EntityVindicator.getDrops()
参数类型为Item的cn.nukkit.entity.mob中的方法修饰符和类型方法说明boolean
EntityEnderDragon.applyNameTag
(Item item) 已过时。protected boolean
EntityEnderDragon.applyNameTag
(Player player, Item item) protected double
EntityMob.calculateEnchantmentProtectionFactor
(Item item, EntityDamageEvent source) protected Item
EntityMob.damageArmor
(Item armor, Entity damager) boolean
EntityCreeper.onInteract
(Player player, Item item, Vector3 clickedPos) -
cn.nukkit.entity.passive中Item的使用
返回Item的cn.nukkit.entity.passive中的方法修饰符和类型方法说明Item[]
EntityChicken.getDrops()
Item[]
EntityCow.getDrops()
Item[]
EntityDolphin.getDrops()
Item[]
EntityDonkey.getDrops()
Item[]
EntityHorse.getDrops()
Item[]
EntityMooshroom.getDrops()
Item[]
EntityMule.getDrops()
Item[]
EntityParrot.getDrops()
Item[]
EntityPig.getDrops()
Item[]
EntityPolarBear.getDrops()
Item[]
EntityRabbit.getDrops()
Item[]
EntitySheep.getDrops()
Item[]
EntitySkeletonHorse.getDrops()
Item[]
EntitySquid.getDrops()
Item[]
EntityZombieHorse.getDrops()
参数类型为Item的cn.nukkit.entity.passive中的方法修饰符和类型方法说明boolean
EntityAnimal.isBreedingItem
(Item item) boolean
EntityChicken.isBreedingItem
(Item item) boolean
EntityOcelot.isBreedingItem
(Item item) boolean
EntityPig.isBreedingItem
(Item item) boolean
EntityWolf.isBreedingItem
(Item item) boolean
EntityAnimal.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityNPCEntity.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntitySheep.onInteract
(Player player, Item item, Vector3 clickedPos) protected void
EntityAnimal.sendBreedingAnimation
(Item item) -
cn.nukkit.entity.projectile中Item的使用
声明为Item的cn.nukkit.entity.projectile中的字段参数类型为Item的cn.nukkit.entity.projectile中的方法 -
cn.nukkit.event.block中Item的使用
声明为Item的cn.nukkit.event.block中的字段修饰符和类型字段说明protected Item[]
BlockBreakEvent.blockDrops
protected final Item
BlockBreakEvent.item
protected final Item
BlockPlaceEvent.item
返回Item的cn.nukkit.event.block中的方法修饰符和类型方法说明LecternDropBookEvent.getBook()
LecternPlaceBookEvent.getBook()
ComposterEmptyEvent.getDrop()
Item[]
BlockBreakEvent.getDrops()
Item[]
BlockHarvestEvent.getDrops()
BlockBreakEvent.getItem()
BlockPlaceEvent.getItem()
ComposterFillEvent.getItem()
ItemFrameDropItemEvent.getItem()
ComposterEmptyEvent.getItemUsed()
参数类型为Item的cn.nukkit.event.block中的方法参数类型为Item的cn.nukkit.event.block中的构造器限定符构造器说明BlockBreakEvent
(Player player, Block block, Item item, Item[] drops) BlockBreakEvent
(Player player, Block block, Item item, Item[] drops, boolean instaBreak) BlockBreakEvent
(Player player, Block block, Item item, Item[] drops, boolean instaBreak, boolean fastBreak) BlockBreakEvent
(Player player, Block block, BlockFace face, Item item, Item[] drops, boolean instaBreak, boolean fastBreak) BlockHarvestEvent
(Block block, Block newState, Item[] drops) ComposterEmptyEvent
(Block block, Player player, Item itemUsed, Item drop, int newLevel) ComposterFillEvent
(Block block, Player player, Item item, int chance, boolean success) ItemFrameDropItemEvent
(Player player, Block block, BlockEntityItemFrame itemFrame, Item item) LecternDropBookEvent
(Player player, BlockEntityLectern lectern, Item book) LecternPlaceBookEvent
(Player player, BlockEntityLectern lectern, Item book) -
cn.nukkit.event.entity中Item的使用
返回Item的cn.nukkit.event.entity中的方法修饰符和类型方法说明EntityShootBowEvent.getBow()
EntityShootCrossbowEvent.getCrossbow()
Item[]
EntityDeathEvent.getDrops()
EntityArmorChangeEvent.getNewItem()
EntityInventoryChangeEvent.getNewItem()
EntityArmorChangeEvent.getOldItem()
EntityInventoryChangeEvent.getOldItem()
参数类型为Item的cn.nukkit.event.entity中的方法修饰符和类型方法说明void
void
EntityArmorChangeEvent.setNewItem
(Item newItem) void
EntityInventoryChangeEvent.setNewItem
(Item newItem) 参数类型为Item的cn.nukkit.event.entity中的构造器限定符构造器说明EntityArmorChangeEvent
(Entity entity, Item oldItem, Item newItem, int slot) EntityDeathEvent
(EntityLiving entity, Item[] drops) EntityInventoryChangeEvent
(Entity entity, Item oldItem, Item newItem, int slot) EntityShootBowEvent
(EntityLiving shooter, Item bow, EntityProjectile projectile, double force) EntityShootCrossbowEvent
(EntityLiving shooter, Item crossbow, EntityProjectile... projectiles) -
cn.nukkit.event.inventory中Item的使用
修饰符和类型方法说明SmithingTableEvent.getEquipmentItem()
GrindstoneEvent.getFirstItem()
FurnaceBurnEvent.getFuel()
InventoryClickEvent.getHeldItem()
BrewEvent.getIngredient()
StartBrewEvent.getIngredient()
SmithingTableEvent.getIngredientItem()
Item[]
CraftItemEvent.getInput()
InventoryMoveItemEvent.getItem()
RepairItemEvent.getMaterialItem()
EnchantItemEvent.getNewItem()
RepairItemEvent.getNewItem()
EnchantItemEvent.getOldItem()
RepairItemEvent.getOldItem()
BrewEvent.getPotion
(int index) StartBrewEvent.getPotion
(int index) Item[]
BrewEvent.getPotions()
Item[]
StartBrewEvent.getPotions()
CampfireSmeltEvent.getResult()
FurnaceSmeltEvent.getResult()
GrindstoneEvent.getResultItem()
SmithingTableEvent.getResultItem()
GrindstoneEvent.getSecondItem()
CampfireSmeltEvent.getSource()
FurnaceSmeltEvent.getSource()
InventoryClickEvent.getSourceItem()
参数类型为Item的cn.nukkit.event.inventory中的方法修饰符和类型方法说明void
void
EnchantItemEvent.setNewItem
(Item newItem) void
EnchantItemEvent.setOldItem
(Item oldItem) void
void
参数类型为Item的cn.nukkit.event.inventory中的构造器限定符构造器说明CampfireSmeltEvent
(BlockEntityCampfire campfire, Item source, Item result) CraftItemEvent
(Player player, Item[] input, Recipe recipe) EnchantItemEvent
(EnchantInventory inventory, Item oldItem, Item newItem, int cost, Player p) FurnaceBurnEvent
(BlockEntityFurnace furnace, Item fuel, short burnTime) FurnaceSmeltEvent
(BlockEntityFurnace furnace, Item source, Item result) GrindstoneEvent
(GrindstoneInventory inventory, Item firstItem, Item resultItem, Item secondItem, int cost, Player player) InventoryClickEvent
(Player who, Inventory inventory, int slot, Item sourceItem, Item heldItem) InventoryMoveItemEvent
(Inventory from, Inventory targetInventory, InventoryHolder source, Item item, InventoryMoveItemEvent.Action action) RepairItemEvent
(AnvilInventory inventory, Item oldItem, Item newItem, Item materialItem, int cost, Player player) SmithingTableEvent
(SmithingInventory inventory, Item equipmentItem, Item resultItem, Item ingredientItem, Player player) -
cn.nukkit.event.player中Item的使用
声明为Item的cn.nukkit.event.player中的字段修饰符和类型字段说明protected final Item
PlayerGlassBottleFillEvent.item
protected final Item
PlayerInteractEntityEvent.item
protected final Item
PlayerInteractEvent.item
返回Item的cn.nukkit.event.player中的方法修饰符和类型方法说明PlayerBlockPickEvent.getItem()
PlayerDropItemEvent.getItem()
PlayerGlassBottleFillEvent.getItem()
PlayerInteractEntityEvent.getItem()
PlayerInteractEvent.getItem()
PlayerItemConsumeEvent.getItem()
PlayerItemHeldEvent.getItem()
PlayerFishEvent.getLoot()
PlayerMapInfoRequestEvent.getMap()
PlayerEditBookEvent.getNewBook()
PlayerEditBookEvent.getOldBook()
参数类型为Item的cn.nukkit.event.player中的方法参数类型为Item的cn.nukkit.event.player中的构造器限定符构造器说明PlayerBlockPickEvent
(Player player, Block blockClicked, Item item) PlayerBucketEmptyEvent
(Player who, Block blockClicked, BlockFace blockFace, Block liquid, Item bucket, Item itemInHand) PlayerBucketFillEvent
(Player who, Block blockClicked, BlockFace blockFace, Block liquid, Item bucket, Item itemInHand) PlayerDeathEvent
(Player player, Item[] drops, TextContainer deathMessage, int experience) PlayerDeathEvent
(Player player, Item[] drops, String deathMessage, int experience) PlayerDropItemEvent
(Player player, Item drop) PlayerEditBookEvent
(Player player, Item oldBook, Item newBook, BookEditPacket.Action action) PlayerFishEvent
(Player player, EntityFishingHook hook, Item loot, int experience, Vector3 motion) PlayerGlassBottleFillEvent
(Player player, Block target, Item item) PlayerInteractEntityEvent
(Player player, Entity entity, Item item, Vector3 clickedPos) PlayerInteractEvent
(Player player, Item item, Vector3 block, BlockFace face) PlayerInteractEvent
(Player player, Item item, Vector3 block, BlockFace face, PlayerInteractEvent.Action action) PlayerItemConsumeEvent
(Player player, Item item) PlayerItemHeldEvent
(Player player, Item item, int hotbarSlot) PlayerMapInfoRequestEvent
(Player p, Item item) -
cn.nukkit.inventory中Item的使用
声明为Item的cn.nukkit.inventory中的字段类型参数类型为Item的cn.nukkit.inventory中的字段返回Item的cn.nukkit.inventory中的方法修饰符和类型方法说明Item[]
Item[]
Item[]
Item[]
PlayerInventory.getArmorContents()
PlayerInventory.getArmorItem
(int index) EntityArmorInventory.getBoots()
default Item
EntityInventoryHolder.getBoots()
PlayerInventory.getBoots()
EntityArmorInventory.getChestplate()
default Item
EntityInventoryHolder.getChestplate()
PlayerInventory.getChestplate()
SmithingInventory.getEquipment()
SmithingRecipe.getEquipment()
SmithingRecipe.getFinalResult
(Item equip) AnvilInventory.getFirstItem()
已过时。GrindstoneInventory.getFirstItem()
BrewingInventory.getFuel()
FurnaceInventory.getFuel()
EntityArmorInventory.getHelmet()
default Item
EntityInventoryHolder.getHelmet()
PlayerInventory.getHelmet()
BrewingInventory.getIngredient()
MixRecipe.getIngredient()
ShapedRecipe.getIngredient
(int x, int y) SmithingInventory.getIngredient()
SmithingRecipe.getIngredient()
StonecutterRecipe.getIngredient()
BlastFurnaceRecipe.getInput()
CampfireRecipe.getInput()
FurnaceRecipe.getInput()
MixRecipe.getInput()
SmeltingRecipe.getInput()
SmokerRecipe.getInput()
AnvilInventory.getInputSlot()
EnchantInventory.getInputSlot()
BaseInventory.getItem
(int index) CommandBlockInventory.getItem
(int index) DoubleChestInventory.getItem
(int index) GrindstoneInventory.getItem
(int index) Inventory.getItem
(int index) PlayerUIComponent.getItem
(int index) EntityEquipmentInventory.getItemInHand()
default Item
EntityInventoryHolder.getItemInHand()
PlayerInventory.getItemInHand()
EntityEquipmentInventory.getItemInOffhand()
EntityArmorInventory.getLeggings()
default Item
EntityInventoryHolder.getLeggings()
PlayerInventory.getLeggings()
AnvilInventory.getMaterialSlot()
AnvilInventory.getOutputSlot()
EnchantInventory.getOutputSlot()
EnchantInventory.getReagentSlot()
AnvilInventory.getResult()
已过时。BlastFurnaceRecipe.getResult()
CampfireRecipe.getResult()
FurnaceInventory.getResult()
FurnaceRecipe.getResult()
GrindstoneInventory.getResult()
MixRecipe.getResult()
MultiRecipe.getResult()
Recipe.getResult()
RepairRecipe.getResult()
ShapedRecipe.getResult()
ShapelessRecipe.getResult()
SmithingInventory.getResult()
SmithingRecipe.getResult()
SmokerRecipe.getResult()
StonecutterRecipe.getResult()
AnvilInventory.getSecondItem()
已过时。GrindstoneInventory.getSecondItem()
FurnaceInventory.getSmelting()
Item[]
BaseInventory.removeItem
(Item... slots) Item[]
CommandBlockInventory.removeItem
(Item... slots) Item[]
Inventory.removeItem
(Item... slots) 返回变量类型为Item的类型的cn.nukkit.inventory中的方法修饰符和类型方法说明CraftingRecipe.getAllResults()
ShapedRecipe.getAllResults()
ShapelessRecipe.getAllResults()
BaseInventory.getContents()
CommandBlockInventory.getContents()
DoubleChestInventory.getContents()
Inventory.getContents()
PlayerUIComponent.getContents()
CraftingRecipe.getExtraResults()
ShapedRecipe.getExtraResults()
ShapelessRecipe.getExtraResults()
RepairRecipe.getIngredientList()
ShapedRecipe.getIngredientList()
ShapelessRecipe.getIngredientList()
ShapedRecipe.getIngredientMap()
CraftingRecipe.getIngredientsAggregate()
ShapedRecipe.getIngredientsAggregate()
ShapelessRecipe.getIngredientsAggregate()
SmithingRecipe.getIngredientsAggregate()
参数类型为Item的cn.nukkit.inventory中的方法修饰符和类型方法说明Item[]
Item[]
Item[]
boolean
BaseInventory.canAddItem
(Item item) boolean
CampfireInventory.canAddItem
(Item item) boolean
CommandBlockInventory.canAddItem
(Item item) boolean
Inventory.canAddItem
(Item item) boolean
ShulkerBoxInventory.canAddItem
(Item item) boolean
boolean
boolean
int
int
default int
int
int
BaseInventory.firstEmpty
(Item item) int
CommandBlockInventory.firstEmpty
(Item item) int
Inventory.firstEmpty
(Item item) static int
CraftingManager.getContainerHash
(Item ingredient, Item container) SmithingRecipe.getFinalResult
(Item equip) int
BaseInventory.getFreeSpace
(Item item) static int
CraftingManager.getFullItemHash
(Item item) static int
CraftingManager.getItemHash
(Item item) static int
CraftingManager.getItemHash
(Item item, int meta) static int
CraftingManager.getPotionHash
(Item ingredient, Item potion) CraftingManager.matchBlastFurnaceRecipe
(Item input) CraftingManager.matchBrewingRecipe
(Item input, Item potion) CraftingManager.matchCampfireRecipe
(Item input) CraftingManager.matchCartographyRecipe
(List<Item> inputList, Item primaryOutput, List<Item> extraOutputList) CraftingManager.matchContainerRecipe
(Item input, Item potion) CraftingManager.matchFurnaceRecipe
(Item input) CraftingManager.matchSmithingRecipe
(Item equipment, Item ingredient) CraftingManager.matchSmithingRecipe
(Item equipment, Item ingredient, Item primaryOutput) CraftingManager.matchSmithingRecipe
(List<Item> inputList, Item primaryOutput) CraftingManager.matchSmokerRecipe
(Item input) CraftingManager.matchStonecutterRecipe
(Item output) void
InventoryListener.onInventoryChanged
(Inventory inventory, Item oldItem, int slot) void
BaseInventory.onSlotChange
(int index, Item before, boolean send) void
BrewingInventory.onSlotChange
(int index, Item before, boolean send) void
CampfireInventory.onSlotChange
(int index, Item before, boolean send) void
CommandBlockInventory.onSlotChange
(int index, Item before, boolean send) void
FurnaceInventory.onSlotChange
(int index, Item before, boolean send) void
GrindstoneInventory.onSlotChange
(int index, Item before, boolean send) void
Inventory.onSlotChange
(int index, Item before, boolean send) void
PlayerInventory.onSlotChange
(int index, Item before, boolean send) void
PlayerOffhandInventory.onSlotChange
(int index, Item before, boolean send) void
PlayerUIComponent.onSlotChange
(int index, Item before, boolean send) void
PlayerUIInventory.onSlotChange
(int index, Item before, boolean send) void
SmithingInventory.onSlotChange
(int index, Item before, boolean send) void
PlayerUIInventory.onSlotChangeBase
(int index, Item before, boolean send) void
void
void
Item[]
BaseInventory.removeItem
(Item... slots) Item[]
CommandBlockInventory.removeItem
(Item... slots) Item[]
Inventory.removeItem
(Item... slots) void
PlayerInventory.setArmorContents
(Item[] items) boolean
PlayerInventory.setArmorItem
(int index, Item item) boolean
PlayerInventory.setArmorItem
(int index, Item item, boolean ignoreArmorEvents) boolean
default boolean
boolean
boolean
EntityArmorInventory.setChestplate
(Item item) default boolean
EntityInventoryHolder.setChestplate
(Item item) boolean
PlayerInventory.setChestplate
(Item chestplate) void
SmithingInventory.setEquipment
(Item equipment) boolean
AnvilInventory.setFirstItem
(Item item) boolean
AnvilInventory.setFirstItem
(Item item, boolean send) boolean
GrindstoneInventory.setFirstItem
(Item item) boolean
GrindstoneInventory.setFirstItem
(Item item, boolean send) void
boolean
boolean
default boolean
boolean
void
BrewingInventory.setIngredient
(Item item) ShapedRecipe.setIngredient
(char key, Item item) ShapedRecipe.setIngredient
(String key, Item item) void
SmithingInventory.setIngredient
(Item ingredient) void
void
void
void
boolean
boolean
boolean
boolean
default boolean
boolean
boolean
boolean
boolean
boolean
EntityEquipmentInventory.setItemInHand
(Item item) boolean
EntityEquipmentInventory.setItemInHand
(Item item, boolean send) default boolean
EntityInventoryHolder.setItemInHand
(Item item) boolean
PlayerInventory.setItemInHand
(Item item) boolean
EntityEquipmentInventory.setItemInOffhand
(Item item, boolean send) boolean
EntityArmorInventory.setLeggings
(Item item) default boolean
EntityInventoryHolder.setLeggings
(Item item) boolean
PlayerInventory.setLeggings
(Item leggings) boolean
boolean
boolean
boolean
AnvilInventory.setSecondItem
(Item item) boolean
AnvilInventory.setSecondItem
(Item item, boolean send) boolean
GrindstoneInventory.setSecondItem
(Item item) boolean
GrindstoneInventory.setSecondItem
(Item item, boolean send) boolean
FurnaceInventory.setSmelting
(Item item) 类型变量类型为Item的cn.nukkit.inventory中的方法参数修饰符和类型方法说明static UUID
CraftingManager.getMultiItemHash
(Collection<Item> items) CraftingManager.matchCartographyRecipe
(List<Item> inputList, Item primaryOutput, List<Item> extraOutputList) static boolean
Recipe.matchItemList
(List<Item> haveItems, List<Item> needItems) boolean
CraftingRecipe.matchItems
(List<Item> inputList, List<Item> extraOutputList) Returns whether the specified list of crafting grid inputs and outputs matches this recipe.boolean
CraftingRecipe.matchItems
(List<Item> inputList, List<Item> extraOutputList, int multiplier) boolean
ShapedRecipe.matchItems
(List<Item> inputList, List<Item> extraOutputList) Returns whether the specified list of crafting grid inputs and outputs matches this recipe.boolean
ShapedRecipe.matchItems
(List<Item> inputList, List<Item> extraOutputList, int multiplier) boolean
ShapelessRecipe.matchItems
(List<Item> inputList, List<Item> extraOutputList) Returns whether the specified list of crafting grid inputs and outputs matches this recipe.boolean
ShapelessRecipe.matchItems
(List<Item> inputList, List<Item> extraOutputList, int multiplier) boolean
SmithingRecipe.matchItems
(List<Item> inputList) boolean
SmithingRecipe.matchItems
(List<Item> inputList, int multiplier) CraftingManager.matchSmithingRecipe
(List<Item> inputList) CraftingManager.matchSmithingRecipe
(List<Item> inputList, Item primaryOutput) void
BaseInventory.setContents
(Map<Integer, Item> items) void
CommandBlockInventory.setContents
(Map<Integer, Item> items) void
DoubleChestInventory.setContents
(Map<Integer, Item> items) void
Inventory.setContents
(Map<Integer, Item> items) 参数类型为Item的cn.nukkit.inventory中的构造器限定符构造器说明BlastFurnaceRecipe
(Item result, Item ingredient) BrewingRecipe
(Item input, Item ingredient, Item output) CampfireRecipe
(Item result, Item ingredient) CartographyRecipe
(Item result, Collection<Item> ingredients) CartographyRecipe
(String recipeId, int priority, Item result, Collection<Item> ingredients) ContainerRecipe
(Item input, Item ingredient, Item output) FurnaceRecipe
(Item result, Item ingredient) RepairRecipe
(InventoryType inventoryType, Item result, Collection<Item> ingredients) ShapedRecipe
(Item primaryResult, String[] shape, Map<Character, Item> ingredients, List<Item> extraResults) ShapedRecipe
(String recipeId, int priority, Item primaryResult, String[] shape, Map<Character, Item> ingredients, List<Item> extraResults) Constructs a ShapedRecipe instance.ShapelessRecipe
(Item result, Collection<Item> ingredients) ShapelessRecipe
(String recipeId, int priority, Item result, Collection<Item> ingredients) ShulkerBoxRecipe
(Item result, Collection<Item> ingredients) ShulkerBoxRecipe
(String recipeId, int priority, Item result, Collection<Item> ingredients) SmithingRecipe
(String recipeId, int priority, Collection<Item> ingredients, Item result) SmokerRecipe
(Item result, Item ingredient) StonecutterRecipe
(Item result, Item ingredient) StonecutterRecipe
(String recipeId, int priority, Item result, Item ingredient) 类型变量类型为Item的cn.nukkit.inventory中的构造器参数限定符构造器说明BaseInventory
(InventoryHolder holder, InventoryType type, Map<Integer, Item> items) BaseInventory
(InventoryHolder holder, InventoryType type, Map<Integer, Item> items, Integer overrideSize) BaseInventory
(InventoryHolder holder, InventoryType type, Map<Integer, Item> items, Integer overrideSize, String overrideTitle) CartographyRecipe
(Item result, Collection<Item> ingredients) CartographyRecipe
(String recipeId, int priority, Item result, Collection<Item> ingredients) ContainerInventory
(InventoryHolder holder, InventoryType type, Map<Integer, Item> items) ContainerInventory
(InventoryHolder holder, InventoryType type, Map<Integer, Item> items, Integer overrideSize) ContainerInventory
(InventoryHolder holder, InventoryType type, Map<Integer, Item> items, Integer overrideSize, String overrideTitle) CustomInventory
(InventoryHolder holder, InventoryType type, Map<Integer, Item> items) CustomInventory
(InventoryHolder holder, InventoryType type, Map<Integer, Item> items, Integer overrideSize) CustomInventory
(InventoryHolder holder, InventoryType type, Map<Integer, Item> items, Integer overrideSize, String overrideTitle) RepairRecipe
(InventoryType inventoryType, Item result, Collection<Item> ingredients) ShapedRecipe
(Item primaryResult, String[] shape, Map<Character, Item> ingredients, List<Item> extraResults) ShapedRecipe
(Item primaryResult, String[] shape, Map<Character, Item> ingredients, List<Item> extraResults) ShapedRecipe
(String recipeId, int priority, Item primaryResult, String[] shape, Map<Character, Item> ingredients, List<Item> extraResults) Constructs a ShapedRecipe instance.ShapedRecipe
(String recipeId, int priority, Item primaryResult, String[] shape, Map<Character, Item> ingredients, List<Item> extraResults) Constructs a ShapedRecipe instance.ShapelessRecipe
(Item result, Collection<Item> ingredients) ShapelessRecipe
(String recipeId, int priority, Item result, Collection<Item> ingredients) ShulkerBoxRecipe
(Item result, Collection<Item> ingredients) ShulkerBoxRecipe
(String recipeId, int priority, Item result, Collection<Item> ingredients) SmithingRecipe
(String recipeId, int priority, Collection<Item> ingredients, Item result) -
cn.nukkit.inventory.transaction中Item的使用
类型参数类型为Item的cn.nukkit.inventory.transaction中的字段修饰符和类型方法说明SmithingTransaction.getEquipmentItem()
GrindstoneTransaction.getFirstItem()
SmithingTransaction.getIngredientItem()
EnchantTransaction.getInputItem()
RepairItemTransaction.getInputItem()
RepairItemTransaction.getMaterialItem()
EnchantTransaction.getOutputItem()
GrindstoneTransaction.getOutputItem()
RepairItemTransaction.getOutputItem()
SmithingTransaction.getOutputItem()
CraftingTransaction.getPrimaryOutput()
GrindstoneTransaction.getSecondItem()
返回变量类型为Item的类型的cn.nukkit.inventory.transaction中的方法参数类型为Item的cn.nukkit.inventory.transaction中的方法修饰符和类型方法说明void
CraftingTransaction.setExtraOutput
(Item item) void
void
EnchantTransaction.setInputItem
(Item inputItem) void
EnchantTransaction.setOutputItem
(Item outputItem) void
CraftingTransaction.setPrimaryOutput
(Item item) 类型变量类型为Item的cn.nukkit.inventory.transaction中的方法参数修饰符和类型方法说明protected boolean
InventoryTransaction.matchItems
(List<Item> needItems, List<Item> haveItems) -
cn.nukkit.inventory.transaction.action中Item的使用
修饰符和类型方法说明InventoryAction.getSourceItem()
Returns the item that was present before the action took place.InventoryAction.getTargetItem()
Returns the item that the action attempted to replace the source item with.参数类型为Item的cn.nukkit.inventory.transaction.action中的构造器限定符构造器说明CraftingTakeResultAction
(Item sourceItem, Item targetItem) CraftingTakeResultExperienceAction
(Item sourceItem, Item targetItem, int experience) CraftingTransferMaterialAction
(Item sourceItem, Item targetItem, int slot) CreativeInventoryAction
(Item source, Item target, int action) DropItemAction
(Item source, Item target) EnchantingAction
(Item source, Item target, int type) GrindstoneItemAction
(Item sourceItem, Item targetItem, int type, int experience) InventoryAction
(Item sourceItem, Item targetItem) protected
NoOpIventoryAction
(Item sourceItem, Item targetItem) RepairItemAction
(Item sourceItem, Item targetItem, int type) SlotChangeAction
(Inventory inventory, int inventorySlot, Item sourceItem, Item targetItem) SmithingItemAction
(Item sourceItem, Item targetItem, int type) -
cn.nukkit.inventory.transaction.data中Item的使用
-
cn.nukkit.item中Item的使用
修饰符和类型类说明class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
final class
声明为Item的cn.nukkit.item中的字段返回Item的cn.nukkit.item中的方法修饰符和类型方法说明Item.clearCustomBlockData()
Item.clearCustomName()
Item.clearNamedTag()
StringItem.clearNamedTag()
Item.clone()
Item.createFuzzyCraftingRecipe()
final Item
Item.decrement
(int amount) static Item
static Item
Item.fromJsonNetworkId
(Map<String, Object> data) static Item
Item.fromString
(String str) static Item[]
Item.fromStringMultiple
(String str) static Item
Item.get
(int id) static Item
static Item
static Item
MinecraftItemID.get
(int amount) MinecraftItemID.get
(int amount, byte[] compoundTag) static Item
ItemTool.getBestTool
(int toolType) static Item
Item.getBlock
(int id) static Item
static Item
static Item
static Item
Item.getCreativeItem
(int index) UnknownNetworkIdException.getItem()
RuntimeItemMapping.getItemByNamespaceId
(String namespaceId, int amount) Creates a new instance of the respectiveItem
by the namespaced id.final Item
Item.increment
(int amount) Item.setCompoundTag
(byte[] tags) Item.setCompoundTag
(CompoundTag tag) StringItem.setCompoundTag
(byte[] tags) Item.setCustomBlockData
(CompoundTag compoundTag) Item.setCustomName
(String name) Item.setNamedTag
(CompoundTag tag) StringItem.setNamedTag
(CompoundTag tag) Item.setRepairCost
(int cost) ItemBookWritten.writeBook
(String author, String title, ListTag<CompoundTag> pages) 返回变量类型为Item的类型的cn.nukkit.item中的方法参数类型为Item的cn.nukkit.item中的方法修饰符和类型方法说明static void
Item.addCreativeItem
(Item item) protected boolean
final boolean
Item.deepEquals
(Item item) 已过时。final boolean
Item.deepEquals
(Item item, boolean checkDamage) 已过时。final boolean
Item.deepEquals
(Item item, boolean checkDamage, boolean checkCompound) 已过时。final boolean
final boolean
final boolean
Item.equalsExact
(Item other) Returns whether the specified item stack has the same ID, damage, NBT and count as this item stack.final boolean
Item.equalsIgnoringEnchantmentOrder
(Item item, boolean checkDamage) Same asequals(Item, boolean)
but the enchantment order of the items does not affect the result.static int
Item.getCreativeItemIndex
(Item item) int
RuntimeItemMapping.getNetworkFullId
(Item item) Returns the network id based on the full id of the given item.static boolean
Item.isCreativeItem
(Item item) void
static void
Item.removeCreativeItem
(Item item) 类型变量类型为Item的cn.nukkit.item中的方法参数修饰符和类型方法说明void
RuntimeItemMapping.registerNamespacedIdItem
(String namespacedId, Constructor<? extends Item> constructor) 参数类型为Item的cn.nukkit.item中的构造器限定符构造器说明UnknownNetworkIdException
(Item item, String s) UnknownNetworkIdException
(Item item, String message, Throwable cause) UnknownNetworkIdException
(Item item, Throwable cause) -
cn.nukkit.item.customitem中Item的使用
-
cn.nukkit.item.enchantment中Item的使用
参数类型为Item的cn.nukkit.item.enchantment中的方法修饰符和类型方法说明boolean
Enchantment.canEnchant
(Item item) Checks if the given item have a type which is compatible with this enchantment.boolean
EnchantmentDurability.canEnchant
(Item item) boolean
EnchantmentEfficiency.canEnchant
(Item item) boolean
EnchantmentSilkTouch.canEnchant
(Item item) boolean
EnchantmentThorns.canEnchant
(Item item) boolean
EnchantmentVanishingCurse.canEnchant
(Item item) boolean
EnchantmentType.canEnchantItem
(Item item) boolean
Enchantment.isItemAcceptable
(Item item) 已过时。boolean
EnchantmentDurability.isItemAcceptable
(Item item) boolean
EnchantmentEfficiency.isItemAcceptable
(Item item) boolean
EnchantmentSilkTouch.isItemAcceptable
(Item item) boolean
EnchantmentThorns.isItemAcceptable
(Item item) static boolean
EnchantmentDurability.negateDamage
(Item item, int level, Random random) -
cn.nukkit.item.enchantment.damage中Item的使用
参数类型为Item的cn.nukkit.item.enchantment.damage中的方法修饰符和类型方法说明boolean
EnchantmentDamage.canEnchant
(Item item) boolean
EnchantmentDamage.isItemAcceptable
(Item item) -
cn.nukkit.item.enchantment.protection中Item的使用
-
cn.nukkit.item.food中Item的使用
参数类型为Item的cn.nukkit.item.food中的方法 -
cn.nukkit.item.randomitem中Item的使用
声明为Item的cn.nukkit.item.randomitem中的字段修饰符和类型方法说明static Item
Fishing.getFishingResult
(int fortuneLevel, int lureLevel) static Item
Fishing.getFishingResult
(Item rod) ConstantItemSelector.getItem()
参数类型为Item的cn.nukkit.item.randomitem中的方法参数类型为Item的cn.nukkit.item.randomitem中的构造器 -
cn.nukkit.level中Item的使用
返回Item的cn.nukkit.level中的方法修饰符和类型方法说明Level.useBreakOn
(Vector3 vector) Level.useBreakOn
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean createParticles, boolean setBlockDestroy) Level.useBreakOn
(Vector3 vector, Item item) Level.useBreakOn
(Vector3 vector, Item item, Player player) Level.useBreakOn
(Vector3 vector, Item item, Player player, boolean createParticles) Level.useBreakOn
(Vector3 vector, BlockFace face, Item item, Player player, boolean createParticles) Level.useBreakOn
(Vector3 vector, BlockFace face, Item item, Player player, boolean createParticles, boolean setBlockDestroy) Level.useItemOn
(Vector3 vector, Item item, BlockFace face, float fx, float fy, float fz, Player player) Level.useItemOn
(Vector3 vector, Item item, BlockFace face, float fx, float fy, float fz, Player player, boolean playSound) 参数类型为Item的cn.nukkit.level中的方法修饰符和类型方法说明Level.dropAndGetItem
(Vector3 source, Item item) Level.dropAndGetItem
(Vector3 source, Item item, Vector3 motion) Level.dropAndGetItem
(Vector3 source, Item item, Vector3 motion, boolean dropAround, int delay) Level.dropAndGetItem
(Vector3 source, Item item, Vector3 motion, int delay) void
void
void
void
Level.useBreakOn
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean createParticles, boolean setBlockDestroy) Level.useBreakOn
(Vector3 vector, Item item) Level.useBreakOn
(Vector3 vector, Item item, Player player) Level.useBreakOn
(Vector3 vector, Item item, Player player, boolean createParticles) Level.useBreakOn
(Vector3 vector, BlockFace face, Item item, Player player, boolean createParticles) Level.useBreakOn
(Vector3 vector, BlockFace face, Item item, Player player, boolean createParticles, boolean setBlockDestroy) Level.useItemOn
(Vector3 vector, Item item, BlockFace face, float fx, float fy, float fz, Player player) Level.useItemOn
(Vector3 vector, Item item, BlockFace face, float fx, float fy, float fz, Player player, boolean playSound) -
cn.nukkit.level.particle中Item的使用
参数类型为Item的cn.nukkit.level.particle中的构造器 -
cn.nukkit.level.terra中Item的使用
参数类型为Item的cn.nukkit.level.terra中的方法 -
cn.nukkit.level.terra.delegate中Item的使用
修饰符和类型方法说明PNXItemDelegate.getHandle()
PNXItemMeta.getHandle()
PNXItemStack.getHandle()
PNXItemDelegate.innerItem()
返回innerItem
记录组件的值。PNXItemMeta.innerItem()
返回innerItem
记录组件的值。PNXItemStack.innerItem()
返回innerItem
记录组件的值。参数类型为Item的cn.nukkit.level.terra.delegate中的构造器限定符构造器说明PNXItemDelegate
(Item innerItem) 创建PNXItemDelegate
记录的实例。PNXItemMeta
(Item innerItem) 创建PNXItemMeta
记录的实例。PNXItemStack
(Item innerItem) 创建PNXItemStack
记录的实例。 -
cn.nukkit.nbt中Item的使用
返回Item的cn.nukkit.nbt中的方法参数类型为Item的cn.nukkit.nbt中的方法修饰符和类型方法说明static CompoundTag
NBTIO.putItemHelper
(Item item) static CompoundTag
NBTIO.putItemHelper
(Item item, Integer slot) -
cn.nukkit.network.protocol中Item的使用
声明为Item的cn.nukkit.network.protocol中的字段修饰符和类型字段说明Item[]
CreativeContentPacket.entries
Item[]
CraftingEventPacket.input
AddItemEntityPacket.item
AddPlayerPacket.item
InventorySlotPacket.item
MobEquipmentPacket.item
Item[]
CraftingEventPacket.output
Item[]
InventoryContentPacket.slots
Item[]
MobArmorEquipmentPacket.slots
返回变量类型为Item的类型的cn.nukkit.network.protocol中的方法类型变量类型为Item的cn.nukkit.network.protocol中的构造器参数限定符构造器说明ItemStackAction
(byte type, boolean bool0, byte byte0, int varInt0, int varInt1, byte baseByte0, byte baseByte1, byte baseByte2, int baseVarInt0, byte flagsByte0, byte flagsByte1, int flagsVarInt0, List<Item> items) -
cn.nukkit.network.protocol.types中Item的使用
-
cn.nukkit.utils中Item的使用
返回Item的cn.nukkit.utils中的方法参数类型为Item的cn.nukkit.utils中的方法修饰符和类型方法说明static int
MinecraftNamespaceComparator.compareItems
(Item itemA, Item itemB) void
BinaryStream.putRecipeIngredient
(Item ingredient) void
void
Block.getBreakTime(Item, Player)