Class RecipeBookTestMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
net.minecraftforge.debug.recipe.recipebook.RecipeBookTestMenu
public class RecipeBookTestMenu
extends RecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ContainerLevelAccess
private final RecipeBookExtensionTest.RecipeBookTestContainer
private static final int
private static final int
private static final int
private static final int
private static final int
private final Player
private static final int
private final ResultContainer
private final Slot
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
ConstructorDescriptionRecipeBookTestMenu
(int id, Inventory inv, FriendlyByteBuf extraData) RecipeBookTestMenu
(int id, Inventory inv, ContainerLevelAccess access) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canTakeItemForPickAll
(ItemStack stack, Slot slot) void
void
fillCraftSlotsStackedContents
(StackedContents contents) int
int
int
int
getSize()
quickMoveStack
(Player player, int idx) Mostly copied fromCraftingMenu.quickMoveStack(net.minecraft.world.entity.player.Player, int)
boolean
recipeMatches
(Recipe<? super RecipeBookExtensionTest.RecipeBookTestContainer> recipe) void
boolean
shouldMoveToInventory
(int slotIdx) void
slotsChanged
(Container container) boolean
stillValid
(Player player) Methods inherited from class net.minecraft.world.inventory.RecipeBookMenu
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, getQuickCraftSlotCount, 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
-
resultContainer
-
resultSlot
-
access
-
player
-
RESULT_SLOT
private static final int RESULT_SLOT- See Also:
-
CRAFTING_START
private static final int CRAFTING_START- See Also:
-
CRAFTING_STOP
private static final int CRAFTING_STOP- See Also:
-
INVENTORY_START
private static final int INVENTORY_START- See Also:
-
INVENTORY_STOP
private static final int INVENTORY_STOP- See Also:
-
HOTBAR_START
private static final int HOTBAR_START- See Also:
-
-
Constructor Details
-
RecipeBookTestMenu
-
RecipeBookTestMenu
-
-
Method Details
-
stillValid
- Specified by:
stillValid
in classAbstractContainerMenu
-
removed
- Overrides:
removed
in classAbstractContainerMenu
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAll
in classAbstractContainerMenu
-
slotsChanged
- Overrides:
slotsChanged
in classAbstractContainerMenu
-
quickMoveStack
Mostly copied fromCraftingMenu.quickMoveStack(net.minecraft.world.entity.player.Player, int)
- Specified by:
quickMoveStack
in classAbstractContainerMenu
-
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContents
in classRecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContent
in classRecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-
recipeMatches
public boolean recipeMatches(Recipe<? super RecipeBookExtensionTest.RecipeBookTestContainer> recipe) - Specified by:
recipeMatches
in classRecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndex
in classRecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidth
in classRecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeight
in classRecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getSize
public int getSize()- Specified by:
getSize
in classRecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getRecipeBookType
- Specified by:
getRecipeBookType
in classRecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int slotIdx) - Specified by:
shouldMoveToInventory
in classRecipeBookMenu<RecipeBookExtensionTest.RecipeBookTestContainer>
-