Uses of Class
net.minecraft.world.inventory.Slot
Packages that use Slot
Package
Description
-
Uses of Slot in net.minecraft.client.gui.screens.inventory
Subclasses of Slot in net.minecraft.client.gui.screens.inventoryModifier and TypeClassDescription(package private) static class(package private) static classFields in net.minecraft.client.gui.screens.inventory declared as SlotModifier and TypeFieldDescriptionprivate SlotAbstractContainerScreen.clickedSlotUsed when touchscreen is enabledprivate SlotCreativeModeInventoryScreen.destroyItemSlotprotected SlotAbstractContainerScreen.hoveredSlotHolds the slot currently hoveredprivate SlotAbstractContainerScreen.lastClickSlotprivate SlotAbstractContainerScreen.quickdropSlotprivate SlotAbstractContainerScreen.snapbackEnd(package private) 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 SlotAbstractContainerScreen.findSlot(double mouseX, double mouseY) @Nullable SlotAbstractContainerScreen.getSlotUnderMouse()CreativeModeInventoryScreen.SlotWrapper.setBackground(ResourceLocation atlas, ResourceLocation 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 stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.private booleanCreativeModeInventoryScreen.isCreativeSlot(Slot slot) private booleanAbstractContainerScreen.isHovering(Slot slot, double mouseX, double mouseY) booleanCreativeModeInventoryScreen.SlotWrapper.isSameInventory(Slot other) private voidCyclingSlotBackground.renderIcon(Slot slot, ResourceLocation icon, float alpha, GuiGraphics guiGraphics, int x, int y) protected voidAbstractContainerScreen.renderSlot(GuiGraphics guiGraphics, Slot slot) voidCrafterScreen.renderSlot(GuiGraphics guiGraphics, Slot slot) protected voidAbstractContainerScreen.renderSlotContents(GuiGraphics guiGraphics, ItemStack itemstack, Slot slot, String countString) protected voidAbstractContainerScreen.renderSlotHighlight(GuiGraphics guiGraphics, Slot slot, int mouseX, int mouseY, float partialTick) Renders a highlight for the given slot to indicate the mouse is currently hovering over it.protected voidAbstractContainerScreen.slotClicked(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected voidAbstractFurnaceScreen.slotClicked(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected voidCrafterScreen.slotClicked(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected voidCraftingScreen.slotClicked(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected voidCreativeModeInventoryScreen.slotClicked(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected voidInventoryScreen.slotClicked(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.Constructors in net.minecraft.client.gui.screens.inventory with parameters of type Slot -
Uses of Slot in net.minecraft.client.gui.screens.recipebook
Methods in net.minecraft.client.gui.screens.recipebook with parameters of type SlotModifier and TypeMethodDescriptionvoidAbstractFurnaceRecipeBookComponent.slotClicked(Slot slot) voidRecipeBookComponent.slotClicked(Slot slot) Method parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type SlotModifier and TypeMethodDescriptionvoidAbstractFurnaceRecipeBookComponent.setupGhostRecipe(RecipeHolder<?> recipe, List<Slot> slots) voidRecipeBookComponent.setupGhostRecipe(RecipeHolder<?> recipe, List<Slot> slots) -
Uses of Slot in net.minecraft.recipebook
Methods in net.minecraft.recipebook with parameters of type SlotModifier and TypeMethodDescriptionprotected intServerPlaceRecipe.moveItemToGrid(Slot slot, ItemStack stack, int maxAmount) -
Uses of Slot in net.minecraft.world.inventory
Subclasses of Slot in net.minecraft.world.inventoryModifier and TypeClassDescription(package private) class(package private) class(package private) static class(package private) static class(package private) static classclassclassclassclassclassclassclassFields in net.minecraft.world.inventory declared as SlotModifier and TypeFieldDescription(package private) final SlotLoomMenu.bannerSlot(package private) 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 SlotAdds an item slot to this containerLoomMenu.getBannerSlot()LoomMenu.getDyeSlot()LoomMenu.getPatternSlot()LoomMenu.getResultSlot()AbstractContainerMenu.getSlot(int slotId) Slot.setBackground(ResourceLocation atlas, ResourceLocation sprite) Sets the background atlas and sprite location.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(Slot slot, ItemStack stack, boolean stackSizeMatters) Checks if it's possible to add the given itemstack to the given slot.booleanAbstractContainerMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanCartographyTableMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanCraftingMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanInventoryMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanMerchantMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanSmithingMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanStonecutterMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) 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 action, Slot slot, ItemStack clickedItem, ItemStack carriedItem) Method parameters in net.minecraft.world.inventory with type arguments of type SlotModifier and TypeMethodDescriptionstatic intAbstractContainerMenu.getQuickCraftPlaceCount(Set<Slot> slots, int type, ItemStack stack) -
Uses of Slot in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type SlotModifier and TypeMethodDescriptionbooleanBundleItem.overrideOtherStackedOnMe(ItemStack stack, ItemStack other, Slot slot, ClickAction action, Player player, SlotAccess access) booleanItem.overrideOtherStackedOnMe(ItemStack stack, ItemStack other, Slot slot, ClickAction action, Player player, SlotAccess access) booleanItemStack.overrideOtherStackedOnMe(ItemStack stack, Slot slot, ClickAction action, Player player, SlotAccess access) booleanBundleItem.overrideStackedOnOther(ItemStack stack, Slot slot, ClickAction action, Player player) booleanItem.overrideStackedOnOther(ItemStack stack, Slot slot, ClickAction action, Player player) booleanItemStack.overrideStackedOnOther(Slot slot, ClickAction action, 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. -
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 TypeClassDescriptionclassSlot class that can be used with immutableIItemHandlers likeComponentItemHandler.classclassSlot to handle immutable itemstack storages (Ex:ComponentItemHandler).Methods in net.neoforged.neoforge.items with parameters of type Slot