Class ContainerLogicProgrammerBase

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
org.cyclops.cyclopscore.inventory.container.ContainerExtended
org.cyclops.cyclopscore.inventory.container.InventoryContainer
org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<ILogicProgrammerElement>
org.cyclops.integrateddynamics.inventory.container.ContainerLogicProgrammerBase
All Implemented Interfaces:
org.cyclops.cyclopscore.client.gui.component.WidgetScrollBar.IScrollCallback, org.cyclops.cyclopscore.inventory.container.button.IContainerButtonClickAcceptorServer<org.cyclops.cyclopscore.inventory.container.ContainerExtended>, org.cyclops.cyclopscore.inventory.IValueNotifiable, org.cyclops.cyclopscore.inventory.IValueNotifier, org.cyclops.cyclopscore.persist.IDirtyMarkListener
Direct Known Subclasses:
ContainerLogicProgrammer, ContainerLogicProgrammerPortable

public abstract class ContainerLogicProgrammerBase extends org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<ILogicProgrammerElement> implements org.cyclops.cyclopscore.persist.IDirtyMarkListener
Base container for the logic programmer.
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
    Filter LP elements based on the filter value types.
    protected class 
    Load existing operator data when a variable card is inserted into the write slot

    Nested classes/interfaces inherited from class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer Link icon

    org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer.IItemPredicate<E>
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer.IItemPredicate<ILogicProgrammerElement>
     
    static final int
     
    static final int
     

    Fields inherited from class org.cyclops.cyclopscore.inventory.container.InventoryContainer Link icon

    inventory

    Fields inherited from class org.cyclops.cyclopscore.inventory.container.ContainerExtended Link icon

    ITEMBOX, offsetX, offsetY, player

    Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu Link icon

    CARRIED_SLOT_SIZE, containerId, lastSlots, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, remoteSlots, SLOT_CLICKED_OUTSIDE, SLOT_SIZE, slots, SLOTS_PER_ROW
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    ContainerLogicProgrammerBase(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory playerInventory)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    boolean
     
    void
    clicked(int slotId, int mouseButton, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player)
     
     
    protected static List<ILogicProgrammerElement>
     
     
    net.minecraft.network.chat.Component
     
    int
     
    protected int
     
    net.minecraft.world.Container
     
    boolean
     
    protected void
     
    protected void
     
    protected boolean
     
    protected void
     
    protected void
    loadConfigFrom(net.minecraft.world.item.ItemStack itemStack)
     
    void
     
    void
     
    void
    removed(net.minecraft.world.entity.player.Player player)
     
    void
    setActiveElement(ILogicProgrammerElement activeElement, int baseX, int baseY)
    Set the new active element.
    void
    setActiveElementById(net.minecraft.resources.ResourceLocation typeId, net.minecraft.resources.ResourceLocation elementId)
     
    void
    setElementInventory(ILogicProgrammerElement element, int baseX, int baseY)
    Set the new active element.
    void
     
    protected net.minecraft.world.item.ItemStack
     

    Methods inherited from class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer Link icon

    enableElementAt, filter, getColumns, getFilteredItemCount, getFilteredItems, getFirstElement, getScrollStepSize, getUnfilteredItemCount, getUnfilteredItems, getVisibleElement, isElementVisible, onScroll, refreshFilter, updateFilter

    Methods inherited from class org.cyclops.cyclopscore.inventory.container.InventoryContainer Link icon

    getContainerInventory, stillValid

    Methods inherited from class org.cyclops.cyclopscore.inventory.container.ContainerExtended Link icon

    addInventory, addPlayerInventory, addSlot, addSlotListener, adjustPhantomSlot, broadcastChanges, createNewSlot, fillPhantomSlot, getHolderLookupProvider, getNextValueId, getPlayerIInventory, getSlotRange, getSlotStart, getValue, getValueIds, getValueNotifiableType, initializeValues, moveItemStackTo, onButtonClick, onUpdate, putButtonAction, quickMoveStack, registerSyncedVariable, resetQuickCraft, setGuiValueListener, setSlotPosX, setSlotPosY, setValue

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

    addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addStandardInventorySlots, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, removeSlotListener, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class java.lang.Object Link icon

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

  • Constructor Details Link icon

    • ContainerLogicProgrammerBase Link icon

      public ContainerLogicProgrammerBase(@Nullable net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory playerInventory)
  • Method Details Link icon

    • getElements Link icon

      protected static List<ILogicProgrammerElement> getElements()
    • setGui Link icon

      public void setGui(ContainerScreenLogicProgrammerBase gui)
    • getGui Link icon

    • initializeSlotsPre Link icon

      protected void initializeSlotsPre()
    • initializeSlotsPost Link icon

      protected void initializeSlotsPost()
    • getPageSize Link icon

      public int getPageSize()
      Specified by:
      getPageSize in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<ILogicProgrammerElement>
    • isAssertInventorySize Link icon

      protected boolean isAssertInventorySize()
      Overrides:
      isAssertInventorySize in class org.cyclops.cyclopscore.inventory.container.InventoryContainer
    • getSizeInventory Link icon

      protected int getSizeInventory()
      Overrides:
      getSizeInventory in class org.cyclops.cyclopscore.inventory.container.InventoryContainer
    • setActiveElementById Link icon

      public void setActiveElementById(net.minecraft.resources.ResourceLocation typeId, net.minecraft.resources.ResourceLocation elementId)
    • setActiveElement Link icon

      public void setActiveElement(ILogicProgrammerElement activeElement, int baseX, int baseY)
      Set the new active element.
      Parameters:
      activeElement - The new element.
      baseX - The slots X coordinate
      baseY - The slots Y coordinate
    • setElementInventory Link icon

      public void setElementInventory(ILogicProgrammerElement element, int baseX, int baseY)
      Set the new active element.
      Parameters:
      element - The new element.
      baseX - The slots X coordinate
      baseY - The slots Y coordinate
    • canWriteActiveElementPre Link icon

      public boolean canWriteActiveElementPre()
    • canWriteActiveElement Link icon

      public boolean canWriteActiveElement()
    • getActiveElement Link icon

      public ILogicProgrammerElement getActiveElement()
    • removed Link icon

      public void removed(net.minecraft.world.entity.player.Player player)
      Overrides:
      removed in class org.cyclops.cyclopscore.inventory.container.InventoryContainer
    • onLabelPacket Link icon

      public void onLabelPacket(String label)
    • labelCurrent Link icon

      protected void labelCurrent()
    • writeElementInfo Link icon

      protected net.minecraft.world.item.ItemStack writeElementInfo()
    • onDirty Link icon

      public void onDirty()
      Specified by:
      onDirty in interface org.cyclops.cyclopscore.persist.IDirtyMarkListener
    • loadConfigFrom Link icon

      protected void loadConfigFrom(net.minecraft.world.item.ItemStack itemStack)
    • getLastError Link icon

      public net.minecraft.network.chat.Component getLastError()
    • getTemporaryInputSlots Link icon

      public net.minecraft.world.Container getTemporaryInputSlots()
    • hasWriteItemInSlot Link icon

      public boolean hasWriteItemInSlot()
    • additionalApplies Link icon

      protected boolean additionalApplies(ILogicProgrammerElement item)
      Overrides:
      additionalApplies in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<ILogicProgrammerElement>
    • clicked Link icon

      public void clicked(int slotId, int mouseButton, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player)
      Overrides:
      clicked in class org.cyclops.cyclopscore.inventory.container.ContainerExtended