类 RecipeBookTestMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu
net.neoforged.neoforge.oldtest.recipebook.RecipeBookTestMenu
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.inventory.RecipeBookMenu
RecipeBookMenu.PostPlaceAction
-
字段概要
字段修饰符和类型字段说明private final ContainerLevelAccess
private final RecipeBookExtensionTest.RecipeBookTestContainer
(专用程序包) static final int
(专用程序包) static final int
private static final int
private static final int
private static final int
private boolean
private final Player
(专用程序包) static final int
private final ResultContainer
(专用程序包) final Slot
从类继承的字段 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, SLOT_SIZE, slots, SLOTS_PER_ROW
-
构造器概要
构造器构造器说明RecipeBookTestMenu
(int id, Inventory inv, FriendlyByteBuf extraData) RecipeBookTestMenu
(int id, Inventory inv, ContainerLevelAccess access) -
方法概要
修饰符和类型方法说明boolean
canTakeItemForPickAll
(ItemStack stack, Slot slot) void
handlePlacement
(boolean p_40119_, boolean p_362739_, RecipeHolder<?> rawHolder, ServerLevel serverLevel, Inventory inventory) quickMoveStack
(Player player, int idx) Mostly copied fromCraftingMenu.quickMoveStack(net.minecraft.world.entity.player.Player, int)
void
protected static void
slotChangedCraftingGrid
(AbstractContainerMenu p_150547_, ServerLevel p_379963_, Player p_150549_, RecipeBookExtensionTest.RecipeBookTestContainer p_150550_, ResultContainer p_150551_, @Nullable RecipeHolder<RecipeBookTestRecipe> p_345124_) void
slotsChanged
(Container container) boolean
stillValid
(Player player) 从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
字段详细资料
-
container
-
resultContainer
-
resultSlot
-
access
-
player
-
placingRecipe
private boolean placingRecipe -
RESULT_SLOT
static final int RESULT_SLOT- 另请参阅:
-
CRAFTING_START
static final int CRAFTING_START- 另请参阅:
-
CRAFTING_STOP
static final int CRAFTING_STOP- 另请参阅:
-
INVENTORY_START
private static final int INVENTORY_START- 另请参阅:
-
INVENTORY_STOP
private static final int INVENTORY_STOP- 另请参阅:
-
HOTBAR_START
private static final int HOTBAR_START- 另请参阅:
-
-
构造器详细资料
-
RecipeBookTestMenu
-
RecipeBookTestMenu
-
-
方法详细资料
-
slotChangedCraftingGrid
protected static void slotChangedCraftingGrid(AbstractContainerMenu p_150547_, ServerLevel p_379963_, Player p_150549_, RecipeBookExtensionTest.RecipeBookTestContainer p_150550_, ResultContainer p_150551_, @Nullable @Nullable RecipeHolder<RecipeBookTestRecipe> p_345124_) -
stillValid
- 指定者:
stillValid
在类中AbstractContainerMenu
-
removed
- 覆盖:
removed
在类中AbstractContainerMenu
-
canTakeItemForPickAll
-
slotsChanged
- 覆盖:
slotsChanged
在类中AbstractContainerMenu
-
quickMoveStack
Mostly copied fromCraftingMenu.quickMoveStack(net.minecraft.world.entity.player.Player, int)
- 指定者:
quickMoveStack
在类中AbstractContainerMenu
-
fillCraftSlotsStackedContents
-
getGridSlots
-
handlePlacement
public RecipeBookMenu.PostPlaceAction handlePlacement(boolean p_40119_, boolean p_362739_, RecipeHolder<?> rawHolder, ServerLevel serverLevel, Inventory inventory) - 指定者:
handlePlacement
在类中RecipeBookMenu
-
getRecipeBookType
- 指定者:
getRecipeBookType
在类中RecipeBookMenu
-