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 p_372932_, ClickType p_372800_) voidItemSlotMouseAction.onSlotClicked(Slot pSlot, ClickType pClickType) voidBundleMouseActions.onStopHovering(Slot p_363289_) voidItemSlotMouseAction.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 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.quickdropSlot(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 @Nullable SlotAbstractContainerScreen.getHoveredSlot(double pMouseX, double pMouseY) @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 pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.private booleanCreativeModeInventoryScreen.isCreativeSlot(@Nullable Slot pSlot) private booleanAbstractContainerScreen.isHovering(Slot pSlot, double pMouseX, double pMouseY) booleanCreativeModeInventoryScreen.SlotWrapper.isSameInventory(Slot other) (package private) voidAbstractContainerScreen.onMouseClickAction(@Nullable Slot pSlot, ClickType pType) private voidAbstractContainerScreen.onStopHovering(Slot pSlot) private voidCyclingSlotBackground.renderIcon(Slot pSlot, Identifier pIcon, float pAlpha, GuiGraphics pGuiGraphics, int pX, int pY) protected voidAbstractContainerScreen.renderSlot(GuiGraphics pGuiGraphics, Slot pSlot, int pMouseX, int pMouseY) voidCrafterScreen.renderSlot(GuiGraphics p_307608_, Slot p_307570_, int p_470762_, int p_470617_) protected voidAbstractContainerScreen.renderSlotContents(GuiGraphics guiGraphics, ItemStack itemstack, Slot slot, @Nullable String countString) protected voidAbstractContainerScreen.slotClicked(Slot pSlot, int pSlotId, int pMouseButton, ClickType pType) Called when the mouse is clicked over a slot or outside the gui.protected voidAbstractRecipeBookScreen.slotClicked(Slot p_376636_, int p_376122_, int p_376346_, ClickType p_376809_) protected voidCrafterScreen.slotClicked(Slot p_307465_, int p_307203_, int p_307325_, ClickType p_307680_) protected voidCreativeModeInventoryScreen.slotClicked(@Nullable 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.ingredientsMethods in net.minecraft.client.gui.screens.recipebook with parameters of type SlotModifier and TypeMethodDescriptionprotected booleanCraftingRecipeBookComponent.isCraftingSlot(Slot p_364400_) protected booleanFurnaceRecipeBookComponent.isCraftingSlot(Slot p_364139_) protected abstract booleanRecipeBookComponent.isCraftingSlot(Slot pSlot) voidGhostSlots.renderTooltip(GuiGraphics pGuiGraphics, Minecraft pMinecraft, int pMouseX, int pMouseY, @Nullable Slot pSlot) voidRecipeBookComponent.renderTooltip(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, @Nullable Slot pSlot) voidGhostSlots.setInput(Slot pSlot, ContextMap pContextMap, SlotDisplay pSlotDisplay) voidGhostSlots.setResult(Slot pSlot, ContextMap pContextMap, SlotDisplay pSlotDisplay) private voidGhostSlots.setSlot(Slot pSlot, ContextMap pContextMap, SlotDisplay pSlotDisplay, boolean pIsResultSlot) voidRecipeBookComponent.slotClicked(@Nullable 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 intServerPlaceRecipe.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 SlotModifierConstructorDescriptionprivateServerPlaceRecipe(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 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 SlotAbstractCraftingMenu.addResultSlot(Player pPlayer, int pX, int pY) 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 pSlotId) 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 pSlot, ItemStack pStack, boolean pStackSizeMatters) Checks if it's possible to add the given itemstack to the given slot.booleanAbstractContainerMenu.canTakeItemForPickAll(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanCartographyTableMenu.canTakeItemForPickAll(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanCraftingMenu.canTakeItemForPickAll(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanInventoryMenu.canTakeItemForPickAll(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanMerchantMenu.canTakeItemForPickAll(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanSmithingMenu.canTakeItemForPickAll(ItemStack pStack, Slot pSlot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanStonecutterMenu.canTakeItemForPickAll(ItemStack pStack, Slot pSlot) 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 pPlayer, ClickAction pAction, Slot pSlot, ItemStack pClickedItem, ItemStack pCarriedItem) Method parameters in net.minecraft.world.inventory with type arguments of type SlotModifier and TypeMethodDescriptionstatic intAbstractContainerMenu.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 TypeMethodDescriptionbooleanBundleItem.overrideOtherStackedOnMe(ItemStack p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) booleanItem.overrideOtherStackedOnMe(ItemStack pStack, ItemStack pOther, Slot pSlot, ClickAction pAction, Player pPlayer, SlotAccess pAccess) booleanItemStack.overrideOtherStackedOnMe(ItemStack pStack, Slot pSlot, ClickAction pAction, Player pPlayer, SlotAccess pAccess) booleanBundleItem.overrideStackedOnOther(ItemStack p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) booleanItem.overrideStackedOnOther(ItemStack pStack, Slot pSlot, ClickAction pAction, Player pPlayer) booleanItemStack.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 TypeMethodDescriptionintBundleContents.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 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.