java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
com.pixelmonmod.pixelmon.client.gui.machines.infuser.InfuserContainer

public class InfuserContainer extends net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    CARRIED_SLOT_SIZE, containerId, containerListeners, 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
    InfuserContainer(int windowId, net.minecraft.world.entity.player.Inventory inventoryPlayer, InfuserTileEntity tileInfuser)
     
    InfuserContainer(int windowId, net.minecraft.world.entity.player.Inventory inventoryPlayer, net.minecraft.network.FriendlyByteBuf buffer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Looks for changes made in the container, sends them to every listener.
    void
     
    void
    fillCraftSlotsStackedContents(net.minecraft.world.entity.player.StackedContents stackedContents)
     
    int
     
    int
     
    List<net.minecraft.client.RecipeBookCategories>
     
    net.minecraft.world.inventory.RecipeBookType
     
    int
     
    int
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int slotIndex)
    Called when a player shift-clicks on a slot.
    boolean
    recipeMatches(net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>> recipeHolder)
     
    void
    setData(int p_75137_1_, int p_75137_2_)
     
    boolean
    shouldMoveToInventory(int p_150635_)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     

    Methods inherited from class net.minecraft.world.inventory.RecipeBookMenu

    handlePlacement

    Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    addDataSlot, addDataSlots, addSlot, addSlotListener, 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, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, 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
  • Field Details

  • Constructor Details

    • InfuserContainer

      public InfuserContainer(int windowId, net.minecraft.world.entity.player.Inventory inventoryPlayer, InfuserTileEntity tileInfuser)
    • InfuserContainer

      public InfuserContainer(int windowId, net.minecraft.world.entity.player.Inventory inventoryPlayer, net.minecraft.network.FriendlyByteBuf buffer)
  • Method Details

    • broadcastChanges

      public void broadcastChanges()
      Looks for changes made in the container, sends them to every listener.
      Overrides:
      broadcastChanges in class net.minecraft.world.inventory.AbstractContainerMenu
    • setData

      public void setData(int p_75137_1_, int p_75137_2_)
      Overrides:
      setData in class net.minecraft.world.inventory.AbstractContainerMenu
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in class net.minecraft.world.inventory.AbstractContainerMenu
    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int slotIndex)
      Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • fillCraftSlotsStackedContents

      public void fillCraftSlotsStackedContents(net.minecraft.world.entity.player.StackedContents stackedContents)
      Specified by:
      fillCraftSlotsStackedContents in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
    • clearCraftingContent

      public void clearCraftingContent()
      Specified by:
      clearCraftingContent in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
    • recipeMatches

      public boolean recipeMatches(net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>> recipeHolder)
      Specified by:
      recipeMatches in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
    • getResultSlotIndex

      public int getResultSlotIndex()
      Specified by:
      getResultSlotIndex in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
    • getGridWidth

      public int getGridWidth()
      Specified by:
      getGridWidth in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
    • getGridHeight

      public int getGridHeight()
      Specified by:
      getGridHeight in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
    • getSize

      public int getSize()
      Specified by:
      getSize in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
    • getRecipeBookType

      public net.minecraft.world.inventory.RecipeBookType getRecipeBookType()
      Specified by:
      getRecipeBookType in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
    • shouldMoveToInventory

      public boolean shouldMoveToInventory(int p_150635_)
      Specified by:
      shouldMoveToInventory in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
    • getRecipeBookCategories

      public List<net.minecraft.client.RecipeBookCategories> getRecipeBookCategories()
      Overrides:
      getRecipeBookCategories in class net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>