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 pMouseX, double pMouseY) @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 pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.private boolean
CreativeModeInventoryScreen.isCreativeSlot
(Slot pSlot) private boolean
AbstractContainerScreen.isHovering
(Slot pSlot, double pMouseX, double pMouseY) boolean
CreativeModeInventoryScreen.SlotWrapper.isSameInventory
(Slot other) private void
CyclingSlotBackground.renderIcon
(Slot pSlot, ResourceLocation pIcon, float pAlpha, GuiGraphics pGuiGraphics, int pX, int pY) protected void
AbstractContainerScreen.renderSlot
(GuiGraphics pGuiGraphics, Slot pSlot) void
CrafterScreen.renderSlot
(GuiGraphics pGuiGraphics, Slot pSlot) 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 pSlot, int pSlotId, int pMouseButton, ClickType pType) Called when the mouse is clicked over a slot or outside the gui.protected void
AbstractFurnaceScreen.slotClicked
(Slot pSlot, int pSlotId, int pMouseButton, ClickType pType) Called when the mouse is clicked over a slot or outside the gui.protected void
CrafterScreen.slotClicked
(Slot pSlot, int pSlotId, int pMouseButton, ClickType pType) Called when the mouse is clicked over a slot or outside the gui.protected void
CraftingScreen.slotClicked
(Slot pSlot, int pSlotId, int pMouseButton, ClickType pType) Called when the mouse is clicked over a slot or outside the gui.protected void
CreativeModeInventoryScreen.slotClicked
(Slot pSlot, int pSlotId, int pMouseButton, ClickType pType) Called when the mouse is clicked over a slot or outside the gui.protected void
InventoryScreen.slotClicked
(Slot pSlot, int pSlotId, int pMouseButton, ClickType pType) 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 pSlot) void
RecipeBookComponent.slotClicked
(Slot pSlot) Method parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type SlotModifier and TypeMethodDescriptionvoid
AbstractFurnaceRecipeBookComponent.setupGhostRecipe
(RecipeHolder<?> pRecipe, List<Slot> pSlots) void
RecipeBookComponent.setupGhostRecipe
(RecipeHolder<?> pRecipe, List<Slot> pSlots) -
Uses of Slot in net.minecraft.recipebook
Methods in net.minecraft.recipebook with parameters of type SlotModifier and TypeMethodDescriptionprotected int
ServerPlaceRecipe.moveItemToGrid
(Slot pSlot, ItemStack pStack, int pMaxAmount) -
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 pSlotId) 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 pSlot, ItemStack pStack, boolean pStackSizeMatters) Checks if it's possible to add the given itemstack to the given slot.boolean
AbstractContainerMenu.canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
CartographyTableMenu.canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
CraftingMenu.canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
InventoryMenu.canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
MerchantMenu.canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
SmithingMenu.canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.boolean
StonecutterMenu.canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) 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 pPlayer, ClickAction pAction, Slot pSlot, ItemStack pClickedItem, ItemStack pCarriedItem) Method parameters in net.minecraft.world.inventory with type arguments of type SlotModifier and TypeMethodDescriptionstatic int
AbstractContainerMenu.getQuickCraftPlaceCount
(Set<Slot> pSlots, int pType, ItemStack pStack) -
Uses of Slot in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type SlotModifier and TypeMethodDescriptionboolean
BundleItem.overrideOtherStackedOnMe
(ItemStack pStack, ItemStack pOther, Slot pSlot, ClickAction pAction, Player pPlayer, SlotAccess pAccess) boolean
Item.overrideOtherStackedOnMe
(ItemStack pStack, ItemStack pOther, Slot pSlot, ClickAction pAction, Player pPlayer, SlotAccess pAccess) boolean
ItemStack.overrideOtherStackedOnMe
(ItemStack pStack, Slot pSlot, ClickAction pAction, Player pPlayer, SlotAccess pAccess) boolean
BundleItem.overrideStackedOnOther
(ItemStack pStack, Slot pSlot, ClickAction pAction, Player pPlayer) boolean
Item.overrideStackedOnOther
(ItemStack pStack, Slot pSlot, ClickAction pAction, Player pPlayer) boolean
ItemStack.overrideStackedOnOther
(Slot pSlot, ClickAction pAction, Player pPlayer) -
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 pSlot, Player pPlayer) -
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. 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 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 -
Uses of Slot in net.neoforged.neoforge.oldtest.recipebook
Fields in net.neoforged.neoforge.oldtest.recipebook declared as SlotMethods in net.neoforged.neoforge.oldtest.recipebook with parameters of type SlotModifier and TypeMethodDescriptionboolean
RecipeBookTestMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) protected void
RecipeBookTestScreen.slotClicked
(Slot slot, int mouseX, int mouseY, ClickType clickType)