类的使用
net.minecraft.item.ItemStack
-
-
net.minecraft.advancement中ItemStack的使用
声明为ItemStack的net.minecraft.advancement中的字段 修饰符和类型 字段 说明 private ItemStackAdvancementDisplay. icon返回ItemStack的net.minecraft.advancement中的方法 修饰符和类型 方法 说明 ItemStackAdvancementDisplay. getIcon()private static ItemStackAdvancementDisplay. iconFromJson(JsonObject json)参数类型为ItemStack的net.minecraft.advancement中的方法 修饰符和类型 方法 说明 Advancement.TaskAdvancement.Task. display(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden)参数类型为ItemStack的net.minecraft.advancement中的构造器 构造器 说明 AdvancementDisplay(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) -
net.minecraft.advancement.criterion中ItemStack的使用
参数类型为ItemStack的net.minecraft.advancement.criterion中的方法 修饰符和类型 方法 说明 voidVillagerTradeCriterion. handle(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack)booleanConsumeItemCriterion.Conditions. matches(ItemStack stack)booleanEnchantedItemCriterion.Conditions. matches(ItemStack stack, int levels)booleanFilledBucketCriterion.Conditions. matches(ItemStack stack)booleanFishingRodHookedCriterion.Conditions. matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots)booleanInventoryChangedCriterion.Conditions. matches(PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)booleanItemDurabilityChangedCriterion.Conditions. matches(ItemStack stack, int durability)booleanPlacedBlockCriterion.Conditions. matches(BlockState state, BlockPos pos, ServerWorld world, ItemStack stack)booleanShotCrossbowCriterion.Conditions. matches(ItemStack stack)booleanUsedTotemCriterion.Conditions. matches(ItemStack stack)booleanVillagerTradeCriterion.Conditions. matches(LootContext merchantContext, ItemStack stack)booleanBeeNestDestroyedCriterion.Conditions. test(BlockState state, ItemStack stack, int count)voidBeeNestDestroyedCriterion. test(ServerPlayerEntity player, BlockState state, ItemStack stack, int beeCount)booleanItemUsedOnBlockCriterion.Conditions. test(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)voidItemUsedOnBlockCriterion. test(ServerPlayerEntity player, BlockPos pos, ItemStack stack)booleanPlayerInteractedWithEntityCriterion.Conditions. test(ItemStack stack, LootContext context)voidPlayerInteractedWithEntityCriterion. test(ServerPlayerEntity player, ItemStack stack, Entity entity)booleanThrownItemPickedUpByEntityCriterion.Conditions. test(ServerPlayerEntity player, ItemStack stack, LootContext entityContext)voidConsumeItemCriterion. trigger(ServerPlayerEntity player, ItemStack stack)voidEnchantedItemCriterion. trigger(ServerPlayerEntity player, ItemStack stack, int levels)voidFilledBucketCriterion. trigger(ServerPlayerEntity player, ItemStack stack)voidFishingRodHookedCriterion. trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots)voidInventoryChangedCriterion. trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack)private voidInventoryChangedCriterion. trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)voidItemDurabilityChangedCriterion. trigger(ServerPlayerEntity player, ItemStack stack, int durability)voidPlacedBlockCriterion. trigger(ServerPlayerEntity player, BlockPos blockPos, ItemStack stack)voidShotCrossbowCriterion. trigger(ServerPlayerEntity player, ItemStack stack)voidThrownItemPickedUpByEntityCriterion. trigger(ServerPlayerEntity player, ItemStack stack, Entity entity)voidUsedTotemCriterion. trigger(ServerPlayerEntity player, ItemStack stack)类型变量类型为ItemStack的net.minecraft.advancement.criterion中的方法参数 修饰符和类型 方法 说明 booleanFishingRodHookedCriterion.Conditions. matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots)voidFishingRodHookedCriterion. trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots) -
net.minecraft.block中ItemStack的使用
声明为ItemStack的net.minecraft.block中的字段 修饰符和类型 字段 说明 private ItemStackEntityShapeContext. bootsprivate ItemStackEntityShapeContext. heldItem参数类型为ItemStack的net.minecraft.block中的方法 修饰符和类型 方法 说明 private static BlockStateComposterBlock. addToComposter(BlockState state, WorldAccess world, BlockPos pos, ItemStack item)voidBeehiveBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)voidBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)voidIceBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)voidTallPlantBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)voidTurtleEggBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)voidBlock. appendTooltip(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options)voidShulkerBoxBlock. appendTooltip(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options)static booleanWitherSkullBlock. canDispense(World world, BlockPos pos, ItemStack stack)booleanComposterBlock.ComposterInventory. canExtract(int slot, ItemStack stack, Direction dir)Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanComposterBlock.DummyInventory. canExtract(int slot, ItemStack stack, Direction dir)Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanComposterBlock.FullComposterInventory. canExtract(int slot, ItemStack stack, Direction dir)Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanComposterBlock.ComposterInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanComposterBlock.DummyInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanComposterBlock.FullComposterInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.static BlockStateComposterBlock. compost(BlockState state, ServerWorld world, ItemStack stack, BlockPos pos)static voidBlock. dropStack(World world, BlockPos pos, ItemStack stack)static voidBlock. dropStacks(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, Entity entity, ItemStack stack)protected DispenserBehaviorDispenserBlock. getBehaviorForItem(ItemStack stack)protected DispenserBehaviorDropperBlock. getBehaviorForItem(ItemStack stack)static List<ItemStack>Block. getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack)private static booleanRespawnAnchorBlock. isChargeItem(ItemStack stack)voidAbstractBannerBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidAbstractFurnaceBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidAbstractRedstoneGateBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidBarrelBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidBeaconBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidBedBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidBrewingStandBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidChestBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidCommandBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidConduitBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidDispenserBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidDoorBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidEnchantingTableBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidHopperBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidJukeboxBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidPistonBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidPlayerSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidShulkerBoxBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidSmallDripleafBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidStructureBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidTallPlantBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidTripwireHookBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidWallPlayerSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidWallWitherSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidWitherSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidAbstractBlock.AbstractBlockState. onStacksDropped(ServerWorld world, BlockPos pos, ItemStack stack)voidAbstractBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)已过时。voidInfestedBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)voidOreBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)voidRedstoneOreBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)voidSpawnerBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)private static voidLecternBlock. putBook(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack)static booleanLecternBlock. putBookIfAbsent(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack)voidJukeboxBlock. setRecord(WorldAccess world, BlockPos pos, BlockState state, ItemStack stack)类型变量类型为ItemStack的net.minecraft.block中的方法参数 修饰符和类型 方法 说明 voidBlock. addStacksForDisplay(ItemGroup group, DefaultedList<ItemStack> list)参数类型为ItemStack的net.minecraft.block中的构造器 构造器 说明 EntityShapeContext(boolean descending, double minY, ItemStack boots, ItemStack heldItem, Predicate<Fluid> walkOnFluidPredicate, Optional<Entity> entity)FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem) -
net.minecraft.block.cauldron中ItemStack的使用
参数类型为ItemStack的net.minecraft.block.cauldron中的方法 修饰符和类型 方法 说明 static ActionResultCauldronBehavior. emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> predicate, SoundEvent soundEvent)static ActionResultCauldronBehavior. fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent)ActionResultCauldronBehavior. interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) -
net.minecraft.block.dispenser中ItemStack的使用
返回ItemStack的net.minecraft.block.dispenser中的方法 修饰符和类型 方法 说明 ItemStackDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)ItemStackItemDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)protected ItemStackBlockPlacementDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)ItemStackBoatDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)protected ItemStackItemDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)ItemStackProjectileDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)protected ItemStackShearsDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)参数类型为ItemStack的net.minecraft.block.dispenser中的方法 修饰符和类型 方法 说明 protected abstract ProjectileEntityProjectileDispenserBehavior. createProjectile(World world, Position position, ItemStack stack)ItemStackDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)ItemStackItemDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)protected ItemStackBlockPlacementDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)ItemStackBoatDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)protected ItemStackItemDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)ItemStackProjectileDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)protected ItemStackShearsDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)static voidItemDispenserBehavior. spawnItem(World world, ItemStack stack, int offset, Direction side, Position pos) -
net.minecraft.block.entity中ItemStack的使用
声明为ItemStack的net.minecraft.block.entity中的字段 修饰符和类型 字段 说明 private ItemStackLecternBlockEntity. bookprivate ItemStackJukeboxBlockEntity. record类型参数类型为ItemStack的net.minecraft.block.entity中的字段 修饰符和类型 字段 说明 protected DefaultedList<ItemStack>AbstractFurnaceBlockEntity. inventoryprivate DefaultedList<ItemStack>BarrelBlockEntity. inventoryprivate DefaultedList<ItemStack>BrewingStandBlockEntity. inventoryprivate DefaultedList<ItemStack>ChestBlockEntity. inventoryprivate DefaultedList<ItemStack>DispenserBlockEntity. inventoryprivate DefaultedList<ItemStack>HopperBlockEntity. inventoryprivate DefaultedList<ItemStack>ShulkerBoxBlockEntity. inventoryprivate DefaultedList<ItemStack>CampfireBlockEntity. itemsBeingCooked返回ItemStack的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 ItemStackLecternBlockEntity. getBook()ItemStackBannerBlockEntity. getPickStack()ItemStackJukeboxBlockEntity. getRecord()ItemStackAbstractFurnaceBlockEntity. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackBrewingStandBlockEntity. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackLootableContainerBlockEntity. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackAbstractFurnaceBlockEntity. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackAbstractFurnaceBlockEntity. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackBrewingStandBlockEntity. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackBrewingStandBlockEntity. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackHopperBlockEntity. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackLootableContainerBlockEntity. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackLootableContainerBlockEntity. removeStack(int slot, int amount)Removes a specific number of items from the given slot.private ItemStackLecternBlockEntity. resolveBook(ItemStack book, @Nullable PlayerEntity player)private static ItemStackHopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction direction)static ItemStackHopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side)返回变量类型为ItemStack的类型的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 protected DefaultedList<ItemStack>BarrelBlockEntity. getInvStackList()protected DefaultedList<ItemStack>ChestBlockEntity. getInvStackList()protected DefaultedList<ItemStack>DispenserBlockEntity. getInvStackList()protected DefaultedList<ItemStack>HopperBlockEntity. getInvStackList()protected abstract DefaultedList<ItemStack>LootableContainerBlockEntity. getInvStackList()protected DefaultedList<ItemStack>ShulkerBoxBlockEntity. getInvStackList()DefaultedList<ItemStack>CampfireBlockEntity. getItemsBeingCooked()参数类型为ItemStack的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 booleanCampfireBlockEntity. addItem(ItemStack item, int integer)intDispenserBlockEntity. addToFirstFreeSlot(ItemStack stack)booleanAbstractFurnaceBlockEntity. canExtract(int slot, ItemStack stack, Direction dir)Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanBrewingStandBlockEntity. canExtract(int slot, ItemStack stack, Direction dir)Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.private static booleanHopperBlockEntity. canExtract(Inventory inv, ItemStack stack, int slot, Direction facing)booleanShulkerBoxBlockEntity. canExtract(int slot, ItemStack stack, Direction dir)Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanAbstractFurnaceBlockEntity. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanBrewingStandBlockEntity. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static booleanHopperBlockEntity. canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable Direction side)booleanShulkerBoxBlockEntity. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static booleanHopperBlockEntity. canMergeItems(ItemStack first, ItemStack second)static booleanAbstractFurnaceBlockEntity. canUseAsFuel(ItemStack stack)protected intAbstractFurnaceBlockEntity. getFuelTime(ItemStack fuel)protected intBlastFurnaceBlockEntity. getFuelTime(ItemStack fuel)protected intSmokerBlockEntity. getFuelTime(ItemStack fuel)static intBannerBlockEntity. getPatternCount(ItemStack stack)static @Nullable ListTagBannerBlockEntity. getPatternListTag(ItemStack stack)Optional<CampfireCookingRecipe>CampfireBlockEntity. getRecipeFor(ItemStack item)booleanAbstractFurnaceBlockEntity. isValid(int slot, ItemStack stack)Returns whether the given stack is a valid for the indicated slot position.booleanBrewingStandBlockEntity. isValid(int slot, ItemStack stack)Returns whether the given stack is a valid for the indicated slot position.static voidBannerBlockEntity. loadFromItemStack(ItemStack stack)voidBannerBlockEntity. readFrom(ItemStack stack, DyeColor baseColor)private ItemStackLecternBlockEntity. resolveBook(ItemStack book, @Nullable PlayerEntity player)voidLecternBlockEntity. setBook(ItemStack book)voidLecternBlockEntity. setBook(ItemStack book, @Nullable PlayerEntity player)voidJukeboxBlockEntity. setRecord(ItemStack stack)voidAbstractFurnaceBlockEntity. setStack(int slot, ItemStack stack)voidBrewingStandBlockEntity. setStack(int slot, ItemStack stack)voidHopperBlockEntity. setStack(int slot, ItemStack stack)voidLootableContainerBlockEntity. setStack(int slot, ItemStack stack)private static ItemStackHopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction direction)static ItemStackHopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side)类型变量类型为ItemStack的net.minecraft.block.entity中的方法参数 修饰符和类型 方法 说明 private static booleanAbstractFurnaceBlockEntity. canAcceptRecipeOutput(@Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count)private static booleanBrewingStandBlockEntity. canCraft(DefaultedList<ItemStack> slots)private static voidBrewingStandBlockEntity. craft(World world, BlockPos pos, DefaultedList<ItemStack> slots)private static booleanAbstractFurnaceBlockEntity. craftRecipe(@Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count)protected voidBarrelBlockEntity. setInvStackList(DefaultedList<ItemStack> list)protected voidChestBlockEntity. setInvStackList(DefaultedList<ItemStack> list)protected voidDispenserBlockEntity. setInvStackList(DefaultedList<ItemStack> list)protected voidHopperBlockEntity. setInvStackList(DefaultedList<ItemStack> list)protected abstract voidLootableContainerBlockEntity. setInvStackList(DefaultedList<ItemStack> list)protected voidShulkerBoxBlockEntity. setInvStackList(DefaultedList<ItemStack> list) -
net.minecraft.client中ItemStack的使用
返回ItemStack的net.minecraft.client中的方法 修饰符和类型 方法 说明 private ItemStackMinecraftClient. addBlockEntityNbt(ItemStack stack, BlockEntity blockEntity)参数类型为ItemStack的net.minecraft.client中的方法 修饰符和类型 方法 说明 private ItemStackMinecraftClient. addBlockEntityNbt(ItemStack stack, BlockEntity blockEntity) -
net.minecraft.client.color.item中ItemStack的使用
参数类型为ItemStack的net.minecraft.client.color.item中的方法 修饰符和类型 方法 说明 intItemColorProvider. getColor(ItemStack stack, int tintIndex)intItemColors. getColorMultiplier(ItemStack item, int tintIndex) -
net.minecraft.client.gui.hud中ItemStack的使用
声明为ItemStack的net.minecraft.client.gui.hud中的字段 修饰符和类型 字段 说明 private ItemStackInGameHud. currentStack参数类型为ItemStack的net.minecraft.client.gui.hud中的方法 修饰符和类型 方法 说明 private voidInGameHud. renderHotbarItem(int x, int y, float tickDelta, PlayerEntity player, ItemStack stack, int int2) -
net.minecraft.client.gui.screen中ItemStack的使用
声明为ItemStack的net.minecraft.client.gui.screen中的字段 修饰符和类型 字段 说明 (专用程序包) ItemStackGameModeSelectionScreen.GameMode. icon参数类型为ItemStack的net.minecraft.client.gui.screen中的方法 修饰符和类型 方法 说明 List<Text>Screen. getTooltipFromItem(ItemStack stack)private voidCustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry. renderIcon(MatrixStack matrices, int x, int y, ItemStack iconItem)protected voidScreen. renderTooltip(MatrixStack matrices, ItemStack stack, int x, int y)参数类型为ItemStack的net.minecraft.client.gui.screen中的构造器 构造器 说明 GameMode(Text text, String command, ItemStack icon) -
net.minecraft.client.gui.screen.advancement中ItemStack的使用
声明为ItemStack的net.minecraft.client.gui.screen.advancement中的字段 修饰符和类型 字段 说明 private ItemStackAdvancementTab. icon参数类型为ItemStack的net.minecraft.client.gui.screen.advancement中的方法 修饰符和类型 方法 说明 voidAdvancementTabType. drawIcon(int x, int y, int index, ItemRenderer itemRenderer, ItemStack icon) -
net.minecraft.client.gui.screen.ingame中ItemStack的使用
声明为ItemStack的net.minecraft.client.gui.screen.ingame中的字段 修饰符和类型 字段 说明 private ItemStackLoomScreen. bannerprivate ItemStackLoomScreen. dyeprivate ItemStackBookEditScreen. itemStackprivate ItemStackLoomScreen. patternprivate ItemStackHandledScreen. quickMovingStackprivate ItemStackEnchantmentScreen. stackprivate ItemStackHandledScreen. touchDragStackprivate ItemStackHandledScreen. touchDropReturningStack类型参数类型为ItemStack的net.minecraft.client.gui.screen.ingame中的字段 修饰符和类型 字段 说明 DefaultedList<ItemStack>CreativeInventoryScreen.CreativeScreenHandler. itemList返回ItemStack的net.minecraft.client.gui.screen.ingame中的方法 修饰符和类型 方法 说明 ItemStackCreativeInventoryScreen.CreativeScreenHandler. getCursorStack()ItemStackCreativeInventoryScreen.CreativeSlot. getStack()ItemStackCreativeInventoryScreen.CreativeSlot. takeStack(int amount)ItemStackCreativeInventoryScreen.CreativeScreenHandler. transferSlot(PlayerEntity player, int index)参数类型为ItemStack的net.minecraft.client.gui.screen.ingame中的方法 修饰符和类型 方法 说明 booleanCreativeInventoryScreen.CreativeSlot. canInsert(ItemStack stack)booleanCreativeInventoryScreen.CreativeScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)static BookScreen.ContentsBookScreen.Contents. create(ItemStack stack)private voidHandledScreen. drawItem(ItemStack stack, int xPosition, int yPosition, String amountText)intCreativeInventoryScreen.CreativeSlot. getMaxItemCount(ItemStack stack)private static List<String>BookScreen.WritableBookContents. getPages(ItemStack stack)private static List<String>BookScreen.WrittenBookContents. getPages(ItemStack stack)voidAnvilScreen. onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)voidCreativeInventoryListener. onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)voidForgingScreen. onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)voidCreativeInventoryScreen.CreativeSlot. onTakeItem(PlayerEntity player, ItemStack stack)private voidMerchantScreen. renderFirstBuyItem(MatrixStack matrices, ItemStack adjustedFirstBuyItem, ItemStack originalFirstBuyItem, int x, int y)protected voidCreativeInventoryScreen. renderTooltip(MatrixStack matrices, ItemStack stack, int x, int y)voidCreativeInventoryScreen.CreativeScreenHandler. setCursorStack(ItemStack stack)voidCreativeInventoryScreen.CreativeSlot. setStack(ItemStack stack)参数类型为ItemStack的net.minecraft.client.gui.screen.ingame中的构造器 构造器 说明 BookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand)WritableBookContents(ItemStack stack)WrittenBookContents(ItemStack stack) -
net.minecraft.client.gui.screen.recipebook中ItemStack的使用
声明为ItemStack的net.minecraft.client.gui.screen.recipebook中的字段 修饰符和类型 字段 说明 ItemStack[]RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot. stacks返回ItemStack的net.minecraft.client.gui.screen.recipebook中的方法 修饰符和类型 方法 说明 ItemStackRecipeBookGhostSlots.GhostInputSlot. getCurrentItemStack()参数类型为ItemStack的net.minecraft.client.gui.screen.recipebook中的构造器 构造器 说明 InputSlot(int y, int x, ItemStack[] stacks) -
net.minecraft.client.gui.tooltip中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.client.gui.tooltip中的字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>BundleTooltipComponent. inventory -
net.minecraft.client.item中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.client.item中的字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>BundleTooltipData. inventory返回变量类型为ItemStack的类型的net.minecraft.client.item中的方法 修饰符和类型 方法 说明 DefaultedList<ItemStack>BundleTooltipData. getInventory()参数类型为ItemStack的net.minecraft.client.item中的方法 修饰符和类型 方法 说明 floatModelPredicateProvider. call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed)类型变量类型为ItemStack的net.minecraft.client.item中的构造器参数 构造器 说明 BundleTooltipData(DefaultedList<ItemStack> inventory, int bundleOccupancy) -
net.minecraft.client.network中ItemStack的使用
声明为ItemStack的net.minecraft.client.network中的字段 修饰符和类型 字段 说明 private ItemStackClientPlayerInteractionManager. selectedStack返回ItemStack的net.minecraft.client.network中的方法 修饰符和类型 方法 说明 private static ItemStackClientPlayNetworkHandler. getActiveTotemOfUndying(PlayerEntity player)参数类型为ItemStack的net.minecraft.client.network中的方法 修饰符和类型 方法 说明 voidClientPlayerInteractionManager. clickCreativeStack(ItemStack stack, int slotId)voidClientPlayerInteractionManager. dropCreativeStack(ItemStack stack)voidClientPlayerEntity. onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)Called when a player performs apickup slot actionin a screen handler.voidClientPlayerEntity. useBook(ItemStack book, Hand hand)Called when the player uses (defaults to right click) a writable or written book item. -
net.minecraft.client.option中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.client.option中的字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>HotbarStorageEntry. delegate返回变量类型为ItemStack的类型的net.minecraft.client.option中的方法 修饰符和类型 方法 说明 protected List<ItemStack>HotbarStorageEntry. delegate() -
net.minecraft.client.particle中ItemStack的使用
参数类型为ItemStack的net.minecraft.client.particle中的构造器 构造器 说明 CrackParticle(ClientWorld world, double x, double y, double z, double double2, double double3, double double4, ItemStack stack)CrackParticle(ClientWorld world, double x, double y, double z, ItemStack stack) -
net.minecraft.client.recipebook中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.client.recipebook中的字段 修饰符和类型 字段 说明 private List<ItemStack>RecipeBookGroup. icons返回变量类型为ItemStack的类型的net.minecraft.client.recipebook中的方法 修饰符和类型 方法 说明 List<ItemStack>RecipeBookGroup. getIcons()参数类型为ItemStack的net.minecraft.client.recipebook中的构造器 构造器 说明 RecipeBookGroup(ItemStack[] entries) -
net.minecraft.client.render中ItemStack的使用
声明为ItemStack的net.minecraft.client.render中的字段 修饰符和类型 字段 说明 private @Nullable ItemStackGameRenderer. floatingItem参数类型为ItemStack的net.minecraft.client.render中的方法 修饰符和类型 方法 说明 static RenderLayerRenderLayers. getItemLayer(ItemStack stack, boolean direct)voidGameRenderer. showFloatingItem(ItemStack floatingItem) -
net.minecraft.client.render.entity中ItemStack的使用
参数类型为ItemStack的net.minecraft.client.render.entity中的方法 修饰符和类型 方法 说明 private ModelIdentifierItemFrameEntityRenderer. getModelId(T entity, ItemStack stack)private intItemEntityRenderer. getRenderedAmount(ItemStack stack) -
net.minecraft.client.render.entity.feature中ItemStack的使用
参数类型为ItemStack的net.minecraft.client.render.entity.feature中的方法 修饰符和类型 方法 说明 protected voidHeldItemFeatureRenderer. renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)protected voidPlayerHeldItemFeatureRenderer. renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)private voidPlayerHeldItemFeatureRenderer. renderSpyglass(LivingEntity entity, ItemStack stack, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) -
net.minecraft.client.render.item中ItemStack的使用
声明为ItemStack的net.minecraft.client.render.item中的字段 修饰符和类型 字段 说明 private ItemStackHeldItemRenderer. mainHandprivate ItemStackHeldItemRenderer. offHand参数类型为ItemStack的net.minecraft.client.render.item中的方法 修饰符和类型 方法 说明 private voidHeldItemRenderer. applyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack)BakedModelItemRenderer. getHeldItemModel(ItemStack itemStack, @Nullable World world, @Nullable LivingEntity entity, int seed)BakedModelItemModels. getModel(ItemStack stack)SpriteItemModels. getSprite(ItemStack stack)private voidItemRenderer. innerRenderInGui(@Nullable LivingEntity entity, ItemStack itemStack, int x, int y, int int2)private static booleanHeldItemRenderer. isChargedCrossbow(ItemStack stack)voidBuiltinModelItemRenderer. render(ItemStack stack, ModelTransformation.Mode mode, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay)private voidItemRenderer. renderBakedItemModel(BakedModel model, ItemStack stack, int light, int overlay, MatrixStack matrices, VertexConsumer vertices)private voidItemRenderer. renderBakedItemQuads(MatrixStack matrices, VertexConsumer vertices, List<BakedQuad> quads, ItemStack stack, int light, int overlay)private voidHeldItemRenderer. renderFirstPersonItem(AbstractClientPlayerEntity player, float tickDelta, float pitch, Hand hand, float swingProgress, ItemStack item, float equipProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)private voidHeldItemRenderer. renderFirstPersonMap(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int swingProgress, ItemStack stack)voidItemRenderer. renderGuiItemIcon(ItemStack stack, int x, int y)protected voidItemRenderer. renderGuiItemModel(ItemStack stack, int x, int y, BakedModel model)voidItemRenderer. renderGuiItemOverlay(TextRenderer renderer, ItemStack stack, int x, int y)Renders the overlay for items in GUIs, including the damage bar and the item count.voidItemRenderer. renderGuiItemOverlay(TextRenderer renderer, ItemStack stack, int x, int y, @Nullable String countLabel)Renders the overlay for items in GUIs, including the damage bar and the item count.voidItemRenderer. renderInGui(ItemStack stack, int x, int y)Renders an item in a GUI without an attached entity.voidItemRenderer. renderInGuiWithOverrides(LivingEntity entity, ItemStack stack, int x, int y, int int2)Renders an item in a GUI with an attached entity.voidItemRenderer. renderInGuiWithOverrides(ItemStack stack, int x, int y)Renders an item in a GUI with the player as the attached entity for calculating model overrides.voidItemRenderer. renderInGuiWithOverrides(ItemStack stack, int x, int y, int int2)voidHeldItemRenderer. renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)voidItemRenderer. renderItem(@Nullable LivingEntity entity, ItemStack item, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int light, int overlay, int seed)voidItemRenderer. renderItem(ItemStack stack, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model)voidItemRenderer. renderItem(ItemStack stack, ModelTransformation.Mode transformationType, int light, int overlay, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int seed)private voidHeldItemRenderer. renderMapInOneHand(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, float equipProgress, Arm arm, float swingProgress, ItemStack stack) -
net.minecraft.client.render.model.json中ItemStack的使用
参数类型为ItemStack的net.minecraft.client.render.model.json中的方法 修饰符和类型 方法 说明 @Nullable BakedModelModelOverrideList. apply(BakedModel model, ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) -
net.minecraft.client.search中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.client.search中的字段 修饰符和类型 字段 说明 static SearchManager.Key<ItemStack>SearchManager. ITEM_TAGstatic SearchManager.Key<ItemStack>SearchManager. ITEM_TOOLTIP -
net.minecraft.client.tutorial中ItemStack的使用
参数类型为ItemStack的net.minecraft.client.tutorial中的方法 修饰符和类型 方法 说明 voidBundleTutorial. onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)A callback for starting the bundle tutorial.voidTutorialManager. onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)Called when a player performs apickup slot actionin a screen handler.voidCraftPlanksTutorialStepHandler. onSlotUpdate(ItemStack stack)voidFindTreeTutorialStepHandler. onSlotUpdate(ItemStack stack)voidPunchTreeTutorialStepHandler. onSlotUpdate(ItemStack stack)voidTutorialManager. onSlotUpdate(ItemStack stack)default voidTutorialStepHandler. onSlotUpdate(ItemStack stack) -
net.minecraft.command.argument中ItemStack的使用
返回ItemStack的net.minecraft.command.argument中的方法 修饰符和类型 方法 说明 ItemStackItemStackArgument. createStack(int amount, boolean checkOverstack)返回变量类型为ItemStack的类型的net.minecraft.command.argument中的方法 修饰符和类型 方法 说明 Predicate<ItemStack>ItemPredicateArgumentType.ItemPredicateArgument. create(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)static Predicate<ItemStack>ItemPredicateArgumentType. getItemPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)参数类型为ItemStack的net.minecraft.command.argument中的方法 修饰符和类型 方法 说明 booleanItemPredicateArgumentType.ItemPredicate. test(ItemStack itemStack)booleanItemPredicateArgumentType.TagPredicate. test(ItemStack itemStack)booleanItemStackArgument. test(ItemStack itemStack) -
net.minecraft.enchantment中ItemStack的使用
返回ItemStack的net.minecraft.enchantment中的方法 修饰符和类型 方法 说明 static ItemStackEnchantmentHelper. enchant(Random random, ItemStack target, int level, boolean treasureAllowed)Enchants thetargetitem stack and returns it.返回变量类型为ItemStack的类型的net.minecraft.enchantment中的方法 修饰符和类型 方法 说明 static Map.Entry<EquipmentSlot,ItemStack>EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity)Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied.static Map.Entry<EquipmentSlot,ItemStack>EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied and fulfills the extra condition.Map<EquipmentSlot,ItemStack>Enchantment. getEquipment(LivingEntity entity)参数类型为ItemStack的net.minecraft.enchantment中的方法 修饰符和类型 方法 说明 static intEnchantmentHelper. calculateRequiredExperienceLevel(Random random, int slotIndex, int bookshelfCount, ItemStack stack)Returns the required experience level for an enchanting option in the enchanting table's screen, or the enchantment screen.static ItemStackEnchantmentHelper. enchant(Random random, ItemStack target, int level, boolean treasureAllowed)Enchants thetargetitem stack and returns it.private static voidEnchantmentHelper. forEachEnchantment(EnchantmentHelper.Consumer consumer, ItemStack stack)static List<EnchantmentLevelEntry>EnchantmentHelper. generateEnchantments(Random random, ItemStack stack, int level, boolean treasureAllowed)Generate the enchantments for enchanting thestack.static Map<Enchantment,Integer>EnchantmentHelper. get(ItemStack stack)Gets the enchantments on an item stack.static floatEnchantmentHelper. getAttackDamage(ItemStack stack, EntityGroup group)static intEnchantmentHelper. getLevel(Enchantment enchantment, ItemStack stack)Gets the level of an enchantment on an item stack.static intEnchantmentHelper. getLoyalty(ItemStack stack)static intEnchantmentHelper. getLuckOfTheSea(ItemStack stack)static intEnchantmentHelper. getLure(ItemStack stack)static List<EnchantmentLevelEntry>EnchantmentHelper. getPossibleEntries(int power, ItemStack stack, boolean treasureAllowed)Gets all the possible entries for enchanting thestackat the givenpower.static intEnchantmentHelper. getRiptide(ItemStack stack)static booleanEnchantmentHelper. hasBindingCurse(ItemStack stack)static booleanEnchantmentHelper. hasChanneling(ItemStack stack)static booleanEnchantmentHelper. hasVanishingCurse(ItemStack stack)booleanDamageEnchantment. isAcceptableItem(ItemStack stack)booleanEfficiencyEnchantment. isAcceptableItem(ItemStack stack)booleanEnchantment. isAcceptableItem(ItemStack stack)booleanThornsEnchantment. isAcceptableItem(ItemStack stack)booleanUnbreakingEnchantment. isAcceptableItem(ItemStack stack)static voidEnchantmentHelper. set(Map<Enchantment,Integer> enchantments, ItemStack stack)Sets the enchantments on an item stack.static booleanUnbreakingEnchantment. shouldPreventDamage(ItemStack item, int level, Random random)类型变量类型为ItemStack的net.minecraft.enchantment中的方法参数 修饰符和类型 方法 说明 static Map.Entry<EquipmentSlot,ItemStack>EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied and fulfills the extra condition.private static voidEnchantmentHelper. forEachEnchantment(EnchantmentHelper.Consumer consumer, Iterable<ItemStack> stacks)static intEnchantmentHelper. getProtectionAmount(Iterable<ItemStack> equipment, DamageSource source) -
net.minecraft.entity中ItemStack的使用
声明为ItemStack的net.minecraft.entity中的字段 修饰符和类型 字段 说明 protected ItemStackLivingEntity. activeItemStack类型参数类型为ItemStack的net.minecraft.entity中的字段 修饰符和类型 字段 说明 private static List<ItemStack>Entity. EMPTY_STACK_LISTprivate DefaultedList<ItemStack>LivingEntity. equippedArmorprivate DefaultedList<ItemStack>LivingEntity. equippedHandprivate static TrackedData<ItemStack>EyeOfEnderEntity. ITEMprivate static TrackedData<ItemStack>ItemEntity. STACK返回ItemStack的net.minecraft.entity中的方法 修饰符和类型 方法 说明 ItemStackLivingEntity. eatFood(World world, ItemStack stack)ItemStackLivingEntity. getActiveItem()private ItemStackLivingEntity. getArmorInSlot(EquipmentSlot slot)ItemStackLivingEntity. getArrowType(ItemStack stack)ItemStackBucketable. getBucketItem()abstract ItemStackLivingEntity. getEquippedStack(EquipmentSlot slot)ItemStackLivingEntity. getMainHandStack()ItemStackLivingEntity. getOffHandStack()@Nullable ItemStackEntity. getPickBlockStack()ItemStackEyeOfEnderEntity. getStack()ItemStackFlyingItemEntity. getStack()ItemStackItemEntity. getStack()Returns the item stack contained in this item entity.ItemStackLivingEntity. getStackInHand(Hand hand)private ItemStackLivingEntity. getStackInHandSlot(EquipmentSlot slot)private ItemStackEyeOfEnderEntity. getTrackedItem()static ItemStackItemEntity. merge(ItemStack stack1, ItemStack stack2, int maxCount)返回变量类型为ItemStack的类型的net.minecraft.entity中的方法 修饰符和类型 方法 说明 Iterable<ItemStack>Entity. getArmorItems()abstract Iterable<ItemStack>LivingEntity. getArmorItems()Iterable<ItemStack>Entity. getItemsEquipped()Iterable<ItemStack>Entity. getItemsHand()private @Nullable Map<EquipmentSlot,ItemStack>LivingEntity. method_30129()参数类型为ItemStack的net.minecraft.entity中的方法 修饰符和类型 方法 说明 private voidLivingEntity. applyFoodEffects(ItemStack stack, World world, LivingEntity targetEntity)booleanLivingEntity. canEquip(ItemStack stack)static booleanItemEntity. canMerge(ItemStack stack1, ItemStack stack2)static voidBucketable. copyDataToStack(MobEntity entity, ItemStack stack)voidBucketable. copyDataToStack(ItemStack stack)@Nullable ItemEntityEntity. dropStack(ItemStack stack)@Nullable ItemEntityEntity. dropStack(ItemStack stack, float yOffset)ItemStackLivingEntity. eatFood(World world, ItemStack stack)voidEntity. equipStack(EquipmentSlot slot, ItemStack stack)abstract voidLivingEntity. equipStack(EquipmentSlot slot, ItemStack stack)ItemStackLivingEntity. getArrowType(ItemStack stack)protected SoundEventLivingEntity. getDrinkSound(ItemStack stack)SoundEventLivingEntity. getEatSound(ItemStack stack)static EquipmentSlotLivingEntity. getPreferredEquipmentSlot(ItemStack stack)private static voidItemEntity. merge(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack)private static voidItemEntity. merge(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2)static ItemStackItemEntity. merge(ItemStack stack1, ItemStack stack2, int maxCount)protected voidLivingEntity. onEquipStack(ItemStack stack)private voidLivingEntity. playEquipmentBreakEffects(ItemStack stack)private voidLivingEntity. setArmorInSlot(EquipmentSlot slot, ItemStack armor)voidEyeOfEnderEntity. setItem(ItemStack stack)voidItemEntity. setStack(ItemStack stack)Sets the item stack contained in this item entity tostack.voidLivingEntity. setStackInHand(Hand hand, ItemStack stack)private voidLivingEntity. setStackInHandSlot(EquipmentSlot slot, ItemStack stack)voidCrossbowUser. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)protected voidLivingEntity. spawnConsumptionEffects(ItemStack stack, int particleCount)@Nullable EntityEntityType. spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)private voidLivingEntity. spawnItemParticles(ItemStack stack, int count)类型变量类型为ItemStack的net.minecraft.entity中的方法参数 修饰符和类型 方法 说明 booleanLivingEntity. isHolding(Predicate<ItemStack> predicate)Checks if this entity is holding a certain item.private voidLivingEntity. setEquipment(Map<EquipmentSlot,ItemStack> equipment)private voidLivingEntity. swapHandStacks(Map<EquipmentSlot,ItemStack> equipment)参数类型为ItemStack的net.minecraft.entity中的构造器 构造器 说明 ItemEntity(World world, double x, double y, double z, ItemStack stack) -
net.minecraft.entity.ai.brain.sensor中ItemStack的使用
参数类型为ItemStack的net.minecraft.entity.ai.brain.sensor中的方法 修饰符和类型 方法 说明 private booleanTemptationsSensor. test(ItemStack stack) -
net.minecraft.entity.ai.brain.task中ItemStack的使用
声明为ItemStack的net.minecraft.entity.ai.brain.task中的字段 修饰符和类型 字段 说明 private @Nullable ItemStackHoldTradeOffersTask. customerHeldStack类型参数类型为ItemStack的net.minecraft.entity.ai.brain.task中的字段 修饰符和类型 字段 说明 private List<ItemStack>HoldTradeOffersTask. offers返回ItemStack的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 private ItemStackCelebrateRaidWinTask. createFirework(DyeColor color, int flight)返回变量类型为ItemStack的类型的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 private List<ItemStack>GiveGiftsToHeroTask. getGifts(VillagerEntity villager)参数类型为ItemStack的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 static voidLookTargetUtil. give(LivingEntity entity, ItemStack stack, Vec3d targetLocation) -
net.minecraft.entity.ai.goal中ItemStack的使用
声明为ItemStack的net.minecraft.entity.ai.goal中的字段 修饰符和类型 字段 说明 private ItemStackHoldInHandsGoal. item返回ItemStack的net.minecraft.entity.ai.goal中的方法 修饰符和类型 方法 说明 private ItemStackSkeletonHorseTrapTriggerGoal. removeEnchantments(ItemStack stack)参数类型为ItemStack的net.minecraft.entity.ai.goal中的方法 修饰符和类型 方法 说明 private ItemStackSkeletonHorseTrapTriggerGoal. removeEnchantments(ItemStack stack)参数类型为ItemStack的net.minecraft.entity.ai.goal中的构造器 构造器 说明 HoldInHandsGoal(T actor, ItemStack item, @Nullable SoundEvent sound, Predicate<? super T> condition) -
net.minecraft.entity.data中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.entity.data中的字段 修饰符和类型 字段 说明 static TrackedDataHandler<ItemStack>TrackedDataHandlerRegistry. ITEM_STACK -
net.minecraft.entity.decoration中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.entity.decoration中的字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>ArmorStandEntity. armorItemsprivate DefaultedList<ItemStack>ArmorStandEntity. heldItemsprivate static TrackedData<ItemStack>ItemFrameEntity. ITEM_STACK返回ItemStack的net.minecraft.entity.decoration中的方法 修饰符和类型 方法 说明 protected ItemStackGlowItemFrameEntity. getAsItemStack()protected ItemStackItemFrameEntity. getAsItemStack()ItemStackArmorStandEntity. getEquippedStack(EquipmentSlot slot)ItemStackItemFrameEntity. getHeldItemStack()ItemStackArmorStandEntity. getPickBlockStack()ItemStackEndCrystalEntity. getPickBlockStack()ItemStackItemFrameEntity. getPickBlockStack()ItemStackLeashKnotEntity. getPickBlockStack()返回变量类型为ItemStack的类型的net.minecraft.entity.decoration中的方法 修饰符和类型 方法 说明 Iterable<ItemStack>ArmorStandEntity. getArmorItems()Iterable<ItemStack>ArmorStandEntity. getItemsHand()参数类型为ItemStack的net.minecraft.entity.decoration中的方法 修饰符和类型 方法 说明 booleanArmorStandEntity. canEquip(ItemStack stack)ItemEntityAbstractDecorationEntity. dropStack(ItemStack stack, float yOffset)private booleanArmorStandEntity. equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand)voidArmorStandEntity. equipStack(EquipmentSlot slot, ItemStack stack)private voidItemFrameEntity. removeFromFrame(ItemStack map)voidItemFrameEntity. setHeldItemStack(ItemStack stack)voidItemFrameEntity. setHeldItemStack(ItemStack value, boolean update) -
net.minecraft.entity.decoration.painting中ItemStack的使用
返回ItemStack的net.minecraft.entity.decoration.painting中的方法 修饰符和类型 方法 说明 ItemStackPaintingEntity. getPickBlockStack() -
net.minecraft.entity.mob中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.entity.mob中的字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>MobEntity. armorItemsprivate DefaultedList<ItemStack>MobEntity. handItems返回ItemStack的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 protected ItemStackPiglinEntity. addItem(ItemStack stack)ItemStackHostileEntity. getArrowType(ItemStack stack)ItemStackMobEntity. getEquippedStack(EquipmentSlot slot)private static ItemStackPiglinBrain. getItemFromStack(ItemEntity stack)@Nullable ItemStackMobEntity. getPickBlockStack()protected ItemStackDrownedEntity. getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackHuskEntity. getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackZombieEntity. getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackZombieVillagerEntity. getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackZombifiedPiglinEntity. getSkull()Returns the item stack this entity will drop when killed by a charged creeper.private ItemStackPiglinEntity. makeInitialWeapon()返回变量类型为ItemStack的类型的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 Iterable<ItemStack>MobEntity. getArmorItems()private static List<ItemStack>PiglinBrain. getBarteredItem(PiglinEntity piglin)Iterable<ItemStack>MobEntity. getItemsHand()参数类型为ItemStack的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 private static booleanPiglinBrain. acceptsForBarter(ItemStack stack)protected ItemStackPiglinEntity. addItem(ItemStack stack)private static voidPiglinBrain. barterItem(PiglinEntity piglin, ItemStack stack)booleanMobEntity. canEquip(ItemStack stack)protected booleanPiglinEntity. canEquipStack(ItemStack stack)Returns whether this piglin can equip into or replace current equipment slot.booleanMobEntity. canGather(ItemStack stack)protected static booleanPiglinBrain. canGather(PiglinEntity piglin, ItemStack stack)booleanPiglinBruteEntity. canGather(ItemStack stack)booleanPiglinEntity. canGather(ItemStack stack)protected booleanPiglinEntity. canInsertIntoInventory(ItemStack stack)booleanMobEntity. canPickupItem(ItemStack stack)booleanZombieEntity. canPickupItem(ItemStack stack)protected PersistentProjectileEntityAbstractSkeletonEntity. createArrowProjectile(ItemStack arrow, float damageModifier)protected PersistentProjectileEntityStrayEntity. createArrowProjectile(ItemStack arrow, float damageModifier)protected PersistentProjectileEntityWitherSkeletonEntity. createArrowProjectile(ItemStack arrow, float damageModifier)private voidMobEntity. disablePlayerShield(PlayerEntity player, ItemStack mobStack, ItemStack playerStack)private voidPiglinEntity. equipAtChance(EquipmentSlot slot, ItemStack stack)protected voidMobEntity. equipLootStack(EquipmentSlot slot, ItemStack stack)voidAbstractSkeletonEntity. equipStack(EquipmentSlot slot, ItemStack stack)voidMobEntity. equipStack(EquipmentSlot slot, ItemStack stack)protected voidPiglinEntity. equipToMainHand(ItemStack stack)protected voidPiglinEntity. equipToOffHand(ItemStack stack)ItemStackHostileEntity. getArrowType(ItemStack stack)booleanHoglinEntity. isBreedingItem(ItemStack stack)private static booleanPiglinBrain. isFood(ItemStack stack)protected static booleanPiglinBrain. isGoldenItem(ItemStack stack)private booleanPillagerEntity. isRaidCaptain(ItemStack stack)protected static booleanPiglinBrain. isWillingToTrade(PiglinEntity piglin, ItemStack nearbyItems)booleanMobEntity. prefersNewDamageableItem(ItemStack newStack, ItemStack oldStack)protected booleanDrownedEntity. prefersNewEquipment(ItemStack newStack, ItemStack oldStack)protected booleanMobEntity. prefersNewEquipment(ItemStack newStack, ItemStack oldStack)protected booleanPiglinEntity. prefersNewEquipment(ItemStack newStack, ItemStack oldStack)voidPiglinEntity. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)voidPillagerEntity. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)private static voidPiglinBrain. swapItemWithOffHand(PiglinEntity piglin, ItemStack stack)booleanMobEntity. tryEquip(ItemStack equipment)类型变量类型为ItemStack的net.minecraft.entity.mob中的方法参数 修饰符和类型 方法 说明 private static voidPiglinBrain. doBarter(PiglinEntity piglin, List<ItemStack> list)private static voidPiglinBrain. drop(PiglinEntity piglin, List<ItemStack> list, Vec3d vec3d)private static voidPiglinBrain. dropBarteredItem(PiglinEntity piglin, List<ItemStack> list)private static voidPiglinBrain. dropBarteredItem(PiglinEntity piglin, PlayerEntity player, List<ItemStack> list) -
net.minecraft.entity.passive中ItemStack的使用
返回ItemStack的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 ItemStackHorseEntity. getArmorType()ItemStackAxolotlEntity. getBucketItem()ItemStackCodEntity. getBucketItem()ItemStackPufferfishEntity. getBucketItem()ItemStackSalmonEntity. getBucketItem()ItemStackTropicalFishEntity. getBucketItem()参数类型为ItemStack的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 private booleanFoxEntity. canEat(ItemStack stack)private booleanPandaEntity. canEat(ItemStack stack)booleanDolphinEntity. canEquip(ItemStack stack)booleanFoxEntity. canEquip(ItemStack stack)booleanPandaEntity. canEquip(ItemStack stack)booleanVillagerEntity. canGather(ItemStack stack)booleanFoxEntity. canPickupItem(ItemStack stack)voidAxolotlEntity. copyDataToStack(ItemStack stack)voidFishEntity. copyDataToStack(ItemStack stack)voidTropicalFishEntity. copyDataToStack(ItemStack stack)private voidFoxEntity. dropItem(ItemStack stack)protected voidAnimalEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)protected voidAxolotlEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)protected voidCatEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)protected voidFoxEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)private voidHorseEntity. equipArmor(ItemStack stack)private static @Nullable DyeColorLlamaEntity. getColorFromCarpet(ItemStack color)protected SoundEventWanderingTraderEntity. getDrinkSound(ItemStack stack)SoundEventFoxEntity. getEatSound(ItemStack stack)private Optional<Pair<StatusEffect,Integer>>MooshroomEntity. getStewEffectFrom(ItemStack flower)ActionResultHorseBaseEntity. interactHorse(PlayerEntity player, ItemStack stack)booleanAnimalEntity. isBreedingItem(ItemStack stack)booleanAxolotlEntity. isBreedingItem(ItemStack stack)booleanBeeEntity. isBreedingItem(ItemStack stack)booleanCatEntity. isBreedingItem(ItemStack stack)booleanChickenEntity. isBreedingItem(ItemStack stack)booleanFoxEntity. isBreedingItem(ItemStack stack)booleanHorseBaseEntity. isBreedingItem(ItemStack stack)booleanLlamaEntity. isBreedingItem(ItemStack stack)booleanOcelotEntity. isBreedingItem(ItemStack stack)booleanPandaEntity. isBreedingItem(ItemStack stack)booleanParrotEntity. isBreedingItem(ItemStack stack)booleanPigEntity. isBreedingItem(ItemStack stack)booleanPolarBearEntity. isBreedingItem(ItemStack stack)booleanRabbitEntity. isBreedingItem(ItemStack stack)booleanStriderEntity. isBreedingItem(ItemStack stack)booleanTurtleEntity. isBreedingItem(ItemStack stack)booleanWolfEntity. isBreedingItem(ItemStack stack)booleanHorseBaseEntity. isHorseArmor(ItemStack item)Whether the given item stack is valid for this horse's armor slot.booleanHorseEntity. isHorseArmor(ItemStack item)Whether the given item stack is valid for this horse's armor slot.booleanLlamaEntity. isHorseArmor(ItemStack item)Whether the given item stack is valid for this horse's armor slot.private static booleanRabbitEntity. isTempting(ItemStack stack)voidMerchantEntity. onSellingItem(ItemStack stack)protected booleanHorseBaseEntity. receiveFood(PlayerEntity player, ItemStack item)protected booleanLlamaEntity. receiveFood(PlayerEntity player, ItemStack item)private voidHorseEntity. setArmorTypeFromStack(ItemStack stack)private voidFoxEntity. spit(ItemStack stack)private voidDolphinEntity.PlayWithItemsGoal. spitOutItem(ItemStack stack)类型变量类型为ItemStack的net.minecraft.entity.passive中的方法参数 修饰符和类型 方法 说明 private CommandItemSlotHorseBaseEntity. method_32335(int int2, Predicate<ItemStack> predicate) -
net.minecraft.entity.player中ItemStack的使用
声明为ItemStack的net.minecraft.entity.player中的字段 修饰符和类型 字段 说明 private ItemStackPlayerEntity. selectedItem类型参数类型为ItemStack的net.minecraft.entity.player中的字段 修饰符和类型 字段 说明 DefaultedList<ItemStack>PlayerInventory. armorprivate List<DefaultedList<ItemStack>>PlayerInventory. combinedInventoryDefaultedList<ItemStack>PlayerInventory. mainDefaultedList<ItemStack>PlayerInventory. offHand返回ItemStack的net.minecraft.entity.player中的方法 修饰符和类型 方法 说明 ItemStackPlayerEntity. eatFood(World world, ItemStack stack)ItemStackPlayerInventory. getArmorStack(int slot)ItemStackPlayerEntity. getArrowType(ItemStack stack)ItemStackPlayerEntity. getEquippedStack(EquipmentSlot slot)ItemStackPlayerInventory. getMainHandStack()ItemStackPlayerInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackPlayerInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackPlayerInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.返回变量类型为ItemStack的类型的net.minecraft.entity.player中的方法 修饰符和类型 方法 说明 Iterable<ItemStack>PlayerEntity. getArmorItems()Iterable<ItemStack>PlayerEntity. getItemsHand()参数类型为ItemStack的net.minecraft.entity.player中的方法 修饰符和类型 方法 说明 voidPlayerInventory. addPickBlock(ItemStack stack)private intPlayerInventory. addStack(int slot, ItemStack stack)private intPlayerInventory. addStack(ItemStack stack)voidPlayerEntity. applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels)booleanPlayerEntity. canEquip(ItemStack stack)booleanPlayerEntity. canPlaceOn(BlockPos pos, Direction facing, ItemStack stack)private booleanPlayerInventory. canStackAddMore(ItemStack existingStack, ItemStack stack)booleanPlayerInventory. contains(ItemStack stack)@Nullable ItemEntityPlayerEntity. dropItem(ItemStack stack, boolean retainOwnership)@Nullable ItemEntityPlayerEntity. dropItem(ItemStack stack, boolean throwRandomly, boolean retainOwnership)voidHungerManager. eat(Item item, ItemStack stack)ItemStackPlayerEntity. eatFood(World world, ItemStack stack)voidPlayerEntity. equipStack(EquipmentSlot slot, ItemStack stack)ItemStackPlayerEntity. getArrowType(ItemStack stack)intPlayerInventory. getOccupiedSlotWithRoomForStack(ItemStack stack)intPlayerInventory. getSlotWithStack(ItemStack stack)booleanPlayerEntity. giveItemStack(ItemStack stack)intPlayerInventory. indexOf(ItemStack stack)booleanPlayerInventory. insertStack(int slot, ItemStack stack)booleanPlayerInventory. insertStack(ItemStack stack)voidPlayerInventory. offer(ItemStack stack, boolean notifiesClient)voidPlayerInventory. offerOrDrop(ItemStack stack)voidPlayerEntity. onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)Called when a player performs apickup slot actionin a screen handler.voidPlayerInventory. removeOne(ItemStack stack)voidPlayerInventory. setStack(int slot, ItemStack stack)voidPlayerEntity. useBook(ItemStack book, Hand hand)Called when the player uses (defaults to right click) a writable or written book item.类型变量类型为ItemStack的net.minecraft.entity.player中的方法参数 修饰符和类型 方法 说明 intPlayerInventory. remove(Predicate<ItemStack> shouldRemove, int maxCount, Inventory craftingInventory) -
net.minecraft.entity.projectile中ItemStack的使用
声明为ItemStack的net.minecraft.entity.projectile中的字段 修饰符和类型 字段 说明 private ItemStackTridentEntity. tridentStack类型参数类型为ItemStack的net.minecraft.entity.projectile中的字段 修饰符和类型 字段 说明 private static TrackedData<ItemStack>AbstractFireballEntity. ITEMprivate static TrackedData<ItemStack>FireworkRocketEntity. ITEM返回ItemStack的net.minecraft.entity.projectile中的方法 修饰符和类型 方法 说明 protected ItemStackArrowEntity. asItemStack()protected abstract ItemStackPersistentProjectileEntity. asItemStack()protected ItemStackSpectralArrowEntity. asItemStack()protected ItemStackTridentEntity. asItemStack()protected ItemStackAbstractFireballEntity. getItem()ItemStackAbstractFireballEntity. getStack()ItemStackFireworkRocketEntity. getStack()参数类型为ItemStack的net.minecraft.entity.projectile中的方法 修饰符和类型 方法 说明 static PersistentProjectileEntityProjectileUtil. createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier)static intArrowEntity. getCustomPotionColor(ItemStack stack)voidArrowEntity. initFromStack(ItemStack stack)voidAbstractFireballEntity. setItem(ItemStack stack)intFishingBobberEntity. use(ItemStack usedItem)参数类型为ItemStack的net.minecraft.entity.projectile中的构造器 构造器 说明 FireworkRocketEntity(World world, double x, double y, double z, ItemStack stack)FireworkRocketEntity(World world, @Nullable Entity entity, double x, double y, double z, ItemStack stack)FireworkRocketEntity(World world, ItemStack stack, double x, double y, double z, boolean shotAtAngle)FireworkRocketEntity(World world, ItemStack stack, Entity entity, double x, double y, double z, boolean shotAtAngle)FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter)TridentEntity(World world, LivingEntity owner, ItemStack stack) -
net.minecraft.entity.projectile.thrown中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.entity.projectile.thrown中的字段 修饰符和类型 字段 说明 private static TrackedData<ItemStack>ThrownItemEntity. ITEM返回ItemStack的net.minecraft.entity.projectile.thrown中的方法 修饰符和类型 方法 说明 protected ItemStackThrownItemEntity. getItem()ItemStackThrownItemEntity. getStack()参数类型为ItemStack的net.minecraft.entity.projectile.thrown中的方法 修饰符和类型 方法 说明 private voidPotionEntity. applyLingeringPotion(ItemStack stack, Potion potion)voidThrownItemEntity. setItem(ItemStack item) -
net.minecraft.entity.vehicle中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.entity.vehicle中的字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>StorageMinecartEntity. inventory返回ItemStack的net.minecraft.entity.vehicle中的方法 修饰符和类型 方法 说明 ItemStackAbstractMinecartEntity. getPickBlockStack()ItemStackBoatEntity. getPickBlockStack()ItemStackStorageMinecartEntity. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackStorageMinecartEntity. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackStorageMinecartEntity. removeStack(int slot, int amount)Removes a specific number of items from the given slot.参数类型为ItemStack的net.minecraft.entity.vehicle中的方法 修饰符和类型 方法 说明 voidStorageMinecartEntity. setStack(int slot, ItemStack stack) -
net.minecraft.inventory中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.inventory中的字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>CraftingInventory. stacksprivate DefaultedList<ItemStack>CraftingResultInventory. stacksprivate DefaultedList<ItemStack>SimpleInventory. stacks返回ItemStack的net.minecraft.inventory中的方法 修饰符和类型 方法 说明 ItemStackSimpleInventory. addStack(ItemStack stack)ItemStackCommandItemSlot. get()Gets the current item stack in this slot.ItemStackCraftingInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackCraftingResultInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackDoubleInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackSimpleInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackSimpleInventory. removeItem(Item item, int count)Searches this inventory for the specified item and removes the given amount from this inventory.ItemStackCraftingInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackCraftingInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackCraftingResultInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackCraftingResultInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackDoubleInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackDoubleInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.static ItemStackInventories. removeStack(List<ItemStack> stacks, int slot)ItemStackInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackSimpleInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackSimpleInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.static ItemStackInventories. splitStack(List<ItemStack> stacks, int slot, int amount)返回变量类型为ItemStack的类型的net.minecraft.inventory中的方法 修饰符和类型 方法 说明 List<ItemStack>SimpleInventory. clearToList()Clears this inventory and return all the non-empty stacks in a list.参数类型为ItemStack的net.minecraft.inventory中的方法 修饰符和类型 方法 说明 ItemStackSimpleInventory. addStack(ItemStack stack)private voidSimpleInventory. addToExistingSlot(ItemStack stack)private voidSimpleInventory. addToNewSlot(ItemStack stack)booleanSidedInventory. canExtract(int slot, ItemStack stack, Direction dir)Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanSidedInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanSimpleInventory. canInsert(ItemStack stack)booleanContainerLock. canOpen(ItemStack stack)Returns true if this lock can be opened with the key item stack.booleanDoubleInventory. isValid(int slot, ItemStack stack)Returns whether the given stack is a valid for the indicated slot position.default booleanInventory. isValid(int slot, ItemStack stack)Returns whether the given stack is a valid for the indicated slot position.static intInventories. remove(ItemStack stack, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun)Removes a number, not exceedingmaxCount, of items from an item stack based on a predicate and returns that number.booleanCommandItemSlot. set(ItemStack stack)Sets thestackto this slot.voidCraftingInventory. setStack(int slot, ItemStack stack)voidCraftingResultInventory. setStack(int slot, ItemStack stack)voidDoubleInventory. setStack(int slot, ItemStack stack)voidInventory. setStack(int slot, ItemStack stack)voidSimpleInventory. setStack(int slot, ItemStack stack)private voidSimpleInventory. transfer(ItemStack source, ItemStack target)类型变量类型为ItemStack的net.minecraft.inventory中的方法参数 修饰符和类型 方法 说明 static CommandItemSlotCommandItemSlot. of(LivingEntity entity, EquipmentSlot equipmentSlot, Predicate<ItemStack> stackFilter)Creates a slot backed by an equipment slot of an living entity and guarded by a condition for setting stacks into the inventory.static CommandItemSlotCommandItemSlot. of(Inventory inventory, int index, Predicate<ItemStack> stackFilter)Creates a slot backed by an index within an inventory and guarded by a condition for setting stacks into the inventory.static voidInventories. readNbt(CompoundTag nbt, DefaultedList<ItemStack> stacks)static intInventories. remove(Inventory inventory, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun)Removes a number, not exceedingmaxCount, of items from an inventory based on a predicate and returns that number.static intInventories. remove(ItemStack stack, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun)Removes a number, not exceedingmaxCount, of items from an item stack based on a predicate and returns that number.static ItemStackInventories. removeStack(List<ItemStack> stacks, int slot)static ItemStackInventories. splitStack(List<ItemStack> stacks, int slot, int amount)static CompoundTagInventories. writeNbt(CompoundTag nbt, DefaultedList<ItemStack> stacks)static CompoundTagInventories. writeNbt(CompoundTag nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty)参数类型为ItemStack的net.minecraft.inventory中的构造器 构造器 说明 SimpleInventory(ItemStack[] items) -
net.minecraft.item中ItemStack的使用
声明为ItemStack的net.minecraft.item中的字段 修饰符和类型 字段 说明 static ItemStackItemStack. EMPTYprivate ItemStackItemGroup. iconprivate ItemStackItemUsageContext. stack类型参数类型为ItemStack的net.minecraft.item中的字段 修饰符和类型 字段 说明 static Predicate<ItemStack>RangedWeaponItem. BOW_PROJECTILESstatic com.mojang.serialization.Codec<ItemStack>ItemStack. CODECstatic Predicate<ItemStack>RangedWeaponItem. CROSSBOW_HELD_PROJECTILES返回ItemStack的net.minecraft.item中的方法 修饰符和类型 方法 说明 static ItemStackDyeableItem. blendAndSetColor(ItemStack stack, List<DyeItem> colors)ItemStackItemStack. copy()abstract ItemStackItemGroup. createIcon()static ItemStackFilledMapItem. createMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking)static ItemStackItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack)static ItemStackItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride)protected ItemStackGlassBottleItem. fill(ItemStack stack, PlayerEntity player, ItemStack outputStack)ItemStackChorusFruitItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackHoneyBottleItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackItemStack. finishUsing(World world, LivingEntity user)ItemStackMilkBucketItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackMushroomStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackPotionItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSpyglassItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSuspiciousStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)static ItemStackEnchantedBookItem. forEnchantment(EnchantmentLevelEntry info)static ItemStackItemStack. fromNbt(CompoundTag nbt)ItemStackFireworkItem. getDefaultStack()ItemStackItem. getDefaultStack()ItemStackPotionItem. getDefaultStack()ItemStackTippedArrowItem. getDefaultStack()static ItemStackBucketItem. getEmptiedStack(ItemStack stack, PlayerEntity player)static ItemStackRangedWeaponItem. getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)ItemStackItemGroup. getIcon()ItemStackItemUsageContext. getStack()ItemStackItemStack. setCustomName(@Nullable Text name)ItemStackItemStack. split(int amount)返回变量类型为ItemStack的类型的net.minecraft.item中的方法 修饰符和类型 方法 说明 static TypedActionResult<ItemStack>ItemUsage. consumeHeldItem(World world, PlayerEntity player, Hand hand)private static Stream<ItemStack>BundleItem. getBundledStacks(ItemStack stack)Predicate<ItemStack>CrossbowItem. getHeldProjectiles()Predicate<ItemStack>RangedWeaponItem. getHeldProjectiles()Predicate<ItemStack>BowItem. getProjectiles()Predicate<ItemStack>CrossbowItem. getProjectiles()private static List<ItemStack>CrossbowItem. getProjectiles(ItemStack crossbow)abstract Predicate<ItemStack>RangedWeaponItem. getProjectiles()private static Optional<ItemStack>BundleItem. removeFirstStack(ItemStack stack)TypedActionResult<ItemStack>ArmorItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BoatItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BowItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BucketItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BundleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>CrossbowItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EggItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ElytraItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EmptyMapItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EnderEyeItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EnderPearlItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ExperienceBottleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>FireworkItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>FishingRodItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>GlassBottleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>HoneyBottleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>Item. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ItemStack. use(World world, PlayerEntity user, Hand hand)TypedActionResult<ItemStack>KnowledgeBookItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>LilyPadItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>LingeringPotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>MilkBucketItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>OnAStickItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>PotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ShieldItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SnowballItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SpawnEggItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SplashPotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SpyglassItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ThrowablePotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>TridentItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>WritableBookItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>WrittenBookItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.参数类型为ItemStack的net.minecraft.item中的方法 修饰符和类型 方法 说明 static voidSuspiciousStewItem. addEffectToStew(ItemStack stew, StatusEffect effect, int duration)static voidEnchantedBookItem. addEnchantment(ItemStack stack, EnchantmentLevelEntry entry)private static intBundleItem. addToBundle(ItemStack bundle, ItemStack stack)static voidBannerItem. appendBannerTooltip(ItemStack stack, List<Text> tooltip)voidAirBlockItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidBannerItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidBannerPatternItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidBlockItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidBundleItem. appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)voidCrossbowItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidEnchantedBookItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidEntityBucketItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidFilledMapItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidFireworkChargeItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidFireworkItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidLingeringPotionItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidMusicDiscItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidPotionItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidShieldItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidTippedArrowItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidWrittenBookItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)static booleanItemStack. areEqual(ItemStack left, ItemStack right)static booleanItemStack. areItemsEqual(ItemStack left, ItemStack right)static booleanItemStack. areItemsEqualIgnoreDamage(ItemStack left, ItemStack right)static booleanItemStack. areTagsEqual(ItemStack left, ItemStack right)static ItemStackDyeableItem. blendAndSetColor(ItemStack stack, List<DyeItem> colors)static booleanItemStack. canCombine(ItemStack stack, ItemStack otherStack)private static Optional<CompoundTag>BundleItem. canMergeStack(ItemStack stack, ListTag items)protected booleanDecorationItem. canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos)protected booleanItemFrameItem. canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos)booleanArmorItem. canRepair(ItemStack stack, ItemStack ingredient)booleanElytraItem. canRepair(ItemStack stack, ItemStack ingredient)booleanItem. canRepair(ItemStack stack, ItemStack ingredient)booleanShieldItem. canRepair(ItemStack stack, ItemStack ingredient)booleanToolItem. canRepair(ItemStack stack, ItemStack ingredient)private static voidCrossbowItem. clearProjectiles(ItemStack crossbow)static voidFilledMapItem. copyMap(World world, ItemStack stack)PersistentProjectileEntityArrowItem. createArrow(World world, ItemStack stack, LivingEntity shooter)private static PersistentProjectileEntityCrossbowItem. createArrow(World world, LivingEntity entity, ItemStack crossbow, ItemStack arrow)PersistentProjectileEntitySpectralArrowItem. createArrow(World world, ItemStack stack, LivingEntity shooter)private static voidFilledMapItem. createMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)@Nullable Packet<?>FilledMapItem. createSyncPacket(ItemStack stack, World world, PlayerEntity player)Creates a packet that syncs additional item data to the client.@Nullable Packet<?>NetworkSyncedItem. createSyncPacket(ItemStack stack, World world, PlayerEntity player)Creates a packet that syncs additional item data to the client.static booleanArmorItem. dispenseArmor(BlockPointer pointer, ItemStack armor)private static booleanBundleItem. dropAllBundledItems(ItemStack stack, PlayerEntity player)static ItemStackItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack)static ItemStackItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride)protected ItemStackGlassBottleItem. fill(ItemStack stack, PlayerEntity player, ItemStack outputStack)static voidFilledMapItem. fillExplorationMap(ServerWorld world, ItemStack map)ItemStackChorusFruitItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackHoneyBottleItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackMilkBucketItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackMushroomStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackPotionItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSpyglassItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSuspiciousStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)static floatBundleItem. getAmountFilled(ItemStack stack)private static Stream<ItemStack>BundleItem. getBundledStacks(ItemStack stack)private static intBundleItem. getBundleOccupancy(ItemStack stack)default intDyeableItem. getColor(ItemStack stack)static DyeColorShieldItem. getColor(ItemStack stack)static ItemStackBucketItem. getEmptiedStack(ItemStack stack, PlayerEntity player)static ListTagEnchantedBookItem. getEnchantmentNbt(ItemStack stack)static intWrittenBookItem. getGeneration(ItemStack stack)intBundleItem. getItemBarColor(ItemStack stack)intItem. getItemBarColor(ItemStack stack)intBundleItem. getItemBarStep(ItemStack stack)intItem. getItemBarStep(ItemStack stack)private static intBundleItem. getItemOccupancy(ItemStack stack)static intFilledMapItem. getMapColor(ItemStack stack)static @Nullable IntegerFilledMapItem. getMapId(ItemStack stack)intBowItem. getMaxUseTime(ItemStack stack)intCrossbowItem. getMaxUseTime(ItemStack stack)intHoneyBottleItem. getMaxUseTime(ItemStack stack)intItem. getMaxUseTime(ItemStack stack)intMilkBucketItem. getMaxUseTime(ItemStack stack)intPotionItem. getMaxUseTime(ItemStack stack)intShieldItem. getMaxUseTime(ItemStack stack)intSpyglassItem. getMaxUseTime(ItemStack stack)intTridentItem. getMaxUseTime(ItemStack stack)floatAxeItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatMiningToolItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatPickaxeItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatShearsItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatSwordItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)TextItem. getName(ItemStack stack)TextSkullItem. getName(ItemStack stack)TextWrittenBookItem. getName(ItemStack stack)static @Nullable MapStateFilledMapItem. getOrCreateMapState(ItemStack map, World world)static intWrittenBookItem. getPageCount(ItemStack stack)private static List<ItemStack>CrossbowItem. getProjectiles(ItemStack crossbow)private static floatCrossbowItem. getPullProgress(int useTicks, ItemStack stack)static intCrossbowItem. getPullTime(ItemStack stack)RarityItem. getRarity(ItemStack stack)private static floatCrossbowItem. getSpeed(ItemStack stack)Optional<TooltipData>BundleItem. getTooltipData(ItemStack stack)Optional<TooltipData>Item. getTooltipData(ItemStack stack)StringCompassItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.StringItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.StringPotionItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.StringShieldItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.StringTippedArrowItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.UseActionBowItem. getUseAction(ItemStack stack)UseActionCrossbowItem. getUseAction(ItemStack stack)UseActionHoneyBottleItem. getUseAction(ItemStack stack)UseActionItem. getUseAction(ItemStack stack)UseActionMilkBucketItem. getUseAction(ItemStack stack)UseActionPotionItem. getUseAction(ItemStack stack)UseActionShieldItem. getUseAction(ItemStack stack)UseActionSpyglassItem. getUseAction(ItemStack stack)UseActionTridentItem. getUseAction(ItemStack stack)default booleanDyeableItem. hasColor(ItemStack stack)booleanCompassItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanDebugStickItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanEnchantedBookItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanEnchantedGoldenAppleItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanEndCrystalItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanExperienceBottleItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanNetherStarItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanPotionItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanWrittenBookItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.static booleanCompassItem. hasLodestone(ItemStack stack)static booleanCrossbowItem. hasProjectile(ItemStack crossbow, Item projectile)voidCompassItem. inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)voidFilledMapItem. inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)voidItem. inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)static booleanCrossbowItem. isCharged(ItemStack stack)booleanBookItem. isEnchantable(ItemStack stack)booleanEnchantedBookItem. isEnchantable(ItemStack stack)booleanItem. isEnchantable(ItemStack stack)private booleanItemStack. isEqual(ItemStack stack)booleanBundleItem. isItemBarVisible(ItemStack stack)booleanItem. isItemBarVisible(ItemStack stack)booleanItemStack. isItemEqual(ItemStack stack)booleanItemStack. isItemEqualIgnoreDamage(ItemStack stack)static booleanElytraItem. isUsable(ItemStack stack)booleanCrossbowItem. isUsedOnRelease(ItemStack stack)booleanItem. isUsedOnRelease(ItemStack stack)private static booleanCrossbowItem. loadProjectile(LivingEntity shooter, ItemStack crossbow, ItemStack projectile, boolean simulated, boolean creative)private static booleanCrossbowItem. loadProjectiles(LivingEntity shooter, ItemStack projectile)booleanBundleItem. onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)booleanItem. onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)booleanItemStack. onClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)voidFilledMapItem. onCraft(ItemStack stack, World world, PlayerEntity player)Called when a player acquires the item by crafting, smelting, smithing, etc.voidItem. onCraft(ItemStack stack, World world, PlayerEntity player)Called when a player acquires the item by crafting, smelting, smithing, etc.voidBucketItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)voidEntityBucketItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)default voidFluidModificationItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)booleanBundleItem. onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)booleanItem. onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)voidBowItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)voidCrossbowItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)voidItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)voidSpyglassItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)voidTridentItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)private BlockStateBlockItem. placeFromTag(BlockPos pos, World world, ItemStack stack, BlockState state)booleanItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)booleanMiningToolItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)booleanSwordItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)booleanTridentItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)booleanItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)booleanMiningToolItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)booleanShearsItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)booleanSwordItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)booleanTridentItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)protected booleanBlockItem. postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state)protected booleanSignItem. postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state)private static voidCrossbowItem. postShoot(World world, LivingEntity entity, ItemStack stack)private static voidCrossbowItem. putProjectile(ItemStack crossbow, ItemStack projectile)default voidDyeableItem. removeColor(ItemStack stack)private static Optional<ItemStack>BundleItem. removeFirstStack(ItemStack stack)static booleanWrittenBookItem. resolve(ItemStack book, @Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player)private static voidFilledMapItem. scale(ItemStack map, World world, int amount)static voidCrossbowItem. setCharged(ItemStack stack, boolean charged)default voidDyeableItem. setColor(ItemStack stack, int color)private static voidFilledMapItem. setMapId(ItemStack stack, int id)private static voidCrossbowItem. shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated)static voidCrossbowItem. shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence)Optional<MobEntity>SpawnEggItem. spawnBaby(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack)private voidEntityBucketItem. spawnEntity(ServerWorld world, ItemStack stack, BlockPos pos)voidCrossbowItem. usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks)voidItem. usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks)private voidDebugStickItem. use(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack)ActionResultDyeItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultNameTagItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultSaddleItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)static booleanBoneMealItem. useOnFertilizable(ItemStack stack, World world, BlockPos pos)static booleanBoneMealItem. useOnGround(ItemStack stack, World world, BlockPos blockPos, @Nullable Direction facing)static booleanBlockItem. writeTagToBlockEntity(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack)类型变量类型为ItemStack的net.minecraft.item中的方法参数 修饰符和类型 方法 说明 voidBlockItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)voidEnchantedBookItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)voidItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)voidItemGroup. appendStacks(DefaultedList<ItemStack> stacks)voidPotionItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)voidTippedArrowItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)static ItemStackRangedWeaponItem. getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)static voidItemUsage. spawnItemContents(ItemEntity itemEntity, Stream<ItemStack> contents)参数类型为ItemStack的net.minecraft.item中的构造器 构造器 说明 AutomaticItemPlacementContext(World world, BlockPos pos, Direction facing, ItemStack stack, Direction side)ItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult)ItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)ItemUsageContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) -
net.minecraft.item.map中ItemStack的使用
参数类型为ItemStack的net.minecraft.item.map中的方法 修饰符和类型 方法 说明 static voidMapState. addDecorationsNbt(ItemStack stack, BlockPos pos, String id, MapIcon.Type type)voidMapState. update(PlayerEntity player, ItemStack stack) -
net.minecraft.loot中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.loot中的字段 修饰符和类型 字段 说明 private BiFunction<ItemStack,LootContext,ItemStack>LootTable. combinedFunctionprivate BiFunction<ItemStack,LootContext,ItemStack>LootTable. combinedFunctionprivate BiFunction<ItemStack,LootContext,ItemStack>LootPool. javaFunctionsprivate BiFunction<ItemStack,LootContext,ItemStack>LootPool. javaFunctions返回变量类型为ItemStack的类型的net.minecraft.loot中的方法 修饰符和类型 方法 说明 List<ItemStack>LootTable. generateLoot(LootContext context)static Consumer<ItemStack>LootTable. processStacks(Consumer<ItemStack> lootConsumer)类型变量类型为ItemStack的net.minecraft.loot中的方法参数 修饰符和类型 方法 说明 voidLootPool. addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context)voidLootChoice. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)voidLootTable. generateLoot(LootContext context, Consumer<ItemStack> lootConsumer)voidLootTable. generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer)static Consumer<ItemStack>LootTable. processStacks(Consumer<ItemStack> lootConsumer)private voidLootTable. shuffle(List<ItemStack> drops, int freeSlots, Random random)private voidLootPool. supplyOnce(Consumer<ItemStack> lootConsumer, LootContext context) -
net.minecraft.loot.context中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.loot.context中的字段 修饰符和类型 字段 说明 static LootContextParameter<ItemStack>LootContextParameters. TOOL类型变量类型为ItemStack的net.minecraft.loot.context中的方法参数 修饰符和类型 方法 说明 voidLootContext.Dropper. add(LootContext context, Consumer<ItemStack> consumer)voidLootContext. drop(Identifier id, Consumer<ItemStack> lootConsumer) -
net.minecraft.loot.entry中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.loot.entry中的字段 修饰符和类型 字段 说明 private BiFunction<ItemStack,LootContext,ItemStack>LeafEntry. compiledFunctionsprivate BiFunction<ItemStack,LootContext,ItemStack>LeafEntry. compiledFunctions类型变量类型为ItemStack的net.minecraft.loot.entry中的方法参数 修饰符和类型 方法 说明 voidDynamicEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)voidEmptyEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)voidItemEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)protected abstract voidLeafEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)voidLootTableEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)voidTagEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) -
net.minecraft.loot.function中ItemStack的使用
类型参数类型为ItemStack的net.minecraft.loot.function中的字段 修饰符和类型 字段 说明 private BiFunction<ItemStack,LootContext,ItemStack>LootFunctionManager.AndFunction. field_27905private BiFunction<ItemStack,LootContext,ItemStack>LootFunctionManager.AndFunction. field_27905static BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. NOOPstatic BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. NOOP返回ItemStack的net.minecraft.loot.function中的方法 修饰符和类型 方法 说明 private static ItemStackEnchantRandomlyLootFunction. addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)ItemStackConditionalLootFunction. apply(ItemStack itemStack, LootContext lootContext)ItemStackLootFunctionManager.AndFunction. apply(ItemStack itemStack, LootContext lootContext)ItemStackApplyBonusLootFunction. process(ItemStack stack, LootContext context)protected abstract ItemStackConditionalLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNameLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNbtLootFunction. process(ItemStack stack, LootContext context)protected ItemStackCopyStateFunction. process(ItemStack stack, LootContext context)ItemStackEnchantRandomlyLootFunction. process(ItemStack stack, LootContext context)ItemStackEnchantWithLevelsLootFunction. process(ItemStack stack, LootContext context)ItemStackExplorationMapLootFunction. process(ItemStack stack, LootContext context)ItemStackExplosionDecayLootFunction. process(ItemStack stack, LootContext context)ItemStackFillPlayerHeadLootFunction. process(ItemStack stack, LootContext context)ItemStackFurnaceSmeltLootFunction. process(ItemStack stack, LootContext context)ItemStackLimitCountLootFunction. process(ItemStack stack, LootContext context)ItemStackLootingEnchantLootFunction. process(ItemStack stack, LootContext context)ItemStackSetAttributesLootFunction. process(ItemStack stack, LootContext context)protected ItemStackSetBannerPatternFunction. process(ItemStack stack, LootContext context)ItemStackSetContentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetCountLootFunction. process(ItemStack stack, LootContext context)ItemStackSetDamageLootFunction. process(ItemStack stack, LootContext context)ItemStackSetEnchantmentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLootTableLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLoreLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNameLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNbtLootFunction. process(ItemStack stack, LootContext context)ItemStackSetStewEffectLootFunction. process(ItemStack stack, LootContext context)返回变量类型为ItemStack的类型的net.minecraft.loot.function中的方法 修饰符和类型 方法 说明 static Consumer<ItemStack>LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)static BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. join(BiFunction<ItemStack,LootContext,ItemStack>[] lootFunctions)static BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. join(BiFunction<ItemStack,LootContext,ItemStack>[] lootFunctions)参数类型为ItemStack的net.minecraft.loot.function中的方法 修饰符和类型 方法 说明 private static ItemStackEnchantRandomlyLootFunction. addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)ItemStackConditionalLootFunction. apply(ItemStack itemStack, LootContext lootContext)ItemStackLootFunctionManager.AndFunction. apply(ItemStack itemStack, LootContext lootContext)private @Nullable ListTagSetLoreLootFunction. getLoreForMerge(ItemStack stack, boolean otherLoreExists)ItemStackApplyBonusLootFunction. process(ItemStack stack, LootContext context)protected abstract ItemStackConditionalLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNameLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNbtLootFunction. process(ItemStack stack, LootContext context)protected ItemStackCopyStateFunction. process(ItemStack stack, LootContext context)ItemStackEnchantRandomlyLootFunction. process(ItemStack stack, LootContext context)ItemStackEnchantWithLevelsLootFunction. process(ItemStack stack, LootContext context)ItemStackExplorationMapLootFunction. process(ItemStack stack, LootContext context)ItemStackExplosionDecayLootFunction. process(ItemStack stack, LootContext context)ItemStackFillPlayerHeadLootFunction. process(ItemStack stack, LootContext context)ItemStackFurnaceSmeltLootFunction. process(ItemStack stack, LootContext context)ItemStackLimitCountLootFunction. process(ItemStack stack, LootContext context)ItemStackLootingEnchantLootFunction. process(ItemStack stack, LootContext context)ItemStackSetAttributesLootFunction. process(ItemStack stack, LootContext context)protected ItemStackSetBannerPatternFunction. process(ItemStack stack, LootContext context)ItemStackSetContentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetCountLootFunction. process(ItemStack stack, LootContext context)ItemStackSetDamageLootFunction. process(ItemStack stack, LootContext context)ItemStackSetEnchantmentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLootTableLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLoreLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNameLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNbtLootFunction. process(ItemStack stack, LootContext context)ItemStackSetStewEffectLootFunction. process(ItemStack stack, LootContext context)类型变量类型为ItemStack的net.minecraft.loot.function中的方法参数 修饰符和类型 方法 说明 static Consumer<ItemStack>LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)static Consumer<ItemStack>LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)static Consumer<ItemStack>LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) -
net.minecraft.network中ItemStack的使用
返回ItemStack的net.minecraft.network中的方法 修饰符和类型 方法 说明 ItemStackPacketByteBuf. readItemStack()Reads an item stack from this buf.参数类型为ItemStack的net.minecraft.network中的方法 修饰符和类型 方法 说明 PacketByteBufPacketByteBuf. writeItemStack(ItemStack stack)Writes an item stack to this buf. -
net.minecraft.network.packet.c2s.play中ItemStack的使用
声明为ItemStack的net.minecraft.network.packet.c2s.play中的字段 修饰符和类型 字段 说明 private ItemStackBookUpdateC2SPacket. bookprivate ItemStackClickSlotC2SPacket. stackprivate ItemStackCreativeInventoryActionC2SPacket. stack类型参数类型为ItemStack的net.minecraft.network.packet.c2s.play中的字段 修饰符和类型 字段 说明 private Int2ObjectMap<ItemStack>ClickSlotC2SPacket. modifiedStacks返回ItemStack的net.minecraft.network.packet.c2s.play中的方法 修饰符和类型 方法 说明 ItemStackBookUpdateC2SPacket. getBook()ItemStackCreativeInventoryActionC2SPacket. getItemStack()ItemStackClickSlotC2SPacket. getStack()返回变量类型为ItemStack的类型的net.minecraft.network.packet.c2s.play中的方法 修饰符和类型 方法 说明 Int2ObjectMap<ItemStack>ClickSlotC2SPacket. getModifiedStacks()参数类型为ItemStack的net.minecraft.network.packet.c2s.play中的构造器 构造器 说明 BookUpdateC2SPacket(ItemStack book, boolean signed, int slot)ClickSlotC2SPacket(int syncId, int slot, int button, SlotActionType actionType, ItemStack stack, Int2ObjectMap<ItemStack> modifiedStacks)CreativeInventoryActionC2SPacket(int slot, ItemStack stack)类型变量类型为ItemStack的net.minecraft.network.packet.c2s.play中的构造器参数 构造器 说明 ClickSlotC2SPacket(int syncId, int slot, int button, SlotActionType actionType, ItemStack stack, Int2ObjectMap<ItemStack> modifiedStacks) -
net.minecraft.network.packet.s2c.play中ItemStack的使用
声明为ItemStack的net.minecraft.network.packet.s2c.play中的字段 修饰符和类型 字段 说明 private ItemStackScreenHandlerSlotUpdateS2CPacket. stack类型参数类型为ItemStack的net.minecraft.network.packet.s2c.play中的字段 修饰符和类型 字段 说明 private List<ItemStack>InventoryS2CPacket. contentsprivate List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>EntityEquipmentUpdateS2CPacket. equipmentList返回ItemStack的net.minecraft.network.packet.s2c.play中的方法 修饰符和类型 方法 说明 ItemStackScreenHandlerSlotUpdateS2CPacket. getItemStack()返回变量类型为ItemStack的类型的net.minecraft.network.packet.s2c.play中的方法 修饰符和类型 方法 说明 List<ItemStack>InventoryS2CPacket. getContents()List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>EntityEquipmentUpdateS2CPacket. getEquipmentList()参数类型为ItemStack的net.minecraft.network.packet.s2c.play中的构造器 构造器 说明 ScreenHandlerSlotUpdateS2CPacket(int syncId, int slot, ItemStack stack)类型变量类型为ItemStack的net.minecraft.network.packet.s2c.play中的构造器参数 构造器 说明 EntityEquipmentUpdateS2CPacket(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> equipmentList)InventoryS2CPacket(int syncId, DefaultedList<ItemStack> contents) -
net.minecraft.particle中ItemStack的使用
声明为ItemStack的net.minecraft.particle中的字段 修饰符和类型 字段 说明 private ItemStackItemStackParticleEffect. stack返回ItemStack的net.minecraft.particle中的方法 修饰符和类型 方法 说明 ItemStackItemStackParticleEffect. getItemStack()参数类型为ItemStack的net.minecraft.particle中的构造器 构造器 说明 ItemStackParticleEffect(ParticleType<ItemStackParticleEffect> type, ItemStack stack) -
net.minecraft.potion中ItemStack的使用
返回ItemStack的net.minecraft.potion中的方法 修饰符和类型 方法 说明 static ItemStackPotionUtil. setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)static ItemStackPotionUtil. setPotion(ItemStack stack, Potion potion)参数类型为ItemStack的net.minecraft.potion中的方法 修饰符和类型 方法 说明 static voidPotionUtil. buildTooltip(ItemStack stack, List<Text> list, float float2)static intPotionUtil. getColor(ItemStack stack)static List<StatusEffectInstance>PotionUtil. getCustomPotionEffects(ItemStack stack)static PotionPotionUtil. getPotion(ItemStack stack)static List<StatusEffectInstance>PotionUtil. getPotionEffects(ItemStack stack)static ItemStackPotionUtil. setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)static ItemStackPotionUtil. setPotion(ItemStack stack, Potion potion) -
net.minecraft.predicate中ItemStack的使用
参数类型为ItemStack的net.minecraft.predicate中的方法 修饰符和类型 方法 说明 booleanNbtPredicate. test(ItemStack stack) -
net.minecraft.predicate.entity中ItemStack的使用
声明为ItemStack的net.minecraft.predicate.entity中的字段 修饰符和类型 字段 说明 private ItemStackEntityPredicates.Equipable. stack参数类型为ItemStack的net.minecraft.predicate.entity中的构造器 构造器 说明 Equipable(ItemStack stack) -
net.minecraft.predicate.item中ItemStack的使用
参数类型为ItemStack的net.minecraft.predicate.item中的方法 修饰符和类型 方法 说明 booleanItemPredicate. test(ItemStack stack) -
net.minecraft.recipe中ItemStack的使用
声明为ItemStack的net.minecraft.recipe中的字段 修饰符和类型 字段 说明 private ItemStack[]Ingredient. matchingStacksprotected ItemStackAbstractCookingRecipe. outputprotected ItemStackCuttingRecipe. outputprivate ItemStackShapedRecipe. outputprivate ItemStackShapelessRecipe. outputprivate ItemStackSmithingRecipe. resultprivate ItemStackIngredient.StackEntry. stack类型参数类型为ItemStack的net.minecraft.recipe中的字段 修饰符和类型 字段 说明 private static Predicate<ItemStack>BrewingRecipeRegistry. POTION_TYPE_PREDICATE返回ItemStack的net.minecraft.recipe中的方法 修饰符和类型 方法 说明 ItemStackAbstractCookingRecipe. craft(Inventory inv)ItemStackArmorDyeRecipe. craft(CraftingInventory craftingInventory)ItemStackBannerDuplicateRecipe. craft(CraftingInventory craftingInventory)ItemStackBookCloningRecipe. craft(CraftingInventory craftingInventory)static ItemStackBrewingRecipeRegistry. craft(ItemStack input, ItemStack ingredient)ItemStackCuttingRecipe. craft(Inventory inv)ItemStackFireworkRocketRecipe. craft(CraftingInventory craftingInventory)ItemStackFireworkStarFadeRecipe. craft(CraftingInventory craftingInventory)ItemStackFireworkStarRecipe. craft(CraftingInventory craftingInventory)ItemStackMapCloningRecipe. craft(CraftingInventory craftingInventory)ItemStackMapExtendingRecipe. craft(CraftingInventory craftingInventory)ItemStackRecipe. craft(C inv)ItemStackRepairItemRecipe. craft(CraftingInventory craftingInventory)ItemStackShapedRecipe. craft(CraftingInventory craftingInventory)ItemStackShapelessRecipe. craft(CraftingInventory craftingInventory)ItemStackShieldDecorationRecipe. craft(CraftingInventory craftingInventory)ItemStackShulkerBoxColoringRecipe. craft(CraftingInventory craftingInventory)ItemStackSmithingRecipe. craft(Inventory inv)ItemStackSuspiciousStewRecipe. craft(CraftingInventory craftingInventory)ItemStackTippedArrowRecipe. craft(CraftingInventory craftingInventory)ItemStack[]Ingredient. getMatchingStacksClient()ItemStackAbstractCookingRecipe. getOutput()ItemStackCuttingRecipe. getOutput()ItemStackFireworkRocketRecipe. getOutput()ItemStackFireworkStarRecipe. getOutput()ItemStackRecipe. getOutput()ItemStackShapedRecipe. getOutput()ItemStackShapelessRecipe. getOutput()ItemStackSmithingRecipe. getOutput()ItemStackSpecialCraftingRecipe. getOutput()ItemStackBlastingRecipe. getRecipeKindIcon()ItemStackCampfireCookingRecipe. getRecipeKindIcon()default ItemStackRecipe. getRecipeKindIcon()ItemStackSmeltingRecipe. getRecipeKindIcon()ItemStackSmithingRecipe. getRecipeKindIcon()ItemStackSmokingRecipe. getRecipeKindIcon()ItemStackStonecuttingRecipe. getRecipeKindIcon()static ItemStackRecipeFinder. getStackFromId(int id)static ItemStackShapedRecipe. outputFromJson(JsonObject json)返回变量类型为ItemStack的类型的net.minecraft.recipe中的方法 修饰符和类型 方法 说明 DefaultedList<ItemStack>BannerDuplicateRecipe. getRemainingStacks(CraftingInventory craftingInventory)DefaultedList<ItemStack>BookCloningRecipe. getRemainingStacks(CraftingInventory craftingInventory)default DefaultedList<ItemStack>Recipe. getRemainingStacks(C inventory)<C extends Inventory,T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager. getRemainingStacks(RecipeType<T> recipeType, C inventory, World world)Collection<ItemStack>Ingredient.Entry. getStacks()Collection<ItemStack>Ingredient.StackEntry. getStacks()Collection<ItemStack>Ingredient.TagEntry. getStacks()参数类型为ItemStack的net.minecraft.recipe中的方法 修饰符和类型 方法 说明 voidRecipeFinder. addItem(ItemStack stack)voidRecipeFinder. addItem(ItemStack stack, int count)voidRecipeFinder. addNormalItem(ItemStack stack)static ItemStackBrewingRecipeRegistry. craft(ItemStack input, ItemStack ingredient)TCookingRecipeSerializer.RecipeFactory. create(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)TCuttingRecipe.Serializer.RecipeFactory. create(Identifier id, String group, Ingredient input, ItemStack output)protected voidInputSlotFiller. fillInputSlot(Slot slot, ItemStack stack)static intRecipeFinder. getItemId(ItemStack stack)protected static booleanBrewingRecipeRegistry. hasItemRecipe(ItemStack input, ItemStack ingredient)protected static booleanBrewingRecipeRegistry. hasPotionRecipe(ItemStack input, ItemStack ingredient)static booleanBrewingRecipeRegistry. hasRecipe(ItemStack input, ItemStack ingredient)protected static booleanBrewingRecipeRegistry. isItemRecipeIngredient(ItemStack stack)protected static booleanBrewingRecipeRegistry. isPotionRecipeIngredient(ItemStack stack)static booleanBrewingRecipeRegistry. isValidIngredient(ItemStack stack)static IngredientIngredient. ofStacks(ItemStack[] stacks)booleanIngredient. test(@Nullable ItemStack itemStack)booleanSmithingRecipe. testAddition(ItemStack stack)类型变量类型为ItemStack的net.minecraft.recipe中的方法参数 修饰符和类型 方法 说明 static IngredientIngredient. ofStacks(Stream<ItemStack> stacks) -
net.minecraft.screen中ItemStack的使用
声明为ItemStack的net.minecraft.screen中的字段 修饰符和类型 字段 说明 private ItemStackScreenHandler. cursorStackprivate ItemStackStonecutterScreenHandler. inputStackprivate ItemStackScreenHandler. previousCursorStack类型参数类型为ItemStack的net.minecraft.screen中的字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>ScreenHandler. previousTrackedStacksprivate DefaultedList<ItemStack>ScreenHandler. trackedStacksA list of item stacks that is used for tracking changes inScreenHandler.sendContentUpdates().返回ItemStack的net.minecraft.screen中的方法 修饰符和类型 方法 说明 ItemStackLecternScreenHandler. getBookItem()ItemStackScreenHandler. getCursorStack()private ItemStackGrindstoneScreenHandler. grind(ItemStack item, int damage, int amount)private ItemStackGrindstoneScreenHandler. transferEnchantments(ItemStack target, ItemStack source)ItemStackAbstractFurnaceScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackBeaconScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackBrewingStandScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackCartographyTableScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackCraftingScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackEnchantmentScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackForgingScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGeneric3x3ContainerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGenericContainerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGrindstoneScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackHopperScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackHorseScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackLoomScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackMerchantScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackPlayerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackShulkerBoxScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackStonecutterScreenHandler. transferSlot(PlayerEntity player, int index)返回变量类型为ItemStack的类型的net.minecraft.screen中的方法 修饰符和类型 方法 说明 DefaultedList<ItemStack>ScreenHandler. getStacks()参数类型为ItemStack的net.minecraft.screen中的方法 修饰符和类型 方法 说明 private voidMerchantScreenHandler. autofill(int slot, ItemStack stack)static voidScreenHandler. calculateStackSize(Set<Slot> slots, int mode, ItemStack stack, int stackSize)booleanBeaconScreenHandler.PaymentSlot. canInsert(ItemStack stack)booleanBrewingStandScreenHandler.FuelSlot. canInsert(ItemStack stack)booleanBrewingStandScreenHandler.IngredientSlot. canInsert(ItemStack stack)booleanBrewingStandScreenHandler.PotionSlot. canInsert(ItemStack stack)booleanCartographyTableScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)booleanCraftingScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)booleanMerchantScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)booleanPlayerScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)booleanScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)booleanSmithingScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)booleanStonecutterScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)static booleanScreenHandler. canInsertItemIntoSlot(@Nullable Slot slot, ItemStack stack, boolean allowOverflow)private voidScreenHandler. checkSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)private List<EnchantmentLevelEntry>EnchantmentScreenHandler. generateEnchantments(ItemStack stack, int slot, int level)private ItemStackGrindstoneScreenHandler. grind(ItemStack item, int damage, int amount)protected booleanScreenHandler. insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast)protected booleanAbstractFurnaceScreenHandler. isFuel(ItemStack itemStack)protected booleanAbstractFurnaceScreenHandler. isSmeltable(ItemStack itemStack)static booleanBrewingStandScreenHandler.FuelSlot. matches(ItemStack stack)static booleanBrewingStandScreenHandler.PotionSlot. matches(ItemStack stack)protected booleanForgingScreenHandler. method_30025(ItemStack itemStack)protected booleanSmithingScreenHandler. method_30025(ItemStack itemStack)voidScreenHandlerListener. onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)voidBrewingStandScreenHandler.PotionSlot. onTakeItem(PlayerEntity player, ItemStack stack)protected voidAnvilScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)protected abstract voidForgingScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)protected voidSmithingScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)voidScreenHandler. setCursorStack(ItemStack stack)voidScreenHandler. setPreviousCursorStack(ItemStack stack)voidScreenHandler. setPreviousTrackedSlot(int slot, ItemStack stack)voidScreenHandler. setStackInSlot(int slot, ItemStack stack)private ItemStackGrindstoneScreenHandler. transferEnchantments(ItemStack target, ItemStack source)voidScreenHandlerSyncHandler. updateCursorStack(ScreenHandler handler, ItemStack stack)private voidStonecutterScreenHandler. updateInput(Inventory input, ItemStack stack)private voidCartographyTableScreenHandler. updateResult(ItemStack itemStack, ItemStack itemStack2, ItemStack oldResult)voidScreenHandlerSyncHandler. updateSlot(ScreenHandler handler, int slot, ItemStack stack)voidScreenHandlerSyncHandler. updateState(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties)private voidScreenHandler. updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)类型变量类型为ItemStack的net.minecraft.screen中的方法参数 修饰符和类型 方法 说明 private voidScreenHandler. checkSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)voidScreenHandler. updateSlotStacks(List<ItemStack> stacks)voidScreenHandlerSyncHandler. updateState(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties)private voidScreenHandler. updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier) -
net.minecraft.screen.slot中ItemStack的使用
返回ItemStack的net.minecraft.screen.slot中的方法 修饰符和类型 方法 说明 ItemStackSlot. getStack()ItemStackSlot. insertStack(ItemStack stack)ItemStackSlot. insertStack(ItemStack stack, int count)ItemStackCraftingResultSlot. takeStack(int amount)ItemStackFurnaceOutputSlot. takeStack(int amount)ItemStackSlot. takeStack(int amount)ItemStackTradeOutputSlot. takeStack(int amount)ItemStackSlot. takeStackRange(int min, int max, PlayerEntity player)返回变量类型为ItemStack的类型的net.minecraft.screen.slot中的方法 修饰符和类型 方法 说明 Optional<ItemStack>Slot. tryTakeStackRange(int min, int max, PlayerEntity player)参数类型为ItemStack的net.minecraft.screen.slot中的方法 修饰符和类型 方法 说明 booleanCraftingResultSlot. canInsert(ItemStack stack)booleanFurnaceFuelSlot. canInsert(ItemStack stack)booleanFurnaceOutputSlot. canInsert(ItemStack stack)booleanShulkerBoxSlot. canInsert(ItemStack stack)booleanSlot. canInsert(ItemStack stack)booleanTradeOutputSlot. canInsert(ItemStack stack)intFurnaceFuelSlot. getMaxItemCount(ItemStack stack)intSlot. getMaxItemCount(ItemStack stack)ItemStackSlot. insertStack(ItemStack stack)ItemStackSlot. insertStack(ItemStack stack, int count)static booleanFurnaceFuelSlot. isBucket(ItemStack stack)protected voidCraftingResultSlot. onCrafted(ItemStack stack)protected voidCraftingResultSlot. onCrafted(ItemStack stack, int amount)protected voidFurnaceOutputSlot. onCrafted(ItemStack stack)protected voidFurnaceOutputSlot. onCrafted(ItemStack stack, int amount)protected voidSlot. onCrafted(ItemStack stack)protected voidSlot. onCrafted(ItemStack stack, int amount)protected voidTradeOutputSlot. onCrafted(ItemStack stack)protected voidTradeOutputSlot. onCrafted(ItemStack stack, int amount)voidSlot. onStackChanged(ItemStack originalItem, ItemStack newItem)voidCraftingResultSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidFurnaceOutputSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidTradeOutputSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidSlot. setStack(ItemStack stack) -
net.minecraft.server.command中ItemStack的使用
返回ItemStack的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static ItemStackLootCommand. getHeldItem(ServerCommandSource source, EquipmentSlot slot)private static ItemStackItemCommand. getStackInSlot(Entity entity, int slotId)private static ItemStackItemCommand. getStackInSlotFromInventoryAt(ServerCommandSource source, BlockPos pos, int slotId)private static ItemStackItemCommand. getStackWithModifier(ServerCommandSource source, LootFunction modifier, ItemStack stack)参数类型为ItemStack的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static intItemCommand. executeBlockReplace(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack)private static intItemCommand. executeEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack)private static intLootCommand. executeFish(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, BlockPos pos, ItemStack stack, LootCommand.Target constructor)private static intLootCommand. executeMine(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStack stack, LootCommand.Target constructor)private static ItemStackItemCommand. getStackWithModifier(ServerCommandSource source, LootFunction modifier, ItemStack stack)private static booleanLootCommand. insert(Inventory inventory, ItemStack stack)private static booleanLootCommand. itemsMatch(ItemStack first, ItemStack second)类型变量类型为ItemStack的net.minecraft.server.command中的方法参数 修饰符和类型 方法 说明 voidLootCommand.FeedbackMessage. accept(List<ItemStack> items)intLootCommand.Target. accept(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, List<ItemStack> items, LootCommand.FeedbackMessage messageSender)private static intClearCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount)private static intLootCommand. executeBlock(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)private static intLootCommand. executeGive(Collection<ServerPlayerEntity> players, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)private static intLootCommand. executeInsert(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)private static intLootCommand. executeReplace(Collection<? extends Entity> targets, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)private static intLootCommand. executeSpawn(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)private static voidLootCommand. replace(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks)private static voidLootCommand. sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks)private static voidLootCommand. sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks, Identifier lootTable) -
net.minecraft.server.network中ItemStack的使用
参数类型为ItemStack的net.minecraft.server.network中的方法 修饰符和类型 方法 说明 voidServerPlayerEntity. applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels)private static booleanServerPlayNetworkHandler. canPlace(ServerPlayerEntity player, ItemStack stack)Checks if a player can place a block or fluid from a bucket.ItemEntityServerPlayerEntity. dropItem(ItemStack stack, boolean throwRandomly, boolean retainOwnership)ActionResultDemoServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)ActionResultServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)ActionResultDemoServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)ActionResultServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)private voidServerPlayNetworkHandler. setTextToBook(List<TextStream.Message> messages, UnaryOperator<String> postProcessor, ItemStack book)voidServerPlayerEntity. useBook(ItemStack book, Hand hand)Called when the player uses (defaults to right click) a writable or written book item. -
net.minecraft.test中ItemStack的使用
返回ItemStack的net.minecraft.test中的方法 修饰符和类型 方法 说明 private static ItemStackStructureTestListener. createBookWithText(String text, boolean required, String output) -
net.minecraft.text中ItemStack的使用
声明为ItemStack的net.minecraft.text中的字段 修饰符和类型 字段 说明 private @Nullable ItemStackHoverEvent.ItemStackContent. stack返回ItemStack的net.minecraft.text中的方法 修饰符和类型 方法 说明 ItemStackHoverEvent.ItemStackContent. asStack()参数类型为ItemStack的net.minecraft.text中的构造器 构造器 说明 ItemStackContent(ItemStack stack) -
net.minecraft.util中ItemStack的使用
参数类型为ItemStack的net.minecraft.util中的方法 修饰符和类型 方法 说明 static voidItemScatterer. spawn(World world, double x, double y, double z, ItemStack stack)类型变量类型为ItemStack的net.minecraft.util中的方法参数 修饰符和类型 方法 说明 static voidItemScatterer. spawn(World world, BlockPos pos, DefaultedList<ItemStack> stacks) -
net.minecraft.village中ItemStack的使用
声明为ItemStack的net.minecraft.village中的字段 修饰符和类型 字段 说明 private ItemStackTradeOffer. firstBuyItemprivate ItemStackTradeOffers.ProcessItemFactory. secondBuyprivate ItemStackTradeOffer. secondBuyItemprivate ItemStackTradeOffers.ProcessItemFactory. sellprivate ItemStackTradeOffers.SellItemFactory. sellprivate ItemStackTradeOffers.SellPotionHoldingItemFactory. sellprivate ItemStackTradeOffer. sellItemprivate ItemStackTradeOffers.SellEnchantedToolFactory. tool类型参数类型为ItemStack的net.minecraft.village中的字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>MerchantInventory. inventory返回ItemStack的net.minecraft.village中的方法 修饰符和类型 方法 说明 ItemStackTradeOffer. copySellItem()Returns a copy of the sell item of this trade offer.ItemStackTradeOffer. getAdjustedFirstBuyItem()Returns a copy of the first buy item of this trade offer, with its price adjusted depending on the demand bonus, the special price and the price multiplier.ItemStackTradeOffer. getOriginalFirstBuyItem()Returns the first buy item of this trade offer.ItemStackTradeOffer. getSecondBuyItem()Returns the second buy item of this trade offer.ItemStackTradeOffer. getSellItem()Returns the sell item of this trade offer.ItemStackMerchantInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackMerchantInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackMerchantInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.参数类型为ItemStack的net.minecraft.village中的方法 修饰符和类型 方法 说明 private booleanTradeOffer. acceptsBuy(ItemStack given, ItemStack sample)booleanTradeOffer. depleteBuyItems(ItemStack firstBuyStack, ItemStack secondBuyStack)@Nullable TradeOfferTradeOfferList. getValidOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, int index)booleanTradeOffer. matchesBuyItems(ItemStack first, ItemStack second)voidMerchant. onSellingItem(ItemStack stack)voidSimpleMerchant. onSellingItem(ItemStack stack)voidMerchantInventory. setStack(int slot, ItemStack stack)参数类型为ItemStack的net.minecraft.village中的构造器 构造器 说明 SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience)SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience, float multiplier)TradeOffer(ItemStack buyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier)TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier)TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier)TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier, int demandBonus) -
net.minecraft.village.raid中ItemStack的使用
返回ItemStack的net.minecraft.village.raid中的方法 修饰符和类型 方法 说明 static ItemStackRaid. getOminousBanner() -
net.minecraft.world.explosion中ItemStack的使用
参数类型为ItemStack的net.minecraft.world.explosion中的方法 修饰符和类型 方法 说明 private static voidExplosion. tryMergeStack(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> stacks, ItemStack stack, BlockPos pos)类型变量类型为ItemStack的net.minecraft.world.explosion中的方法参数 修饰符和类型 方法 说明 private static voidExplosion. tryMergeStack(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> stacks, ItemStack stack, BlockPos pos)
-