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 class
Fields in net.minecraft.client.gui.screens.inventory declared as SlotModifier and TypeFieldDescriptionprivate Slot
AbstractContainerScreen.clickedSlot
Used when touchscreen is enabledprivate Slot
CreativeModeInventoryScreen.destroyItemSlot
protected Slot
AbstractContainerScreen.hoveredSlot
Holds the slot currently hoveredprivate Slot
AbstractContainerScreen.lastClickSlot
private Slot
AbstractContainerScreen.quickdropSlot
private Slot
AbstractContainerScreen.snapbackEnd
(package private) final Slot
CreativeModeInventoryScreen.SlotWrapper.target
Fields in net.minecraft.client.gui.screens.inventory with type parameters of type SlotModifier and TypeFieldDescriptionCreativeModeInventoryScreen.originalSlots
AbstractContainerScreen.quickCraftSlots
Methods in net.minecraft.client.gui.screens.inventory that return SlotModifier and TypeMethodDescriptionprivate Slot
AbstractContainerScreen.findSlot
(double mouseX, double mouseY) @Nullable Slot
AbstractContainerScreen.getSlotUnderMouse()
CreativeModeInventoryScreen.SlotWrapper.setBackground
(ResourceLocation atlas, ResourceLocation sprite) Methods in net.minecraft.client.gui.screens.inventory with parameters of type SlotModifier and TypeMethodDescriptionboolean
Returnstrue
if the player can "drag-spilt" items into this slot.boolean
CreativeModeInventoryScreen.ItemPickerMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.private boolean
CreativeModeInventoryScreen.isCreativeSlot
(Slot slot) private boolean
AbstractContainerScreen.isHovering
(Slot slot, double mouseX, double mouseY) boolean
CreativeModeInventoryScreen.SlotWrapper.isSameInventory
(Slot other) private void
CyclingSlotBackground.renderIcon
(Slot slot, ResourceLocation icon, float alpha, GuiGraphics guiGraphics, int x, int y) protected void
AbstractContainerScreen.renderSlot
(GuiGraphics guiGraphics, Slot slot) void
CrafterScreen.renderSlot
(GuiGraphics guiGraphics, Slot slot) protected void
AbstractContainerScreen.renderSlotContents
(GuiGraphics guiGraphics, ItemStack itemstack, Slot slot, String countString) protected void
AbstractContainerScreen.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 void
AbstractContainerScreen.slotClicked
(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected void
AbstractFurnaceScreen.slotClicked
(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected void
CrafterScreen.slotClicked
(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected void
CraftingScreen.slotClicked
(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected void
CreativeModeInventoryScreen.slotClicked
(Slot slot, int slotId, int mouseButton, ClickType type) Called when the mouse is clicked over a slot or outside the gui.protected void
InventoryScreen.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 TypeMethodDescriptionvoid
AbstractFurnaceRecipeBookComponent.slotClicked
(Slot slot) void
RecipeBookComponent.slotClicked
(Slot slot) Method parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type SlotModifier and TypeMethodDescriptionvoid
AbstractFurnaceRecipeBookComponent.setupGhostRecipe
(RecipeHolder<?> recipe, List<Slot> slots) void
RecipeBookComponent.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 int
ServerPlaceRecipe.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 class
class
class
class
class
class
class
class
Fields in net.minecraft.world.inventory declared as SlotModifier and TypeFieldDescription(package private) final Slot
LoomMenu.bannerSlot
(package private) final Slot
LoomMenu.dyeSlot
private final Slot
BrewingStandMenu.ingredientSlot
(package private) final Slot
StonecutterMenu.inputSlot
private final Slot
LoomMenu.patternSlot
private final Slot
LoomMenu.resultSlot
(package private) final Slot
StonecutterMenu.resultSlot
The inventory slot that stores the output of the crafting recipe.Fields in net.minecraft.world.inventory with type parameters of type SlotModifier and TypeFieldDescriptionAbstractContainerMenu.quickcraftSlots
final NonNullList
<Slot> AbstractContainerMenu.slots
Methods in net.minecraft.world.inventory that return SlotModifier and TypeMethodDescriptionprotected Slot
Adds 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 Slot
Adds an item slot to this containerboolean
Returnstrue
if the player can "drag-spilt" items into this slot.static boolean
AbstractContainerMenu.canItemQuickReplace
(Slot slot, ItemStack stack, boolean stackSizeMatters) Checks if it's possible to add the given itemstack to the given slot.boolean
AbstractContainerMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
CartographyTableMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
CraftingMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
InventoryMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
MerchantMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
SmithingMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
StonecutterMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
Slot.isSameInventory
(Slot other) Checks if the other slot is in the same inventory, by comparing the inventory reference.private boolean
AbstractContainerMenu.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 int
AbstractContainerMenu.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 TypeMethodDescriptionboolean
BundleItem.overrideOtherStackedOnMe
(ItemStack stack, ItemStack other, Slot slot, ClickAction action, Player player, SlotAccess access) boolean
Item.overrideOtherStackedOnMe
(ItemStack stack, ItemStack other, Slot slot, ClickAction action, Player player, SlotAccess access) boolean
ItemStack.overrideOtherStackedOnMe
(ItemStack stack, Slot slot, ClickAction action, Player player, SlotAccess access) boolean
BundleItem.overrideStackedOnOther
(ItemStack stack, Slot slot, ClickAction action, Player player) boolean
Item.overrideStackedOnOther
(ItemStack stack, Slot slot, ClickAction action, Player player) boolean
ItemStack.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 TypeMethodDescriptionint
BundleContents.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 boolean
CommonHooks.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 TypeClassDescriptionclass
Slot class that can be used with immutableIItemHandler
s likeComponentItemHandler
.class
class
Slot to handle immutable itemstack storages (Ex:ComponentItemHandler
).Methods in net.neoforged.neoforge.items with parameters of type Slot