Package net.minecraft.world.inventory
Class StonecutterMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.StonecutterMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContainerLevelAccessfinal Containerprivate ItemStackstatic final int(package private) final Slotprivate static final intprivate static final int(package private) longprivate final Levelprivate List<RecipeHolder<StonecutterRecipe>> static final int(package private) final ResultContainer(package private) final Slotprivate final DataSlot(package private) Runnableprivate static final intprivate static final intFields 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
ConstructorsConstructorDescriptionStonecutterMenu(int p_40294_, Inventory p_40295_) StonecutterMenu(int p_40297_, Inventory p_40298_, ContainerLevelAccess p_40299_) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTakeItemForPickAll(ItemStack p_40321_, Slot p_40322_) booleanclickMenuButton(Player p_40309_, int p_40310_) intintMenuType<?> getType()booleanprivate booleanisValidRecipeIndex(int p_40335_) quickMoveStack(Player p_40328_, int p_40329_) voidregisterUpdateListener(Runnable p_40324_) voidprivate voidsetupRecipeList(Container p_40304_, ItemStack p_40305_) (package private) voidvoidslotsChanged(Container p_40302_) booleanstillValid(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:
stillValidin classAbstractContainerMenu
-
clickMenuButton
- Overrides:
clickMenuButtonin classAbstractContainerMenu
-
isValidRecipeIndex
private boolean isValidRecipeIndex(int p_40335_) -
slotsChanged
- Overrides:
slotsChangedin classAbstractContainerMenu
-
setupRecipeList
-
setupResultSlot
void setupResultSlot() -
getType
- Overrides:
getTypein classAbstractContainerMenu
-
registerUpdateListener
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAllin classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStackin classAbstractContainerMenu
-
removed
- Overrides:
removedin classAbstractContainerMenu
-