Class CraftingGridContainerMenu

All Implemented Interfaces:
GridWatcher, GridExtractionStrategy, GridInsertionStrategy, GridScrollingStrategy, ScreenSizeListener

public class CraftingGridContainerMenu extends AbstractGridContainerMenu
  • Constructor Details

    • CraftingGridContainerMenu

      public CraftingGridContainerMenu(int syncId, net.minecraft.world.entity.player.Inventory playerInventory, GridData gridData)
  • Method Details

    • setActivenessListener

      public void setActivenessListener(@Nullable Consumer<Boolean> activenessListener)
    • 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 interface GridWatcher
      Overrides:
      onActiveChanged in class AbstractGridContainerMenu
      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 class AbstractResourceContainerMenu
    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player actor, int slotIndex)
      Overrides:
      quickMoveStack in class AbstractGridContainerMenu
    • onScreenReady

      public void onScreenReady(int playerInventoryY)
      Specified by:
      onScreenReady in interface ScreenSizeListener
      Overrides:
      onScreenReady in class AbstractGridContainerMenu
    • getCraftingMatrixSlots

      public List<net.minecraft.world.inventory.Slot> getCraftingMatrixSlots()
    • clear

      public void clear(boolean toPlayerInventory)
    • getAvailableListForRecipeTransfer

      @API(status=INTERNAL) public ResourceList getAvailableListForRecipeTransfer()
    • transferRecipe

      public void transferRecipe(List<List<ItemResource>> recipe)
    • filterBasedOnCraftingMatrixItems

      public void filterBasedOnCraftingMatrixItems()
    • stopFilteringBasedOnCraftingMatrixItems

      public void stopFilteringBasedOnCraftingMatrixItems()