Uses of Class
net.minecraft.world.inventory.Slot
Packages that use Slot
Package
Description
-
Uses of Slot in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type SlotModifier and TypeMethodDescriptionbooleanbooleanvoidBundleMouseActions.onSlotClicked(Slot slot, ContainerInput containerInput) voidItemSlotMouseAction.onSlotClicked(Slot slot, ContainerInput containerInput) voidBundleMouseActions.onStopHovering(Slot hoveredSlot) voidItemSlotMouseAction.onStopHovering(Slot hoveredSlot) -
Uses of Slot in net.minecraft.client.gui.screens.inventory
Subclasses of Slot in net.minecraft.client.gui.screens.inventoryModifier and TypeClassDescriptionprivate static classprivate static classFields in net.minecraft.client.gui.screens.inventory declared as SlotModifier and TypeFieldDescriptionprivate @Nullable SlotAbstractContainerScreen.clickedSlotUsed when touchscreen is enabledprivate @Nullable SlotCreativeModeInventoryScreen.destroyItemSlotprotected @Nullable SlotAbstractContainerScreen.hoveredSlotHolds the slot currently hoveredprivate @Nullable SlotAbstractContainerScreen.lastClickSlotprivate @Nullable SlotAbstractContainerScreen.quickdropSlotprivate final SlotCreativeModeInventoryScreen.SlotWrapper.targetFields in net.minecraft.client.gui.screens.inventory with type parameters of type SlotModifier and TypeFieldDescriptionCreativeModeInventoryScreen.originalSlotsAbstractContainerScreen.quickCraftSlotsMethods in net.minecraft.client.gui.screens.inventory that return SlotModifier and TypeMethodDescriptionprivate @Nullable SlotAbstractContainerScreen.getHoveredSlot(double x, double y) @Nullable SlotAbstractContainerScreen.getSlotUnderMouse()CreativeModeInventoryScreen.SlotWrapper.setBackground(Identifier sprite) Methods in net.minecraft.client.gui.screens.inventory with parameters of type SlotModifier and TypeMethodDescriptionbooleanReturnstrueif the player can "drag-spilt" items into this slot.booleanCreativeModeInventoryScreen.ItemPickerMenu.canTakeItemForPickAll(ItemStack carried, Slot target) Called to determine if the current slot is valid for the stack merging (double-click) code.private booleanCreativeModeInventoryScreen.isCreativeSlot(@Nullable Slot slot) private booleanAbstractContainerScreen.isHovering(Slot slot, double xm, double ym) booleanCreativeModeInventoryScreen.SlotWrapper.isSameInventory(Slot other) (package private) voidAbstractContainerScreen.onMouseClickAction(@Nullable Slot slot, ContainerInput containerInput) private voidAbstractContainerScreen.onStopHovering(Slot slot) private voidCyclingSlotBackground.renderIcon(Slot slot, Identifier iconIdentifier, float alphaProgress, GuiGraphics graphics, int left, int top) protected voidAbstractContainerScreen.renderSlot(GuiGraphics graphics, Slot slot, int mouseX, int mouseY) voidCrafterScreen.renderSlot(GuiGraphics graphics, Slot slot, int mouseX, int mouseY) protected voidAbstractContainerScreen.renderSlotContents(GuiGraphics graphics, ItemStack itemStack, Slot slot, @Nullable String itemCount) private booleanAbstractContainerScreen.shouldAddSlotToQuickCraft(Slot slot, ItemStack carried) protected voidAbstractContainerScreen.slotClicked(Slot slot, int slotId, int buttonNum, ContainerInput containerInput) protected voidAbstractRecipeBookScreen.slotClicked(Slot slot, int slotId, int buttonNum, ContainerInput containerInput) protected voidCrafterScreen.slotClicked(Slot slot, int slotId, int buttonNum, ContainerInput containerInput) protected voidCreativeModeInventoryScreen.slotClicked(@Nullable Slot slot, int slotId, int buttonNum, ContainerInput containerInput) Constructors in net.minecraft.client.gui.screens.inventory with parameters of type Slot -
Uses of Slot in net.minecraft.client.gui.screens.recipebook
Fields in net.minecraft.client.gui.screens.recipebook with type parameters of type SlotModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Slot, GhostSlots.GhostSlot> GhostSlots.ingredientsMethods in net.minecraft.client.gui.screens.recipebook with parameters of type SlotModifier and TypeMethodDescriptionprotected booleanCraftingRecipeBookComponent.isCraftingSlot(Slot slot) protected booleanFurnaceRecipeBookComponent.isCraftingSlot(Slot slot) protected abstract booleanRecipeBookComponent.isCraftingSlot(Slot slot) voidGhostSlots.renderTooltip(GuiGraphics graphics, Minecraft minecraft, int mouseX, int mouseY, @Nullable Slot hoveredSlot) voidRecipeBookComponent.renderTooltip(GuiGraphics graphics, int mouseX, int mouseY, @Nullable Slot hoveredSlot) voidGhostSlots.setInput(Slot slot, ContextMap context, SlotDisplay contents) voidGhostSlots.setResult(Slot slot, ContextMap context, SlotDisplay contents) private voidGhostSlots.setSlot(Slot slot, ContextMap context, SlotDisplay contents, boolean isResult) voidRecipeBookComponent.slotClicked(@Nullable Slot slot) -
Uses of Slot in net.minecraft.recipebook
Fields in net.minecraft.recipebook with type parameters of type SlotMethods in net.minecraft.recipebook with parameters of type SlotModifier and TypeMethodDescriptionprivate intServerPlaceRecipe.moveItemToGrid(Slot targetSlot, Holder<Item> itemInInventory, int count) Method parameters in net.minecraft.recipebook with type arguments of type SlotModifier and TypeMethodDescriptionstatic <I extends RecipeInput, R extends Recipe<I>>
RecipeBookMenu.PostPlaceActionServerPlaceRecipe.placeRecipe(ServerPlaceRecipe.CraftingMenuAccess<R> menu, int gridWidth, int gridHeight, List<Slot> inputGridSlots, List<Slot> slotsToClear, Inventory inventory, RecipeHolder<R> recipe, boolean useMaxItems, boolean allowDroppingItemsToClear) Constructor parameters in net.minecraft.recipebook with type arguments of type SlotModifierConstructorDescriptionprivateServerPlaceRecipe(ServerPlaceRecipe.CraftingMenuAccess<R> menu, Inventory inventory, boolean useMaxItems, int gridWidth, int gridHeight, List<Slot> inputGridSlots, List<Slot> slotsToClear) -
Uses of Slot in net.minecraft.world.inventory
Subclasses of Slot in net.minecraft.world.inventoryModifier and TypeClassDescription(package private) classprivate static classprivate static classprivate static classprivate static classclassclassclassclassclassclassclassFields in net.minecraft.world.inventory declared as SlotModifier and TypeFieldDescriptionprivate final SlotLoomMenu.bannerSlotprivate final SlotLoomMenu.dyeSlotprivate final SlotBrewingStandMenu.ingredientSlot(package private) final SlotStonecutterMenu.inputSlotprivate final SlotLoomMenu.patternSlotprivate final SlotLoomMenu.resultSlot(package private) final SlotStonecutterMenu.resultSlotThe inventory slot that stores the output of the crafting recipe.Fields in net.minecraft.world.inventory with type parameters of type SlotModifier and TypeFieldDescriptionAbstractContainerMenu.quickcraftSlotsfinal NonNullList<Slot> AbstractContainerMenu.slotsMethods in net.minecraft.world.inventory that return SlotModifier and TypeMethodDescriptionprotected SlotAbstractCraftingMenu.addResultSlot(Player player, int x, int y) protected SlotAdds an item slot to this containerLoomMenu.getBannerSlot()LoomMenu.getDyeSlot()LoomMenu.getPatternSlot()abstract SlotAbstractCraftingMenu.getResultSlot()AbstractFurnaceMenu.getResultSlot()CraftingMenu.getResultSlot()InventoryMenu.getResultSlot()LoomMenu.getResultSlot()AbstractContainerMenu.getSlot(int index) Slot.setBackground(Identifier sprite) Sets the background atlas and sprite location.Methods in net.minecraft.world.inventory that return types with arguments of type SlotModifier and TypeMethodDescriptionAbstractCraftingMenu.getInputGridSlots()CraftingMenu.getInputGridSlots()InventoryMenu.getInputGridSlots()Methods in net.minecraft.world.inventory with parameters of type SlotModifier and TypeMethodDescriptionprotected SlotAdds an item slot to this containerbooleanReturnstrueif the player can "drag-spilt" items into this slot.static booleanAbstractContainerMenu.canItemQuickReplace(@Nullable Slot slot, ItemStack itemStack, boolean ignoreSize) Checks if it's possible to add the given itemstack to the given slot.booleanAbstractContainerMenu.canTakeItemForPickAll(ItemStack carried, Slot target) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanCartographyTableMenu.canTakeItemForPickAll(ItemStack carried, Slot target) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanCraftingMenu.canTakeItemForPickAll(ItemStack carried, Slot target) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanInventoryMenu.canTakeItemForPickAll(ItemStack carried, Slot target) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanMerchantMenu.canTakeItemForPickAll(ItemStack carried, Slot target) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanSmithingMenu.canTakeItemForPickAll(ItemStack carried, Slot target) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanStonecutterMenu.canTakeItemForPickAll(ItemStack carried, Slot target) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanSlot.isSameInventory(Slot other) Checks if the other slot is in the same inventory, by comparing the inventory reference.private booleanAbstractContainerMenu.tryItemClickBehaviourOverride(Player player, ClickAction clickAction, Slot slot, ItemStack clicked, ItemStack carried) -
Uses of Slot in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type SlotModifier and TypeMethodDescriptionbooleanBundleItem.overrideOtherStackedOnMe(ItemStack self, ItemStack other, Slot slot, ClickAction clickAction, Player player, SlotAccess carriedItem) booleanItem.overrideOtherStackedOnMe(ItemStack self, ItemStack other, Slot slot, ClickAction clickAction, Player player, SlotAccess carriedItem) booleanItemStack.overrideOtherStackedOnMe(ItemStack other, Slot slot, ClickAction clickAction, Player player, SlotAccess carriedItem) booleanBundleItem.overrideStackedOnOther(ItemStack self, Slot slot, ClickAction clickAction, Player player) booleanItem.overrideStackedOnOther(ItemStack self, Slot slot, ClickAction clickAction, Player player) booleanItemStack.overrideStackedOnOther(Slot slot, ClickAction clickAction, Player player) -
Uses of Slot in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type SlotModifier and TypeMethodDescriptionintBundleContents.Mutable.tryTransfer(Slot slot, Player player) -
Uses of Slot in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type SlotModifier and TypeMethodDescriptionstatic booleanCommonHooks.onItemStackedOn(ItemStack carriedItem, ItemStack stackedOnItem, Slot slot, ClickAction action, Player player, SlotAccess carriedSlotAccess) Fires theItemStackedOnOtherEvent, allowing items to handle custom behavior relating to being stacked together (i.e. how the bundle operates). -
Uses of Slot in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as SlotMethods in net.neoforged.neoforge.event that return SlotModifier and TypeMethodDescriptionItemStackedOnOtherEvent.getSlot()Returns the slot being clicked on.Constructors in net.neoforged.neoforge.event with parameters of type SlotModifierConstructorDescriptionItemStackedOnOtherEvent(ItemStack carriedItem, ItemStack stackedOnItem, Slot slot, ClickAction action, Player player, SlotAccess carriedSlotAccess) -
Uses of Slot in net.neoforged.neoforge.items
Subclasses of Slot in net.neoforged.neoforge.itemsModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.UseResourceHandlerSlotinstead.Methods in net.neoforged.neoforge.items with parameters of type SlotModifier and TypeMethodDescriptionbooleanItemHandlerCopySlot.isSameInventory(Slot other) Deprecated, for removal: This API element is subject to removal in a future version.booleanSlotItemHandler.isSameInventory(Slot other) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Slot in net.neoforged.neoforge.transfer.item
Subclasses of Slot in net.neoforged.neoforge.transfer.itemModifier and TypeClassDescriptionclassBase implementation for aSlotbacked by aResourceHandler<ItemResource>.Methods in net.neoforged.neoforge.transfer.item with parameters of type Slot -
Uses of Slot in net.neoforged.neoforge.world.inventory
Subclasses of Slot in net.neoforged.neoforge.world.inventoryModifier and TypeClassDescriptionclassSlot to handle immutable itemstack storages (Ex:ItemAccessItemHandler).
ResourceHandlerSlotinstead.