接口的使用
net.minecraft.inventory.Inventory
-
-
net.minecraft.block中Inventory的使用
实现Inventory的net.minecraft.block中的类 修饰符和类型 类 说明 (专用程序包) static classComposterBlock.ComposterInventory(专用程序包) static classComposterBlock.DummyInventory(专用程序包) static classComposterBlock.FullComposterInventory类型参数类型为Inventory的net.minecraft.block中的字段 修饰符和类型 字段 说明 private static DoubleBlockProperties.PropertyRetriever<ChestBlockEntity,Optional<Inventory>>ChestBlock. INVENTORY_RETRIEVER返回Inventory的net.minecraft.block中的方法 修饰符和类型 方法 说明 static @Nullable InventoryChestBlock. getInventory(ChestBlock block, BlockState state, World world, BlockPos pos, boolean ignoreBlocked) -
net.minecraft.block.entity中Inventory的使用
net.minecraft.block.entity中Inventory的子接口 修饰符和类型 接口 说明 interfaceHopper实现Inventory的net.minecraft.block.entity中的类 修饰符和类型 类 说明 classAbstractFurnaceBlockEntityclassBarrelBlockEntityclassBlastFurnaceBlockEntityclassBrewingStandBlockEntityclassChestBlockEntityclassDispenserBlockEntityclassDropperBlockEntityclassFurnaceBlockEntityclassHopperBlockEntityclassLockableContainerBlockEntityclassLootableContainerBlockEntityclassShulkerBoxBlockEntityclassSmokerBlockEntityclassTrappedChestBlockEntity声明为Inventory的net.minecraft.block.entity中的字段 修饰符和类型 字段 说明 private InventoryLecternBlockEntity. inventory返回Inventory的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 private static @Nullable InventoryHopperBlockEntity. getInputInventory(World world, Hopper hopper)private static @Nullable InventoryHopperBlockEntity. getInventoryAt(World world, double x, double y, double z)static @Nullable InventoryHopperBlockEntity. getInventoryAt(World world, BlockPos pos)private static @Nullable InventoryHopperBlockEntity. getOutputInventory(World world, BlockPos pos, BlockState state)参数类型为Inventory的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 private static booleanHopperBlockEntity. canExtract(Inventory inv, ItemStack stack, int slot, Direction facing)private static booleanHopperBlockEntity. canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable Direction side)private static booleanHopperBlockEntity. extract(Hopper hopper, Inventory inventory, int slot, Direction side)static booleanHopperBlockEntity. extract(Inventory inventory, ItemEntity itemEntity)private static IntStreamHopperBlockEntity. getAvailableSlots(Inventory inventory, Direction side)private static intAbstractFurnaceBlockEntity. getCookTime(World world, RecipeType<? extends AbstractCookingRecipe> recipeType, Inventory inventory)private static booleanHopperBlockEntity. insert(World world, BlockPos pos, BlockState state, Inventory inventory)private static booleanHopperBlockEntity. isInventoryEmpty(Inventory inv, Direction facing)private static booleanHopperBlockEntity. isInventoryFull(Inventory inventory, Direction direction)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) -
net.minecraft.client.gui.screen.ingame中Inventory的使用
参数类型为Inventory的net.minecraft.client.gui.screen.ingame中的构造器 构造器 说明 LockableSlot(Inventory inventory, int index, int x, int y) -
net.minecraft.entity中Inventory的使用
返回Inventory的net.minecraft.entity中的方法 修饰符和类型 方法 说明 InventoryInventoryOwner. getInventory() -
net.minecraft.entity.mob中Inventory的使用
返回Inventory的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 InventoryPiglinEntity. getInventory()InventoryPillagerEntity. getInventory() -
net.minecraft.entity.passive中Inventory的使用
参数类型为Inventory的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 booleanHorseBaseEntity. method_33338(Inventory inventory)voidHorseBaseEntity. onInventoryChanged(Inventory sender)voidHorseEntity. onInventoryChanged(Inventory sender)voidLlamaEntity. onInventoryChanged(Inventory sender) -
net.minecraft.entity.player中Inventory的使用
实现Inventory的net.minecraft.entity.player中的类 修饰符和类型 类 说明 classPlayerInventory参数类型为Inventory的net.minecraft.entity.player中的方法 修饰符和类型 方法 说明 voidPlayerEntity. openHorseInventory(HorseBaseEntity horse, Inventory inventory)intPlayerInventory. remove(Predicate<ItemStack> shouldRemove, int maxCount, Inventory craftingInventory) -
net.minecraft.entity.vehicle中Inventory的使用
实现Inventory的net.minecraft.entity.vehicle中的类 修饰符和类型 类 说明 classChestMinecartEntityclassHopperMinecartEntityclassStorageMinecartEntity -
net.minecraft.inventory中Inventory的使用
net.minecraft.inventory中Inventory的子接口 修饰符和类型 接口 说明 interfaceSidedInventoryA special inventory interface for inventories that expose different slots for different sides, such as hoppers.实现Inventory的net.minecraft.inventory中的类 修饰符和类型 类 说明 classCraftingInventoryclassCraftingResultInventoryclassDoubleInventoryclassEnderChestInventoryclassSimpleInventory声明为Inventory的net.minecraft.inventory中的字段 修饰符和类型 字段 说明 private InventoryDoubleInventory. firstprivate InventoryDoubleInventory. second参数类型为Inventory的net.minecraft.inventory中的方法 修饰符和类型 方法 说明 booleanDoubleInventory. isPart(Inventory inventory)static CommandItemSlotCommandItemSlot. of(Inventory inventory, int index)Creates a slot backed by an index within an 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.voidInventoryChangedListener. onInventoryChanged(Inventory sender)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.参数类型为Inventory的net.minecraft.inventory中的构造器 构造器 说明 DoubleInventory(Inventory first, Inventory second) -
net.minecraft.loot中Inventory的使用
参数类型为Inventory的net.minecraft.loot中的方法 修饰符和类型 方法 说明 private List<Integer>LootTable. getFreeSlots(Inventory inventory, Random random)voidLootTable. supplyInventory(Inventory inventory, LootContext context) -
net.minecraft.recipe中Inventory的使用
类型参数类型为Inventory的net.minecraft.recipe中的类 修饰符和类型 类 说明 classInputSlotFiller<C extends Inventory>interfaceRecipe<C extends Inventory>类型参数类型为Inventory的net.minecraft.recipe中的方法 修饰符和类型 方法 说明 default <C extends Inventory>
Optional<T>RecipeType. get(Recipe<C> recipe, World world, C inventory)<C extends Inventory,T extends Recipe<C>>
List<T>RecipeManager. getAllMatches(RecipeType<T> type, C inventory, World world)private <C extends Inventory,T extends Recipe<C>>
Map<Identifier,Recipe<C>>RecipeManager. getAllOfType(RecipeType<T> type)<C extends Inventory,T extends Recipe<C>>
Optional<T>RecipeManager. getFirstMatch(RecipeType<T> type, C inventory, World world)<C extends Inventory,T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager. getRemainingStacks(RecipeType<T> recipeType, C inventory, World world)<C extends Inventory,T extends Recipe<C>>
List<T>RecipeManager. listAllOfType(RecipeType<T> recipeType)Creates a list of all recipes of the given type.参数类型为Inventory的net.minecraft.recipe中的方法 修饰符和类型 方法 说明 ItemStackAbstractCookingRecipe. craft(Inventory inv)ItemStackCuttingRecipe. craft(Inventory inv)ItemStackSmithingRecipe. craft(Inventory inv)booleanAbstractCookingRecipe. matches(Inventory inv, World world)booleanSmithingRecipe. matches(Inventory inv, World world)booleanStonecuttingRecipe. matches(Inventory inv, World world) -
net.minecraft.screen中Inventory的使用
类型参数类型为Inventory的net.minecraft.screen中的类 修饰符和类型 类 说明 classAbstractRecipeScreenHandler<C extends Inventory>声明为Inventory的net.minecraft.screen中的字段 修饰符和类型 字段 说明 protected InventoryForgingScreenHandler. inputprivate InventoryGrindstoneScreenHandler. inputprivate InventoryLoomScreenHandler. inputInventoryStonecutterScreenHandler. inputprivate InventoryAbstractFurnaceScreenHandler. inventoryprivate InventoryBrewingStandScreenHandler. inventoryInventoryCartographyTableScreenHandler. inventoryprivate InventoryEnchantmentScreenHandler. inventoryprivate InventoryGeneric3x3ContainerScreenHandler. inventoryprivate InventoryGenericContainerScreenHandler. inventoryprivate InventoryHopperScreenHandler. inventoryprivate InventoryHorseScreenHandler. inventoryprivate InventoryLecternScreenHandler. inventoryprivate InventoryShulkerBoxScreenHandler. inventoryprivate InventoryLoomScreenHandler. outputprivate InventoryBeaconScreenHandler. paymentprivate InventoryGrindstoneScreenHandler. result返回Inventory的net.minecraft.screen中的方法 修饰符和类型 方法 说明 InventoryGenericContainerScreenHandler. getInventory()参数类型为Inventory的net.minecraft.screen中的方法 修饰符和类型 方法 说明 static intScreenHandler. calculateComparatorOutput(@Nullable Inventory inventory)protected static voidScreenHandler. checkSize(Inventory inventory, int expectedSize)Checks that the size of the provided inventory is at least as large as theexpectedSize.static GenericContainerScreenHandlerGenericContainerScreenHandler. createGeneric9x3(int syncId, PlayerInventory playerInventory, Inventory inventory)static GenericContainerScreenHandlerGenericContainerScreenHandler. createGeneric9x6(int syncId, PlayerInventory playerInventory, Inventory inventory)protected voidScreenHandler. dropInventory(PlayerEntity player, Inventory inventory)voidCartographyTableScreenHandler. onContentChanged(Inventory inventory)voidCraftingScreenHandler. onContentChanged(Inventory inventory)voidEnchantmentScreenHandler. onContentChanged(Inventory inventory)voidForgingScreenHandler. onContentChanged(Inventory inventory)voidGrindstoneScreenHandler. onContentChanged(Inventory inventory)voidLoomScreenHandler. onContentChanged(Inventory inventory)voidMerchantScreenHandler. onContentChanged(Inventory inventory)voidPlayerScreenHandler. onContentChanged(Inventory inventory)voidScreenHandler. onContentChanged(Inventory inventory)voidStonecutterScreenHandler. onContentChanged(Inventory inventory)private voidStonecutterScreenHandler. updateInput(Inventory input, ItemStack stack)类型变量类型为Inventory的net.minecraft.screen中的方法参数 修饰符和类型 方法 说明 booleanAbstractFurnaceScreenHandler. matches(Recipe<? super Inventory> recipe)参数类型为Inventory的net.minecraft.screen中的构造器 构造器 说明 AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)BeaconScreenHandler(int syncId, Inventory inventory)BeaconScreenHandler(int syncId, Inventory inventory, PropertyDelegate propertyDelegate, ScreenHandlerContext context)BlastFurnaceScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)BrewingStandScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)FuelSlot(Inventory inventory, int index, int x, int y)FurnaceScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)Generic3x3ContainerScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory)GenericContainerScreenHandler(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, Inventory inventory, int rows)HopperScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory)HorseScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, HorseBaseEntity entity)IngredientSlot(Inventory inventory, int index, int x, int y)LecternScreenHandler(int syncId, Inventory inventory, PropertyDelegate propertyDelegate)PaymentSlot(Inventory inventory, int index, int x, int y)PotionSlot(Inventory inventory, int index, int x, int y)ShulkerBoxScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory)SmokerScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) -
net.minecraft.screen.slot中Inventory的使用
声明为Inventory的net.minecraft.screen.slot中的字段 修饰符和类型 字段 说明 InventorySlot. inventory参数类型为Inventory的net.minecraft.screen.slot中的构造器 构造器 说明 CraftingResultSlot(PlayerEntity player, CraftingInventory input, Inventory inventory, int index, int x, int y)FurnaceFuelSlot(AbstractFurnaceScreenHandler handler, Inventory inventory, int index, int x, int y)FurnaceOutputSlot(PlayerEntity player, Inventory inventory, int index, int x, int y)ShulkerBoxSlot(Inventory inventory, int index, int x, int y)Slot(Inventory inventory, int index, int x, int y) -
net.minecraft.server.command中Inventory的使用
返回Inventory的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static InventoryLootCommand. getBlockInventory(ServerCommandSource source, BlockPos pos)private static InventoryItemCommand. getInventoryAtPos(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception)参数类型为Inventory的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static booleanLootCommand. insert(Inventory inventory, ItemStack stack) -
net.minecraft.server.network中Inventory的使用
参数类型为Inventory的net.minecraft.server.network中的方法 修饰符和类型 方法 说明 voidServerPlayerEntity. openHorseInventory(HorseBaseEntity horse, Inventory inventory) -
net.minecraft.util中Inventory的使用
参数类型为Inventory的net.minecraft.util中的方法 修饰符和类型 方法 说明 private static voidItemScatterer. spawn(World world, double x, double y, double z, Inventory inventory)static voidItemScatterer. spawn(World world, Entity entity, Inventory inventory)static voidItemScatterer. spawn(World world, BlockPos pos, Inventory inventory) -
net.minecraft.village中Inventory的使用
实现Inventory的net.minecraft.village中的类 修饰符和类型 类 说明 classMerchantInventory
-