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 Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic intstatic intstatic ResourceLocationstatic intstatic intstatic intprivate CraftingContainerstatic ResourceLocationstatic ResourceLocationstatic ResourceLocationstatic ResourceLocationstatic ResourceLocationstatic intstatic intprivate Playerstatic intprivate ResultContainerstatic intprivate static EquipmentSlot[](package private) static ResourceLocation[]static intstatic intFields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTakeItemForPickAll(ItemStack p_39716_, Slot p_39717_)voidvoidfillCraftSlotsStackedContents(StackedContents p_39714_)intintintintgetSize()static booleanisHotbarSlot(int p_150593_)quickMoveStack(Player p_39723_, int p_39724_)booleanrecipeMatches(Recipe<? super CraftingContainer> p_39719_)voidbooleanshouldMoveToInventory(int p_150591_)voidslotsChanged(Container p_39710_)booleanstillValid(Player p_39712_)Methods inherited from class net.minecraft.world.inventory.RecipeBookMenu
getRecipeBookCategories, handlePlacementMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
CONTAINER_ID
public static final int CONTAINER_ID- See Also:
- Constant Field Values
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
- Constant Field Values
-
CRAFT_SLOT_START
public static final int CRAFT_SLOT_START- See Also:
- Constant Field Values
-
CRAFT_SLOT_END
public static final int CRAFT_SLOT_END- See Also:
- Constant Field Values
-
ARMOR_SLOT_START
public static final int ARMOR_SLOT_START- See Also:
- Constant Field Values
-
ARMOR_SLOT_END
public static final int ARMOR_SLOT_END- See Also:
- Constant Field Values
-
INV_SLOT_START
public static final int INV_SLOT_START- See Also:
- Constant Field Values
-
INV_SLOT_END
public static final int INV_SLOT_END- See Also:
- Constant Field Values
-
USE_ROW_SLOT_START
public static final int USE_ROW_SLOT_START- See Also:
- Constant Field Values
-
USE_ROW_SLOT_END
public static final int USE_ROW_SLOT_END- See Also:
- Constant Field Values
-
SHIELD_SLOT
public static final int SHIELD_SLOT- See Also:
- Constant Field Values
-
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
-
active
public final boolean active -
owner
-
-
Constructor Details
-
InventoryMenu
-
-
Method Details
-
isHotbarSlot
public static boolean isHotbarSlot(int p_150593_) -
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContentsin classRecipeBookMenu<CraftingContainer>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContentin classRecipeBookMenu<CraftingContainer>
-
recipeMatches
- Specified by:
recipeMatchesin classRecipeBookMenu<CraftingContainer>
-
slotsChanged
- Overrides:
slotsChangedin classAbstractContainerMenu
-
removed
- Overrides:
removedin classAbstractContainerMenu
-
stillValid
- Specified by:
stillValidin classAbstractContainerMenu
-
quickMoveStack
- Overrides:
quickMoveStackin classAbstractContainerMenu
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAllin classAbstractContainerMenu
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndexin classRecipeBookMenu<CraftingContainer>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidthin classRecipeBookMenu<CraftingContainer>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeightin classRecipeBookMenu<CraftingContainer>
-
getSize
public int getSize()- Specified by:
getSizein classRecipeBookMenu<CraftingContainer>
-
getCraftSlots
-
getRecipeBookType
- Specified by:
getRecipeBookTypein classRecipeBookMenu<CraftingContainer>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int p_150591_)- Specified by:
shouldMoveToInventoryin classRecipeBookMenu<CraftingContainer>
-