Package net.minecraft.world.inventory
Class InventoryMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<CraftingInput,CraftingRecipe>
net.minecraft.world.inventory.InventoryMenu
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
static final int
static final int
static final int
static final ResourceLocation
static final int
static final int
static final int
static final int
private final CraftingContainer
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final int
static final int
private final Player
static final int
private final ResultContainer
static final int
private static final EquipmentSlot[]
private static final Map
<EquipmentSlot, ResourceLocation> static final int
static final int
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canTakeItemForPickAll
(ItemStack p_39716_, Slot p_39717_) void
void
fillCraftSlotsStackedContents
(StackedContents p_39714_) int
int
int
int
getSize()
static boolean
isHotbarSlot
(int p_150593_) quickMoveStack
(Player p_39723_, int p_39724_) boolean
recipeMatches
(RecipeHolder<CraftingRecipe> p_300901_) void
boolean
shouldMoveToInventory
(int p_150591_) void
slotsChanged
(Container p_39710_) boolean
stillValid
(Player p_39712_) Methods inherited from class net.minecraft.world.inventory.RecipeBookMenu
beginPlacingRecipe, finishPlacingRecipe, getRecipeBookCategories, handlePlacement
Methods 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, 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_ID
public static final int CONTAINER_ID- See Also:
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
-
CRAFT_SLOT_START
public static final int CRAFT_SLOT_START- See Also:
-
CRAFT_SLOT_COUNT
public static final int CRAFT_SLOT_COUNT- See Also:
-
CRAFT_SLOT_END
public static final int CRAFT_SLOT_END- See Also:
-
ARMOR_SLOT_START
public static final int ARMOR_SLOT_START- See Also:
-
ARMOR_SLOT_COUNT
public static final int ARMOR_SLOT_COUNT- See Also:
-
ARMOR_SLOT_END
public static final int ARMOR_SLOT_END- See Also:
-
INV_SLOT_START
public static final int INV_SLOT_START- See Also:
-
INV_SLOT_END
public static final int INV_SLOT_END- See Also:
-
USE_ROW_SLOT_START
public static final int USE_ROW_SLOT_START- See Also:
-
USE_ROW_SLOT_END
public static final int USE_ROW_SLOT_END- See Also:
-
SHIELD_SLOT
public 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
-
active
public final boolean active -
owner
-
-
Constructor Details
-
InventoryMenu
-
-
Method Details
-
isHotbarSlot
public static boolean isHotbarSlot(int p_150593_) -
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContents
in classRecipeBookMenu<CraftingInput,
CraftingRecipe>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContent
in classRecipeBookMenu<CraftingInput,
CraftingRecipe>
-
recipeMatches
- Specified by:
recipeMatches
in classRecipeBookMenu<CraftingInput,
CraftingRecipe>
-
slotsChanged
- Overrides:
slotsChanged
in classAbstractContainerMenu
-
removed
- Overrides:
removed
in classAbstractContainerMenu
-
stillValid
- Specified by:
stillValid
in classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStack
in classAbstractContainerMenu
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAll
in classAbstractContainerMenu
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndex
in classRecipeBookMenu<CraftingInput,
CraftingRecipe>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidth
in classRecipeBookMenu<CraftingInput,
CraftingRecipe>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeight
in classRecipeBookMenu<CraftingInput,
CraftingRecipe>
-
getSize
public int getSize()- Specified by:
getSize
in classRecipeBookMenu<CraftingInput,
CraftingRecipe>
-
getCraftSlots
-
getRecipeBookType
- Specified by:
getRecipeBookType
in classRecipeBookMenu<CraftingInput,
CraftingRecipe>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int p_150591_) - Specified by:
shouldMoveToInventory
in classRecipeBookMenu<CraftingInput,
CraftingRecipe>
-