Class SolarCookerContainer

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
de.cech12.solarcooker.inventory.SolarCookerContainer

public class SolarCookerContainer extends net.minecraft.world.inventory.AbstractContainerMenu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.level.Level
     

    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, SLOT_SIZE, slots, SLOTS_PER_ROW
  • Constructor Summary

    Constructors
    Constructor
    Description
    SolarCookerContainer(net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> specificRecipeTypeIn, int id, net.minecraft.world.entity.player.Inventory playerInventoryIn)
     
    SolarCookerContainer(net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> specificRecipeTypeIn, int id, net.minecraft.world.entity.player.Inventory playerInventoryIn, net.minecraft.world.Container cooker, net.minecraft.world.inventory.ContainerData data)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.Container
     
    int
     
    protected boolean
    hasRecipe(net.minecraft.world.item.ItemStack stack)
     
    boolean
     
    boolean
     
    @NotNull net.minecraft.world.item.ItemStack
    quickMoveStack(@NotNull net.minecraft.world.entity.player.Player playerIn, int index)
    Handle when the stack in slot index is shift-clicked.
    void
    removed(@NotNull net.minecraft.world.entity.player.Player playerIn)
    Called when the container is closed.
    void
    setItem(int slotID, int stateId, @NotNull net.minecraft.world.item.ItemStack stack)
     
    boolean
    stillValid(@NotNull net.minecraft.world.entity.player.Player playerIn)
     

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

    addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, 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, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class Object

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

    • level

      protected final net.minecraft.world.level.Level level
  • Constructor Details

    • SolarCookerContainer

      public SolarCookerContainer(net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> specificRecipeTypeIn, int id, net.minecraft.world.entity.player.Inventory playerInventoryIn, net.minecraft.world.Container cooker, net.minecraft.world.inventory.ContainerData data)
    • SolarCookerContainer

      public SolarCookerContainer(net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> specificRecipeTypeIn, int id, net.minecraft.world.entity.player.Inventory playerInventoryIn)
  • Method Details

    • stillValid

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

      @NotNull public @NotNull net.minecraft.world.item.ItemStack quickMoveStack(@NotNull @NotNull net.minecraft.world.entity.player.Player playerIn, int index)
      Handle when the stack in slot index is shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • setItem

      public void setItem(int slotID, int stateId, @NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      setItem in class net.minecraft.world.inventory.AbstractContainerMenu
    • hasRecipe

      protected boolean hasRecipe(net.minecraft.world.item.ItemStack stack)
    • removed

      public void removed(@NotNull @NotNull net.minecraft.world.entity.player.Player playerIn)
      Called when the container is closed.
      Overrides:
      removed in class net.minecraft.world.inventory.AbstractContainerMenu
    • getCookProgressionScaled

      public int getCookProgressionScaled()
    • isBurning

      public boolean isBurning()
    • isSunlit

      public boolean isSunlit()
    • getContainer

      public net.minecraft.world.Container getContainer()