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 intprivate longprivate final Levelstatic final intprivate final ResultContainer(package private) final Slotprivate final DataSlotprivate Runnableprivate static final intprivate static final int -
Constructor Summary
ConstructorsConstructorDescriptionStonecutterMenu(int containerId, Inventory inventory) StonecutterMenu(int containerId, Inventory inventory, ContainerLevelAccess access) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTakeItemForPickAll(ItemStack carried, Slot target) booleanclickMenuButton(Player player, int buttonId) intintMenuType<?> getType()booleanprivate booleanisValidRecipeIndex(int buttonId) quickMoveStack(Player player, int slotIndex) voidregisterUpdateListener(Runnable slotUpdateListener) voidprivate voidsetupRecipeList(ItemStack item) private voidsetupResultSlot(int index) voidslotsChanged(Container container) booleanstillValid(Player player) Methods inherited from class AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, 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
-
recipesForInput
-
input
-
lastSoundTime
private long lastSoundTime -
inputSlot
-
resultSlot
-
slotUpdateListener
-
container
-
resultContainer
-
-
Constructor Details
-
StonecutterMenu
-
StonecutterMenu
-
-
Method Details
-
getSelectedRecipeIndex
public int getSelectedRecipeIndex() -
getVisibleRecipes
-
getNumberOfVisibleRecipes
public int getNumberOfVisibleRecipes() -
hasInputItem
public boolean hasInputItem() -
stillValid
- Specified by:
stillValidin classAbstractContainerMenu
-
clickMenuButton
- Overrides:
clickMenuButtonin classAbstractContainerMenu
-
isValidRecipeIndex
private boolean isValidRecipeIndex(int buttonId) -
slotsChanged
- Overrides:
slotsChangedin classAbstractContainerMenu
-
setupRecipeList
-
setupResultSlot
private void setupResultSlot(int index) -
getType
- Overrides:
getTypein classAbstractContainerMenu
-
registerUpdateListener
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAllin classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStackin classAbstractContainerMenu
-
removed
- Overrides:
removedin classAbstractContainerMenu
-