Package net.minecraft.world.inventory
Class StonecutterMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.StonecutterMenu
-
Field Summary
Modifier and TypeFieldDescriptionprivate ContainerLevelAccess
private ItemStack
static int
(package private) Slot
private static int
private static int
(package private) long
private Level
private List<StonecutterRecipe>
static int
(package private) ResultContainer
(package private) Slot
private DataSlot
(package private) Runnable
private static int
private static 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
ConstructorDescriptionStonecutterMenu(int p_40294_, Inventory p_40295_)
StonecutterMenu(int p_40297_, Inventory p_40298_, ContainerLevelAccess p_40299_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canTakeItemForPickAll(ItemStack p_40321_, Slot p_40322_)
boolean
clickMenuButton(Player p_40309_, int p_40310_)
int
int
MenuType<?>
getType()
boolean
private boolean
isValidRecipeIndex(int p_40335_)
quickMoveStack(Player p_40328_, int p_40329_)
void
registerUpdateListener(Runnable p_40324_)
void
private void
setupRecipeList(Container p_40304_, ItemStack p_40305_)
(package private) void
void
slotsChanged(Container p_40302_)
boolean
stillValid(Player p_40307_)
Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, incrementStateId, initializeContents, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
INPUT_SLOT
public static final int INPUT_SLOT- See Also:
- Constant Field Values
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
- Constant Field Values
-
INV_SLOT_START
private static final int INV_SLOT_START- See Also:
- Constant Field Values
-
INV_SLOT_END
private static final int INV_SLOT_END- See Also:
- Constant Field Values
-
USE_ROW_SLOT_START
private static final int USE_ROW_SLOT_START- See Also:
- Constant Field Values
-
USE_ROW_SLOT_END
private static final int USE_ROW_SLOT_END- See Also:
- Constant Field Values
-
access
-
selectedRecipeIndex
-
level
-
recipes
-
input
-
lastSoundTime
long lastSoundTime -
inputSlot
-
resultSlot
-
slotUpdateListener
Runnable slotUpdateListener -
container
-
resultContainer
-
-
Constructor Details
-
StonecutterMenu
-
StonecutterMenu
-
-
Method Details
-
getSelectedRecipeIndex
public int getSelectedRecipeIndex() -
getRecipes
-
getNumRecipes
public int getNumRecipes() -
hasInputItem
public boolean hasInputItem() -
stillValid
- Specified by:
stillValid
in classAbstractContainerMenu
-
clickMenuButton
- Overrides:
clickMenuButton
in classAbstractContainerMenu
-
isValidRecipeIndex
private boolean isValidRecipeIndex(int p_40335_) -
slotsChanged
- Overrides:
slotsChanged
in classAbstractContainerMenu
-
setupRecipeList
-
setupResultSlot
void setupResultSlot() -
getType
- Overrides:
getType
in classAbstractContainerMenu
-
registerUpdateListener
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAll
in classAbstractContainerMenu
-
quickMoveStack
- Overrides:
quickMoveStack
in classAbstractContainerMenu
-
removed
- Overrides:
removed
in classAbstractContainerMenu
-