Class ScheduleMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.simibubi.create.foundation.gui.menu.MenuBase<net.minecraft.world.item.ItemStack>
com.simibubi.create.foundation.gui.menu.GhostItemMenu<net.minecraft.world.item.ItemStack>
com.simibubi.create.foundation.gui.menu.HeldItemGhostItemMenu
com.simibubi.create.content.trains.schedule.ScheduleMenu
All Implemented Interfaces:
IClearableMenu

public class ScheduleMenu extends HeldItemGhostItemMenu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
     
    int
     

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

    ghostInventory

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

    Constructors
    Constructor
    Description
    ScheduleMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf extraData)
     
    ScheduleMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.item.ItemStack contentHolder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected boolean
     
    protected net.neoforged.neoforge.items.ItemStackHandler
     
    protected net.minecraft.world.inventory.Slot
    createPlayerSlot(net.minecraft.world.entity.player.Inventory inventory, int index, int x, int y)
     
    protected void
    saveData(net.minecraft.world.item.ItemStack contentHolder)
     

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

    canTakeItemForPickAll, clicked, createOnClient, isInSlot, stillValid

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

    canDragTo, clearContents, initAndReadInventory, moveItemStackTo, quickMoveStack

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

    addPlayerSlots, init, removed

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

    addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, 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

    Methods inherited from interface com.simibubi.create.foundation.gui.menu.IClearableMenu

    sendClearPacket
  • Field Details

    • slotsActive

      public boolean slotsActive
    • targetSlotsActive

      public int targetSlotsActive
  • Constructor Details

    • ScheduleMenu

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

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

    • createGhostInventory

      protected net.neoforged.neoforge.items.ItemStackHandler createGhostInventory()
      Specified by:
      createGhostInventory in class GhostItemMenu<net.minecraft.world.item.ItemStack>
    • allowRepeats

      protected boolean allowRepeats()
      Specified by:
      allowRepeats in class GhostItemMenu<net.minecraft.world.item.ItemStack>
    • addSlots

      protected void addSlots()
      Specified by:
      addSlots in class MenuBase<net.minecraft.world.item.ItemStack>
    • createPlayerSlot

      protected net.minecraft.world.inventory.Slot createPlayerSlot(net.minecraft.world.entity.player.Inventory inventory, int index, int x, int y)
      Overrides:
      createPlayerSlot in class MenuBase<net.minecraft.world.item.ItemStack>
    • saveData

      protected void saveData(net.minecraft.world.item.ItemStack contentHolder)
      Specified by:
      saveData in class MenuBase<net.minecraft.world.item.ItemStack>