Class GrindstoneMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.GrindstoneMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContainerLevelAccessstatic final intstatic final intprivate static final intprivate static final intstatic final intprivate final Containerstatic final intprivate final Containerprivate static final intprivate static final intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionGrindstoneMenu(int containerId, Inventory inventory) GrindstoneMenu(int containerId, Inventory inventory, ContainerLevelAccess access) -
Method Summary
Modifier and TypeMethodDescriptionprivate ItemStackcomputeResult(ItemStack input, ItemStack additional) private voidprivate voidmergeEnchantsFrom(ItemStack target, ItemStack source) private ItemStackmergeItems(ItemStack input, ItemStack additional) quickMoveStack(Player player, int slotIndex) voidprivate ItemStackremoveNonCursesFrom(ItemStack item) voidslotsChanged(Container container) booleanstillValid(Player player) Methods inherited from class AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
-
INPUT_SLOT
public static final int INPUT_SLOT- See Also:
-
ADDITIONAL_SLOT
public static final int ADDITIONAL_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:
-
resultSlots
-
repairSlots
-
access
-
xp
private int xp
-
-
Constructor Details
-
GrindstoneMenu
-
GrindstoneMenu
-
-
Method Details
-
slotsChanged
- Overrides:
slotsChangedin classAbstractContainerMenu
-
createResult
private void createResult() -
computeResult
-
mergeItems
-
mergeEnchantsFrom
-
removeNonCursesFrom
-
removed
- Overrides:
removedin classAbstractContainerMenu
-
stillValid
- Specified by:
stillValidin classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStackin classAbstractContainerMenu
-