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 slot, ClickType clickType) voidBundleMouseActions.onStopHovering(Slot p_363289_) voidItemSlotMouseAction.onStopHovering(Slot slot) -
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.getHoveredSlot(double mouseX, double mouseY) @Nullable SlotAbstractContainerScreen.getSlotUnderMouse()CreativeModeInventoryScreen.SlotWrapper.setBackground(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) (package private) voidAbstractContainerScreen.onMouseClickAction(Slot slot, ClickType type) private voidAbstractContainerScreen.onStopHovering(Slot slot) 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 p_307608_, Slot p_307570_) protected voidAbstractContainerScreen.renderSlotContents(GuiGraphics guiGraphics, ItemStack itemstack, Slot slot, String countString) 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 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(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
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 slot) voidGhostSlots.renderTooltip(GuiGraphics guiGraphics, Minecraft minecraft, int mouseX, int mouseY, Slot slot) voidRecipeBookComponent.renderTooltip(GuiGraphics guiGraphics, int mouseX, int mouseY, Slot slot) voidGhostSlots.setInput(Slot slot, ContextMap contextMap, SlotDisplay slotDisplay) voidGhostSlots.setResult(Slot slot, ContextMap contextMap, SlotDisplay slotDisplay) private voidGhostSlots.setSlot(Slot slot, ContextMap contextMap, SlotDisplay slotDisplay, boolean isResultSlot) voidRecipeBookComponent.slotClicked(Slot slot) -
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 slot, Holder<Item> item, int count) 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> menu, int gridWidth, int gridHeight, List<Slot> inputGridSlots, List<Slot> slotsToClear, Inventory inventory, RecipeHolder<R> recipe, boolean useMaxItems, boolean isCreative) Constructor parameters in net.minecraft.recipebook with type arguments of type SlotModifierConstructorDescriptionprivateServerPlaceRecipe(ServerPlaceRecipe.CraftingMenuAccess<R> menu, Inventory inventory, boolean useMaxItems, int gridWidth, int gridHeight, List<Slot> inputGridSlots, List<Slot> slotsToClear) -
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 player, int x, int y) 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 slotId) 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 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 p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) 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 p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) 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. 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 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