Class RedstoneProgrammerMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.simibubi.create.foundation.gui.menu.MenuBase<RedstoneProgram>
com.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
com.petrolpark.compat.create.common.redstone.programmer.RedstoneProgrammerMenu
All Implemented Interfaces:
com.simibubi.create.foundation.gui.menu.IClearableMenu

public class RedstoneProgrammerMenu extends com.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final 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, containerListeners, lastSlots, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, remoteSlots, SLOT_CLICKED_OUTSIDE, slots
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RedstoneProgrammerMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, RedstoneProgram contentHolder)
     
     
    RedstoneProgrammerMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected boolean
     
    boolean
    canDragTo(net.minecraft.world.inventory.Slot slotIn)
     
    void
    clicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player)
     
    create(int id, net.minecraft.world.entity.player.Inventory inv, RedstoneProgram program)
     
    protected net.neoforged.neoforge.items.ItemStackHandler
     
    protected RedstoneProgram
    createOnClient(net.minecraft.network.RegistryFriendlyByteBuf extraData)
     
    static int
     
    static void
    onPlayerTick(net.neoforged.neoforge.event.tick.PlayerTickEvent.Post event)
     
    void
     
    void
    refreshSlots(int offset)
     
    protected void
    saveData(RedstoneProgram contentHolder)
     
    void
     

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

    canTakeItemForPickAll, clearContents, initAndReadInventory, moveItemStackTo, quickMoveStack

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

    addPlayerSlots, createPlayerSlot, init, removed, stillValid

    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

    • SCREEN_ITEM_AREA_X

      public static final int SCREEN_ITEM_AREA_X
      See Also:
    • SCREEN_ITEM_AREA_Y

      public static final int SCREEN_ITEM_AREA_Y
      See Also:
    • SCREEN_ITEM_AREA_WIDTH

      public static final int SCREEN_ITEM_AREA_WIDTH
      See Also:
    • SCREEN_ITEM_AREA_HEIGHT

      public static final int SCREEN_ITEM_AREA_HEIGHT
      See Also:
    • SCREEN_DISTANCE_BETWEEN_CHANNELS

      public static final int SCREEN_DISTANCE_BETWEEN_CHANNELS
      See Also:
  • Constructor Details

    • RedstoneProgrammerMenu

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

      protected RedstoneProgrammerMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, RedstoneProgram contentHolder)
  • Method Details

    • create

      public static RedstoneProgrammerMenu create(int id, net.minecraft.world.entity.player.Inventory inv, RedstoneProgram program)
    • createOnClient

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

      protected net.neoforged.neoforge.items.ItemStackHandler createGhostInventory()
      Specified by:
      createGhostInventory in class com.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
    • allowRepeats

      protected boolean allowRepeats()
      Specified by:
      allowRepeats in class com.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
    • canDragTo

      public boolean canDragTo(net.minecraft.world.inventory.Slot slotIn)
      Overrides:
      canDragTo in class com.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
    • addSlots

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

      public void refreshSlots()
    • refreshSlots

      public void refreshSlots(int offset)
    • clicked

      public void clicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player)
      Overrides:
      clicked in class com.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
    • sync

      public void sync()
    • saveData

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

      public static int maxSlots(RedstoneProgram program)
    • onPlayerTick

      public static void onPlayerTick(net.neoforged.neoforge.event.tick.PlayerTickEvent.Post event)