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 final ContainerLevelAccess
final Container
private ItemStack
static final int
(package private) final Slot
private static final int
private static final int
(package private) long
private final Level
private List
<RecipeHolder<StonecutterRecipe>> static final int
(package private) final ResultContainer
(package private) final Slot
private final DataSlot
(package private) Runnable
private static final int
private 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
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, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, 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:
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
-
INV_SLOT_START
private static final int INV_SLOT_START- See Also:
-
INV_SLOT_END
private static final int INV_SLOT_END- See Also:
-
USE_ROW_SLOT_START
private static final int USE_ROW_SLOT_START- See Also:
-
USE_ROW_SLOT_END
private static final int USE_ROW_SLOT_END- See Also:
-
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
- Specified by:
quickMoveStack
in classAbstractContainerMenu
-
removed
- Overrides:
removed
in classAbstractContainerMenu
-