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 ContainerLevelAccessprivate ItemStackstatic int(package private) Slotprivate static intprivate static int(package private) longprivate Levelprivate List<StonecutterRecipe>static int(package private) ResultContainer(package private) Slotprivate DataSlot(package private) Runnableprivate static intprivate static 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, 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:
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
- Overrides:
quickMoveStackin classAbstractContainerMenu
-
removed
- Overrides:
removedin classAbstractContainerMenu
-