Class StarForgeMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
tech.anonymoushacker1279.immersiveweapons.menu.StarForgeMenu

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

    Fields
    Modifier and Type
    Field
    Description
     
    final net.minecraft.world.Container
     
    final net.minecraft.world.inventory.ContainerData
     
    final net.minecraft.world.inventory.Slot
     
    final net.minecraft.world.entity.player.Player
     
    final net.minecraft.world.inventory.Slot
     

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

    Constructors
    Constructor
    Description
    StarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, List<net.minecraft.resources.ResourceLocation> availableRecipeLocations)
     
    StarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container, net.minecraft.world.inventory.ContainerData containerData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    int
     
    boolean
     
    static void
    populateAvailableRecipes(List<net.minecraft.resources.ResourceLocation> recipeLocations, net.minecraft.world.level.Level level, List<StarForgeRecipe> availableRecipes)
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
     
    void
    removed(net.minecraft.world.entity.player.Player player)
     
    void
    setMenuSelectionIndex(int index, boolean beginCrafting)
     
    void
    slotsChanged(net.minecraft.world.Container container)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player pPlayer)
     
    static void
    updateServer(net.minecraft.server.level.ServerPlayer player, int containerId, int menuSelectionIndex, boolean beginCrafting)
     

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

    addDataSlot, addDataSlots, addSlot, addSlotListener, 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, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class java.lang.Object

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

    • container

      public final net.minecraft.world.Container container
    • containerData

      public final net.minecraft.world.inventory.ContainerData containerData
    • player

      public final net.minecraft.world.entity.player.Player player
    • ingotInputSlot

      public final net.minecraft.world.inventory.Slot ingotInputSlot
    • secondaryInputSlot

      public final net.minecraft.world.inventory.Slot secondaryInputSlot
    • availableRecipes

      public List<StarForgeRecipe> availableRecipes
  • Constructor Details

    • StarForgeMenu

      public StarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, List<net.minecraft.resources.ResourceLocation> availableRecipeLocations)
    • StarForgeMenu

      public StarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container, net.minecraft.world.inventory.ContainerData containerData)
  • Method Details

    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • slotsChanged

      public void slotsChanged(net.minecraft.world.Container container)
      Overrides:
      slotsChanged in class net.minecraft.world.inventory.AbstractContainerMenu
    • removed

      public void removed(net.minecraft.world.entity.player.Player player)
      Overrides:
      removed in class net.minecraft.world.inventory.AbstractContainerMenu
    • stillValid

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

      public void setMenuSelectionIndex(int index, boolean beginCrafting)
    • hasSolarEnergy

      public boolean hasSolarEnergy()
    • getTemperature

      public int getTemperature()
    • getSmeltTime

      public int getSmeltTime()
    • getMenuSelectionIndex

      public int getMenuSelectionIndex()
    • populateAvailableRecipes

      public static void populateAvailableRecipes(List<net.minecraft.resources.ResourceLocation> recipeLocations, net.minecraft.world.level.Level level, List<StarForgeRecipe> availableRecipes)
    • updateServer

      public static void updateServer(net.minecraft.server.level.ServerPlayer player, int containerId, int menuSelectionIndex, boolean beginCrafting)