Class AbstractCraftingGridContainerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
com.refinedmods.refinedstorage.common.support.containermenu.AbstractResourceContainerMenu
com.refinedmods.refinedstorage.common.grid.AbstractGridContainerMenu
com.refinedmods.refinedstorage.common.grid.AbstractCraftingGridContainerMenu
- All Implemented Interfaces:
PreviewProvider
,GridWatcher
,GridExtractionStrategy
,GridInsertionStrategy
,GridScrollingStrategy
,ScreenSizeListener
- Direct Known Subclasses:
CraftingGridContainerMenu
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.common.grid.AbstractGridContainerMenu
playerInventory
Fields inherited from class com.refinedmods.refinedstorage.common.support.containermenu.AbstractResourceContainerMenu
player
Fields inherited from class com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
disabledSlot, transferManager
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
ModifierConstructorDescriptionprotected
AbstractCraftingGridContainerMenu
(net.minecraft.world.inventory.MenuType<? extends AbstractGridContainerMenu> menuType, int syncId, net.minecraft.world.entity.player.Inventory playerInventory, CraftingGrid craftingGrid) protected
AbstractCraftingGridContainerMenu
(net.minecraft.world.inventory.MenuType<? extends AbstractGridContainerMenu> menuType, int syncId, net.minecraft.world.entity.player.Inventory playerInventory, GridData gridData) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canTakeItemForPickAll
(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) void
clear
(boolean toPlayerInventory) void
List
<net.minecraft.world.inventory.Slot> protected ResourceKey
getResourceForAutocraftableHint
(net.minecraft.world.inventory.Slot slot) boolean
isLargeSlot
(net.minecraft.world.inventory.Slot slot) void
onActiveChanged
(boolean newActive) Called when the activeness state of the grid has changed.net.minecraft.world.item.ItemStack
quickMoveStack
(net.minecraft.world.entity.player.Player actor, int slotIndex) void
resized
(int playerInventoryY, int topYStart, int topYEnd) void
setActivenessListener
(Consumer<Boolean> activenessListener) void
void
transferRecipe
(List<List<ItemResource>> recipe) Methods inherited from class com.refinedmods.refinedstorage.common.grid.AbstractGridContainerMenu
canTransferSlot, getAutocraftableResourceHint, getPreview, getResourceType, getSortingDirection, getSortingType, getSynchronizer, getView, getViewType, invalidate, isActive, onChanged, onClear, onExtract, onInsert, onResourceUpdate, onScroll, onTransfer, removed, setSearchBox, setSortingDirection, setSortingType, setViewType, startTask, toggleResourceType, toggleSynchronizer
Methods inherited from class com.refinedmods.refinedstorage.common.support.containermenu.AbstractResourceContainerMenu
addSlot, addToResourceSlotIfNotExisting, areAllResourceSlotsEmpty, broadcastChanges, clicked, getResourceSlots, handleResourceFilterSlotUpdate, handleResourceSlotAmountChange, handleResourceSlotChange, handleResourceSlotUpdate, resetSlots, sendResourceSlotChange
Methods inherited from class com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
addPlayerInventory, addPlayerInventory, getProperty, handleFilterSlotChange, hasProperty, receivePropertyChangeFromClient, registerProperty, stillValid
Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlotListener, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, 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, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Constructor Details
-
AbstractCraftingGridContainerMenu
protected AbstractCraftingGridContainerMenu(net.minecraft.world.inventory.MenuType<? extends AbstractGridContainerMenu> menuType, int syncId, net.minecraft.world.entity.player.Inventory playerInventory, GridData gridData) -
AbstractCraftingGridContainerMenu
protected AbstractCraftingGridContainerMenu(net.minecraft.world.inventory.MenuType<? extends AbstractGridContainerMenu> menuType, int syncId, net.minecraft.world.entity.player.Inventory playerInventory, CraftingGrid craftingGrid)
-
-
Method Details
-
setActivenessListener
-
onActiveChanged
public void onActiveChanged(boolean newActive) Description copied from interface:GridWatcher
Called when the activeness state of the grid has changed.- Specified by:
onActiveChanged
in interfaceGridWatcher
- Overrides:
onActiveChanged
in classAbstractGridContainerMenu
- Parameters:
newActive
- the new activeness state
-
canTakeItemForPickAll
public boolean canTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) - Overrides:
canTakeItemForPickAll
in classAbstractResourceContainerMenu
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player actor, int slotIndex) - Overrides:
quickMoveStack
in classAbstractGridContainerMenu
-
resized
public void resized(int playerInventoryY, int topYStart, int topYEnd) - Specified by:
resized
in interfaceScreenSizeListener
- Overrides:
resized
in classAbstractGridContainerMenu
-
getCraftingMatrixSlots
-
clear
public void clear(boolean toPlayerInventory) -
getAvailableListForRecipeTransfer
-
transferRecipe
-
filterBasedOnCraftingMatrixItems
public void filterBasedOnCraftingMatrixItems() -
stopFilteringBasedOnCraftingMatrixItems
public void stopFilteringBasedOnCraftingMatrixItems() -
getResourceForAutocraftableHint
@Nullable protected ResourceKey getResourceForAutocraftableHint(net.minecraft.world.inventory.Slot slot) - Overrides:
getResourceForAutocraftableHint
in classAbstractGridContainerMenu
-
isLargeSlot
public boolean isLargeSlot(net.minecraft.world.inventory.Slot slot) - Overrides:
isLargeSlot
in classAbstractGridContainerMenu
-