Class TelescopeMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>
com.lightning.northstar.block.tech.telescope.TelescopeMenu

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

    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
    TelescopeMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, TelescopeBlockEntity contentHolder)
     
    TelescopeMenu(net.minecraft.world.inventory.MenuType<?> 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 inventory, TelescopeBlockEntity data)
     
    createOnClient(net.minecraft.network.RegistryFriendlyByteBuf extraData)
     
    protected void
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
     
    protected void
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     

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

    addPlayerSlots, createPlayerSlot, init, removed

    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
  • Constructor Details

    • TelescopeMenu

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

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

    • create

      public static TelescopeMenu create(int id, net.minecraft.world.entity.player.Inventory inventory, TelescopeBlockEntity data)
    • createOnClient

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

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

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

      protected void saveData(TelescopeBlockEntity contentHolder)
      Specified by:
      saveData in class com.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>
    • 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
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Overrides:
      stillValid in class com.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>