Class GridContainerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.refinedmods.refinedstorage.container.BaseContainerMenu
com.refinedmods.refinedstorage.container.GridContainerMenu
- All Implemented Interfaces:
ICraftingGridListener
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.container.BaseContainerMenu
transferManager
Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, containerListeners, lastSlots, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
-
Constructor Summary
ConstructorDescriptionGridContainerMenu
(IGrid grid, BaseBlockEntity blockEntity, net.minecraft.world.entity.player.Player player, int windowId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
canTakeItemForPickAll
(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) int
getGrid()
void
void
Called when the crafting matrix was changed.void
removed
(net.minecraft.world.entity.player.Player player) void
setScreenInfoProvider
(IScreenInfoProvider screenInfoProvider) void
updatePatternSlotPositions
(int newOffset) Methods inherited from class com.refinedmods.refinedstorage.container.BaseContainerMenu
addPlayerInventory, addSlot, clicked, getBlockEntity, getFluidSlots, getPlayer, quickMoveStack, 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
-
GridContainerMenu
public GridContainerMenu(IGrid grid, @Nullable BaseBlockEntity blockEntity, net.minecraft.world.entity.player.Player player, int windowId)
-
-
Method Details
-
getScreenInfoProvider
-
setScreenInfoProvider
-
initSlots
public void initSlots() -
getGrid
-
onCraftingMatrixChanged
public void onCraftingMatrixChanged()Description copied from interface:ICraftingGridListener
Called when the crafting matrix was changed. Usually you'd send slot updates for the crafting slots (and output slot) here, so that all clients get an actual view. This listener exists so the crafting result slot is only calculated on the server.- Specified by:
onCraftingMatrixChanged
in interfaceICraftingGridListener
-
broadcastChanges
public void broadcastChanges()- Overrides:
broadcastChanges
in classBaseContainerMenu
-
removed
public void removed(net.minecraft.world.entity.player.Player player) - Overrides:
removed
in classBaseContainerMenu
-
canTakeItemForPickAll
public boolean canTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot) - Overrides:
canTakeItemForPickAll
in classBaseContainerMenu
-
getDisabledSlotNumber
public int getDisabledSlotNumber()- Overrides:
getDisabledSlotNumber
in classBaseContainerMenu
-
updatePatternSlotPositions
public void updatePatternSlotPositions(int newOffset)
-