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 p_372932_, ClickType p_372800_) void
ItemSlotMouseAction.onSlotClicked
(Slot p_372974_, ClickType p_372997_) void
BundleMouseActions.onStopHovering
(Slot p_363289_) void
ItemSlotMouseAction.onStopHovering
(Slot p_360941_) -
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
private Slot
CreativeModeInventoryScreen.destroyItemSlot
protected Slot
AbstractContainerScreen.hoveredSlot
private 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.getHoveredSlot
(double p_372985_, double p_372965_) @Nullable Slot
AbstractContainerScreen.getSlotUnderMouse()
CreativeModeInventoryScreen.SlotWrapper.setBackground
(ResourceLocation sprite) Methods in net.minecraft.client.gui.screens.inventory with parameters of type SlotModifier and TypeMethodDescriptionboolean
boolean
CreativeModeInventoryScreen.ItemPickerMenu.canTakeItemForPickAll
(ItemStack p_98647_, Slot p_98648_) private boolean
CreativeModeInventoryScreen.isCreativeSlot
(Slot p_98554_) private boolean
AbstractContainerScreen.isHovering
(Slot p_97775_, double p_97776_, double p_97777_) boolean
CreativeModeInventoryScreen.SlotWrapper.isSameInventory
(Slot other) (package private) void
AbstractContainerScreen.onMouseClickAction
(Slot p_373045_, ClickType p_373026_) private void
AbstractContainerScreen.onStopHovering
(Slot p_366690_) private void
CyclingSlotBackground.renderIcon
(Slot p_283532_, ResourceLocation p_283004_, float p_282627_, GuiGraphics p_282825_, int p_281375_, int p_283041_) protected void
AbstractContainerScreen.renderSlot
(GuiGraphics p_281607_, Slot p_282613_) void
CrafterScreen.renderSlot
(GuiGraphics p_307608_, Slot p_307570_) protected void
AbstractContainerScreen.renderSlotContents
(GuiGraphics guiGraphics, ItemStack itemstack, Slot slot, String countString) protected void
AbstractContainerScreen.slotClicked
(Slot p_97778_, int p_97779_, int p_97780_, ClickType p_97781_) protected void
AbstractRecipeBookScreen.slotClicked
(Slot p_376636_, int p_376122_, int p_376346_, ClickType p_376809_) protected void
CrafterScreen.slotClicked
(Slot p_307465_, int p_307203_, int p_307325_, ClickType p_307680_) protected void
CreativeModeInventoryScreen.slotClicked
(Slot p_98556_, int p_98557_, int p_98558_, ClickType p_98559_) Constructors in net.minecraft.client.gui.screens.inventory with parameters of type SlotModifierConstructorDescriptionSlotWrapper
(Slot p_98657_, int p_98658_, int p_98659_, int p_98660_) -
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 p_364400_) protected boolean
FurnaceRecipeBookComponent.isCraftingSlot
(Slot p_364139_) protected abstract boolean
RecipeBookComponent.isCraftingSlot
(Slot p_361241_) void
GhostSlots.renderTooltip
(GuiGraphics p_363721_, Minecraft p_365392_, int p_363797_, int p_363310_, Slot p_360907_) void
RecipeBookComponent.renderTooltip
(GuiGraphics p_281740_, int p_281520_, int p_282050_, Slot p_362561_) void
GhostSlots.setInput
(Slot p_379329_, ContextMap p_381026_, SlotDisplay p_379367_) void
GhostSlots.setResult
(Slot p_379733_, ContextMap p_381037_, SlotDisplay p_380406_) private void
GhostSlots.setSlot
(Slot p_380315_, ContextMap p_380942_, SlotDisplay p_379948_, boolean p_379880_) void
RecipeBookComponent.slotClicked
(Slot p_100315_) -
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 p_135439_, Holder<Item> p_360762_, int p_346157_) 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> p_361341_, int p_361512_, int p_362929_, List<Slot> p_364825_, List<Slot> p_364661_, Inventory p_364618_, RecipeHolder<R> p_363024_, boolean p_360549_, boolean p_361381_) Constructor parameters in net.minecraft.recipebook with type arguments of type SlotModifierConstructorDescriptionprivate
ServerPlaceRecipe
(ServerPlaceRecipe.CraftingMenuAccess<R> p_363275_, Inventory p_361371_, boolean p_364633_, int p_362980_, int p_361285_, List<Slot> p_364759_, List<Slot> p_361301_) -
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
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 p_362550_, int p_361054_, int p_363126_) protected Slot
LoomMenu.getBannerSlot()
LoomMenu.getDyeSlot()
LoomMenu.getPatternSlot()
abstract Slot
AbstractCraftingMenu.getResultSlot()
AbstractFurnaceMenu.getResultSlot()
CraftingMenu.getResultSlot()
InventoryMenu.getResultSlot()
LoomMenu.getResultSlot()
AbstractContainerMenu.getSlot
(int p_38854_) 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
boolean
static boolean
AbstractContainerMenu.canItemQuickReplace
(Slot p_38900_, ItemStack p_38901_, boolean p_38902_) boolean
AbstractContainerMenu.canTakeItemForPickAll
(ItemStack p_38908_, Slot p_38909_) boolean
CartographyTableMenu.canTakeItemForPickAll
(ItemStack p_39160_, Slot p_39161_) boolean
CraftingMenu.canTakeItemForPickAll
(ItemStack p_39381_, Slot p_39382_) boolean
InventoryMenu.canTakeItemForPickAll
(ItemStack p_39716_, Slot p_39717_) boolean
MerchantMenu.canTakeItemForPickAll
(ItemStack p_40044_, Slot p_40045_) boolean
SmithingMenu.canTakeItemForPickAll
(ItemStack p_40257_, Slot p_40258_) boolean
StonecutterMenu.canTakeItemForPickAll
(ItemStack p_40321_, Slot p_40322_) 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 p_249615_, ClickAction p_250300_, Slot p_249384_, ItemStack p_251073_, ItemStack p_252026_) Method parameters in net.minecraft.world.inventory with type arguments of type SlotModifier and TypeMethodDescriptionstatic int
AbstractContainerMenu.getQuickCraftPlaceCount
(Set<Slot> p_279393_, int p_279288_, ItemStack p_279172_) -
Uses of Slot in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type SlotModifier and TypeMethodDescriptionboolean
BundleItem.overrideOtherStackedOnMe
(ItemStack p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) boolean
Item.overrideOtherStackedOnMe
(ItemStack p_150892_, ItemStack p_150893_, Slot p_150894_, ClickAction p_150895_, Player p_150896_, SlotAccess p_150897_) boolean
ItemStack.overrideOtherStackedOnMe
(ItemStack p_150933_, Slot p_150934_, ClickAction p_150935_, Player p_150936_, SlotAccess p_150937_) boolean
BundleItem.overrideStackedOnOther
(ItemStack p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) boolean
Item.overrideStackedOnOther
(ItemStack p_150888_, Slot p_150889_, ClickAction p_150890_, Player p_150891_) boolean
ItemStack.overrideStackedOnOther
(Slot p_150927_, ClickAction p_150928_, Player p_150929_) -
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 p_330834_, Player p_331924_) -
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