Class AstronomyTableMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
com.lightning.northstar.block.tech.astronomy_table.AstronomyTableMenu

public class AstronomyTableMenu extends com.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.network.chat.Component
     
    protected net.minecraft.world.SimpleContainer
     
    protected net.minecraft.world.inventory.ResultContainer
     

    Fields inherited from class com.simibubi.create.foundation.gui.menu.MenuBase

    contentHolder, player, playerInventory

    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
    AstronomyTableMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, AstronomyTableBlockEntity contentHolder)
     
    AstronomyTableMenu(net.minecraft.world.inventory.MenuType<AstronomyTableMenu> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf extraData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    create(int id, net.minecraft.world.entity.player.Inventory inv, AstronomyTableBlockEntity be)
     
    createOnClient(net.minecraft.network.RegistryFriendlyByteBuf extraData)
     
    protected void
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
     
    void
    removed(net.minecraft.world.entity.player.Player player)
     
    protected void
     
    void
     

    Methods inherited from class com.simibubi.create.foundation.gui.menu.MenuBase

    addPlayerSlots, createPlayerSlot, init, stillValid

    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, slotsChanged, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class java.lang.Object

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

    • errorMessage

      public net.minecraft.network.chat.Component errorMessage
    • inputSlots

      protected net.minecraft.world.SimpleContainer inputSlots
    • resultSlots

      protected net.minecraft.world.inventory.ResultContainer resultSlots
  • Constructor Details

    • AstronomyTableMenu

      public AstronomyTableMenu(net.minecraft.world.inventory.MenuType<AstronomyTableMenu> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf extraData)
    • AstronomyTableMenu

      public AstronomyTableMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, AstronomyTableBlockEntity contentHolder)
  • Method Details

    • create

      public static AstronomyTableMenu create(int id, net.minecraft.world.entity.player.Inventory inv, AstronomyTableBlockEntity be)
    • createOnClient

      protected AstronomyTableBlockEntity createOnClient(net.minecraft.network.RegistryFriendlyByteBuf extraData)
      Specified by:
      createOnClient in class com.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
    • initAndReadInventory

      protected void initAndReadInventory(AstronomyTableBlockEntity contentHolder)
      Specified by:
      initAndReadInventory in class com.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
    • addSlots

      protected void addSlots()
      Specified by:
      addSlots in class com.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
    • saveData

      protected void saveData(AstronomyTableBlockEntity contentHolder)
      Specified by:
      saveData in class com.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
    • removed

      public void removed(net.minecraft.world.entity.player.Player player)
      Overrides:
      removed in class com.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
    • updateResult

      public void updateResult()
    • 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