Package net.minecraft.world.inventory
Class InventoryMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<CraftingContainer>
net.minecraft.world.inventory.InventoryMenu
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal booleanstatic final intstatic final intstatic final ResourceLocationstatic final intstatic final intstatic final intprivate final CraftingContainerstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final intstatic final intprivate final Playerstatic final intprivate final ResultContainerstatic final intprivate static final EquipmentSlot[](package private) static final ResourceLocation[]static final intstatic final intFields inherited from class net.minecraft.world.inventory.AbstractContainerMenuCARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanTakeItemForPickAll(ItemStack p_39716_, Slot p_39717_) voidvoidfillCraftSlotsStackedContents(StackedContents p_39714_) intintintintgetSize()static booleanisHotbarSlot(int p_150593_) (package private) static voidonEquipItem(Player p_270432_, EquipmentSlot p_270254_, ItemStack p_270316_, ItemStack p_270993_) quickMoveStack(Player p_39723_, int p_39724_) booleanrecipeMatches(RecipeHolder<? extends Recipe<CraftingContainer>> p_300901_) voidbooleanshouldMoveToInventory(int p_150591_) voidslotsChanged(Container p_39710_) booleanstillValid(Player p_39712_) Methods inherited from class net.minecraft.world.inventory.RecipeBookMenugetRecipeBookCategories, handlePlacementMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenuaddDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
- 
Field Details- 
CONTAINER_IDpublic static final int CONTAINER_ID- See Also:
 
- 
RESULT_SLOTpublic static final int RESULT_SLOT- See Also:
 
- 
CRAFT_SLOT_STARTpublic static final int CRAFT_SLOT_START- See Also:
 
- 
CRAFT_SLOT_ENDpublic static final int CRAFT_SLOT_END- See Also:
 
- 
ARMOR_SLOT_STARTpublic static final int ARMOR_SLOT_START- See Also:
 
- 
ARMOR_SLOT_ENDpublic static final int ARMOR_SLOT_END- See Also:
 
- 
INV_SLOT_STARTpublic static final int INV_SLOT_START- See Also:
 
- 
INV_SLOT_ENDpublic static final int INV_SLOT_END- See Also:
 
- 
USE_ROW_SLOT_STARTpublic static final int USE_ROW_SLOT_START- See Also:
 
- 
USE_ROW_SLOT_ENDpublic static final int USE_ROW_SLOT_END- See Also:
 
- 
SHIELD_SLOTpublic static final int SHIELD_SLOT- See Also:
 
- 
BLOCK_ATLAS
- 
EMPTY_ARMOR_SLOT_HELMET
- 
EMPTY_ARMOR_SLOT_CHESTPLATE
- 
EMPTY_ARMOR_SLOT_LEGGINGS
- 
EMPTY_ARMOR_SLOT_BOOTS
- 
EMPTY_ARMOR_SLOT_SHIELD
- 
TEXTURE_EMPTY_SLOTS
- 
SLOT_IDS
- 
craftSlots
- 
resultSlots
- 
activepublic final boolean active
- 
owner
 
- 
- 
Constructor Details- 
InventoryMenu
 
- 
- 
Method Details- 
onEquipItemstatic void onEquipItem(Player p_270432_, EquipmentSlot p_270254_, ItemStack p_270316_, ItemStack p_270993_) 
- 
isHotbarSlotpublic static boolean isHotbarSlot(int p_150593_) 
- 
fillCraftSlotsStackedContents- Specified by:
- fillCraftSlotsStackedContentsin class- RecipeBookMenu<CraftingContainer>
 
- 
clearCraftingContentpublic void clearCraftingContent()- Specified by:
- clearCraftingContentin class- RecipeBookMenu<CraftingContainer>
 
- 
recipeMatches- Specified by:
- recipeMatchesin class- RecipeBookMenu<CraftingContainer>
 
- 
slotsChanged- Overrides:
- slotsChangedin class- AbstractContainerMenu
 
- 
removed- Overrides:
- removedin class- AbstractContainerMenu
 
- 
stillValid- Specified by:
- stillValidin class- AbstractContainerMenu
 
- 
quickMoveStack- Specified by:
- quickMoveStackin class- AbstractContainerMenu
 
- 
canTakeItemForPickAll- Overrides:
- canTakeItemForPickAllin class- AbstractContainerMenu
 
- 
getResultSlotIndexpublic int getResultSlotIndex()- Specified by:
- getResultSlotIndexin class- RecipeBookMenu<CraftingContainer>
 
- 
getGridWidthpublic int getGridWidth()- Specified by:
- getGridWidthin class- RecipeBookMenu<CraftingContainer>
 
- 
getGridHeightpublic int getGridHeight()- Specified by:
- getGridHeightin class- RecipeBookMenu<CraftingContainer>
 
- 
getSizepublic int getSize()- Specified by:
- getSizein class- RecipeBookMenu<CraftingContainer>
 
- 
getCraftSlots
- 
getRecipeBookType- Specified by:
- getRecipeBookTypein class- RecipeBookMenu<CraftingContainer>
 
- 
shouldMoveToInventorypublic boolean shouldMoveToInventory(int p_150591_) - Specified by:
- shouldMoveToInventoryin class- RecipeBookMenu<CraftingContainer>
 
 
-