类 InventoryMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<CraftingContainer>
net.minecraft.world.inventory.InventoryMenu
-
字段概要
字段修饰符和类型字段说明final boolean
static final int
static final int
static final ResourceLocation
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[]
(专用程序包) static final ResourceLocation[]
static final int
static final int
从类继承的字段 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) void
void
fillCraftSlotsStackedContents
(StackedContents pItemHelper) int
int
int
int
getSize()
static boolean
isHotbarSlot
(int pIndex) (专用程序包) static void
onEquipItem
(Player pPlayer, EquipmentSlot pSlot, ItemStack pNewItem, ItemStack pOldItem) quickMoveStack
(Player pPlayer, int pIndex) boolean
recipeMatches
(Recipe<? super CraftingContainer> pRecipe) void
boolean
shouldMoveToInventory
(int pSlotIndex) void
slotsChanged
(Container pInventory) boolean
stillValid
(Player pPlayer) 从类继承的方法 net.minecraft.world.inventory.RecipeBookMenu
getRecipeBookCategories, handlePlacement
从类继承的方法 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
-
字段详细资料
-
CONTAINER_ID
public static final int CONTAINER_ID- 另请参阅:
-
RESULT_SLOT
public static final int RESULT_SLOT- 另请参阅:
-
CRAFT_SLOT_START
public static final int CRAFT_SLOT_START- 另请参阅:
-
CRAFT_SLOT_END
public static final int CRAFT_SLOT_END- 另请参阅:
-
ARMOR_SLOT_START
public static final int ARMOR_SLOT_START- 另请参阅:
-
ARMOR_SLOT_END
public static final int ARMOR_SLOT_END- 另请参阅:
-
INV_SLOT_START
public static final int INV_SLOT_START- 另请参阅:
-
INV_SLOT_END
public static final int INV_SLOT_END- 另请参阅:
-
USE_ROW_SLOT_START
public static final int USE_ROW_SLOT_START- 另请参阅:
-
USE_ROW_SLOT_END
public static final int USE_ROW_SLOT_END- 另请参阅:
-
SHIELD_SLOT
public static final int SHIELD_SLOT- 另请参阅:
-
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
-
-
构造器详细资料
-
InventoryMenu
-
-
方法详细资料
-
onEquipItem
static void onEquipItem(Player pPlayer, EquipmentSlot pSlot, ItemStack pNewItem, ItemStack pOldItem) -
isHotbarSlot
public static boolean isHotbarSlot(int pIndex) -
fillCraftSlotsStackedContents
-
clearCraftingContent
public void clearCraftingContent() -
recipeMatches
- 指定者:
recipeMatches
在类中RecipeBookMenu<CraftingContainer>
-
slotsChanged
- 覆盖:
slotsChanged
在类中AbstractContainerMenu
-
removed
- 覆盖:
removed
在类中AbstractContainerMenu
-
stillValid
- 指定者:
stillValid
在类中AbstractContainerMenu
-
quickMoveStack
- 指定者:
quickMoveStack
在类中AbstractContainerMenu
-
canTakeItemForPickAll
-
getResultSlotIndex
public int getResultSlotIndex() -
getGridWidth
public int getGridWidth()- 指定者:
getGridWidth
在类中RecipeBookMenu<CraftingContainer>
-
getGridHeight
public int getGridHeight()- 指定者:
getGridHeight
在类中RecipeBookMenu<CraftingContainer>
-
getSize
public int getSize()- 指定者:
getSize
在类中RecipeBookMenu<CraftingContainer>
-
getCraftSlots
-
getRecipeBookType
- 指定者:
getRecipeBookType
在类中RecipeBookMenu<CraftingContainer>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int pSlotIndex)
-