Class GridContainerMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.refinedmods.refinedstorage.container.BaseContainerMenu
com.refinedmods.refinedstorage.container.GridContainerMenu
All Implemented Interfaces:
ICraftingGridListener

public class GridContainerMenu extends BaseContainerMenu implements 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

    Constructors
    Constructor
    Description
    GridContainerMenu(IGrid grid, BaseBlockEntity blockEntity, net.minecraft.world.entity.player.Player player, int windowId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    canTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot)
     
    int
     
     
     
    void
     
    void
    Called when the crafting matrix was changed.
    void
    removed(net.minecraft.world.entity.player.Player player)
     
    void
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GridContainerMenu

      public GridContainerMenu(IGrid grid, @Nullable BaseBlockEntity blockEntity, net.minecraft.world.entity.player.Player player, int windowId)
  • Method Details

    • getScreenInfoProvider

      public IScreenInfoProvider getScreenInfoProvider()
    • setScreenInfoProvider

      public void setScreenInfoProvider(IScreenInfoProvider screenInfoProvider)
    • initSlots

      public void initSlots()
    • getGrid

      public IGrid 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 interface ICraftingGridListener
    • broadcastChanges

      public void broadcastChanges()
      Overrides:
      broadcastChanges in class BaseContainerMenu
    • removed

      public void removed(net.minecraft.world.entity.player.Player player)
      Overrides:
      removed in class BaseContainerMenu
    • canTakeItemForPickAll

      public boolean canTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot)
      Overrides:
      canTakeItemForPickAll in class BaseContainerMenu
    • getDisabledSlotNumber

      public int getDisabledSlotNumber()
      Overrides:
      getDisabledSlotNumber in class BaseContainerMenu
    • updatePatternSlotPositions

      public void updatePatternSlotPositions(int newOffset)