Class ContainerMultipartAspects<P extends IPartType<P,S>,S extends IPartState<P>,A extends IAspect>

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<A>
org.cyclops.integrateddynamics.core.inventory.container.ContainerMultipartAspects<P,S,A>
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:
ContainerPartReader, ContainerPartWriter

public abstract class ContainerMultipartAspects<P extends IPartType<P,S>,S extends IPartState<P>,A extends IAspect> extends org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<A> implements org.cyclops.cyclopscore.persist.IDirtyMarkListener
Container for parts.
  • Nested Class Summary Link icon

    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
    static String
     
    static String
     
    protected final net.minecraft.world.Container
     

    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
    ContainerMultipartAspects(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.Container inventory, PartTarget target, Optional<IPartContainer> partContainer, P partType, List<A> items)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    protected net.minecraft.world.Container
     
    protected void
    disableSlot(int slotIndex)
     
    protected void
    enableElementAt(int row, int elementIndex, A element)
     
    protected abstract void
    enableSlot(int slotIndex, int row)
     
    abstract int
     
     
    int
     
     
     
     
     
    void
    onScroll(int firstRow)
     
    void
    removed(net.minecraft.world.entity.player.Player player)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     
    net.minecraft.world.item.ItemStack
    writeAspectInfo(boolean generateId, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level level, IAspect aspect)
     

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

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

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

    getContainerInventory, getSizeInventory, isAssertInventorySize

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

    addInventory, addPlayerInventory, addSlot, addSlotListener, adjustPhantomSlot, broadcastChanges, clicked, 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

    Methods inherited from interface org.cyclops.cyclopscore.persist.IDirtyMarkListener Link icon

    onDirty
  • Field Details Link icon

    • BUTTON_SETTINGS Link icon

      public static String BUTTON_SETTINGS
    • BUTTON_OFFSETS Link icon

      public static String BUTTON_OFFSETS
    • inputSlots Link icon

      protected final net.minecraft.world.Container inputSlots
  • Constructor Details Link icon

    • ContainerMultipartAspects Link icon

      public ContainerMultipartAspects(@Nullable net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.Container inventory, PartTarget target, Optional<IPartContainer> partContainer, P partType, List<A> items)
  • Method Details Link icon

    • getPartType Link icon

      public P getPartType()
    • getTarget Link icon

      public PartTarget getTarget()
    • getPartContainer Link icon

      public IPartContainer getPartContainer()
    • getPartState Link icon

      public S getPartState()
    • getAspectPropertyButtons Link icon

      public Map<IAspect,String> getAspectPropertyButtons()
    • getAspectBoxHeight Link icon

      public abstract int getAspectBoxHeight()
    • constructInputSlotsInventory Link icon

      protected net.minecraft.world.Container constructInputSlotsInventory()
    • removed Link icon

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

      protected void disableSlot(int slotIndex)
    • enableSlot Link icon

      protected abstract void enableSlot(int slotIndex, int row)
    • getPageSize Link icon

      public int getPageSize()
      Specified by:
      getPageSize in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<A extends IAspect>
    • onScroll Link icon

      public void onScroll(int firstRow)
      Specified by:
      onScroll in interface org.cyclops.cyclopscore.client.gui.component.WidgetScrollBar.IScrollCallback
      Overrides:
      onScroll in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<A extends IAspect>
    • enableElementAt Link icon

      protected void enableElementAt(int row, int elementIndex, A element)
      Overrides:
      enableElementAt in class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<A extends IAspect>
    • stillValid Link icon

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Overrides:
      stillValid in class org.cyclops.cyclopscore.inventory.container.InventoryContainer
    • writeAspectInfo Link icon

      public net.minecraft.world.item.ItemStack writeAspectInfo(boolean generateId, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level level, IAspect aspect)