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 TypeMethodDescriptionboolean
boolean
void
BundleMouseActions.onSlotClicked
(Slot pSlot, ClickType pClickType) void
ItemSlotMouseAction.onSlotClicked
(Slot pSlot, ClickType pClickType) void
BundleMouseActions.onStopHovering
(Slot pSlot) void
ItemSlotMouseAction.onStopHovering
(Slot pSlot) -
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
(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.getHoveredSlot
(double pMouseX, double pMouseY) @Nullable Slot
AbstractContainerScreen.getSlotUnderMouse()
CreativeModeInventoryScreen.SlotWrapper.setBackground
(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) (package private) void
AbstractContainerScreen.onMouseClickAction
(Slot pSlot, ClickType pType) private void
AbstractContainerScreen.onStopHovering
(Slot pSlot) 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.slotClicked
(Slot pSlot, int pSlotId, int pMouseButton, ClickType pType) Called when the mouse is clicked over a slot or outside the gui.protected void
AbstractRecipeBookScreen.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
CreativeModeInventoryScreen.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
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.ingredients
Methods in net.minecraft.client.gui.screens.recipebook with parameters of type SlotModifier and TypeMethodDescriptionprotected boolean
CraftingRecipeBookComponent.isCraftingSlot
(Slot pSlot) protected boolean
FurnaceRecipeBookComponent.isCraftingSlot
(Slot pSlot) protected abstract boolean
RecipeBookComponent.isCraftingSlot
(Slot pSlot) void
GhostSlots.renderTooltip
(GuiGraphics pGuiGraphics, Minecraft pMinecraft, int pMouseX, int pMouseY, Slot pSlot) void
RecipeBookComponent.renderTooltip
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, Slot pSlot) void
GhostSlots.setInput
(Slot pSlot, ContextMap pContextMap, SlotDisplay pSlotDisplay) void
GhostSlots.setResult
(Slot pSlot, ContextMap pContextMap, SlotDisplay pSlotDisplay) private void
GhostSlots.setSlot
(Slot pSlot, ContextMap pContextMap, SlotDisplay pSlotDisplay, boolean pIsResultSlot) void
RecipeBookComponent.slotClicked
(Slot pSlot) -
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 int
ServerPlaceRecipe.moveItemToGrid
(Slot pSlot, Holder<Item> pItem, int pCount) 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> pMenu, int pGridWidth, int pGridHeight, List<Slot> pInputGridSlots, List<Slot> pSlotsToClear, Inventory pInventory, RecipeHolder<R> pRecipe, boolean pUseMaxItems, boolean pIsCreative) Constructor parameters in net.minecraft.recipebook with type arguments of type SlotModifierConstructorDescriptionprivate
ServerPlaceRecipe
(ServerPlaceRecipe.CraftingMenuAccess<R> pMenu, Inventory pInventory, boolean pUseMaxItems, int pGridWidth, int pGridHeight, List<Slot> pInputGridSlots, List<Slot> pSlotsToClear) -
Uses of Slot in net.minecraft.world.inventory
Subclasses of Slot in net.minecraft.world.inventoryModifier and TypeClassDescription(package private) class
(package private) static 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
AbstractCraftingMenu.addResultSlot
(Player pPlayer, int pX, int pY) protected Slot
Adds an item slot to this containerLoomMenu.getBannerSlot()
LoomMenu.getDyeSlot()
LoomMenu.getPatternSlot()
abstract Slot
AbstractCraftingMenu.getResultSlot()
AbstractFurnaceMenu.getResultSlot()
CraftingMenu.getResultSlot()
InventoryMenu.getResultSlot()
LoomMenu.getResultSlot()
AbstractContainerMenu.getSlot
(int pSlotId) Slot.setBackground
(ResourceLocation 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 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 SlotModifier and TypeMethodDescriptionboolean
ItemHandlerCopySlot.isSameInventory
(Slot other) boolean
SlotItemHandler.isSameInventory
(Slot other)