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<RenderPattern,ContainerScreenLogicProgrammerBase<?>,ContainerLogicProgrammerBase,?>>
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<RenderPattern,ContainerScreenLogicProgrammerBase<?>,ContainerLogicProgrammerBase,?>>
implements org.cyclops.cyclopscore.persist.IDirtyMarkListener
Base container for the logic programmer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classFilter LP elements based on the filter value types.protected classLoad existing operator data when a variable card is inserted into the write slotstatic interfaceNested classes/interfaces inherited from class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer
org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer.IItemPredicate<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected static final org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer.IItemPredicate<ILogicProgrammerElement<RenderPattern, ContainerScreenLogicProgrammerBase<?>, ContainerLogicProgrammerBase, ?>> static final intstatic final intstatic final intstatic final intFields inherited from class org.cyclops.cyclopscore.inventory.container.InventoryContainer
inventoryFields inherited from class org.cyclops.cyclopscore.inventory.container.ContainerExtended
ITEMBOX, offsetX, offsetY, playerFields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
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
ConstructorsConstructorDescriptionContainerLogicProgrammerBase(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory playerInventory) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbooleanvoidclicked(int slotId, int mouseButton, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player) ILogicProgrammerElement<RenderPattern, ContainerScreenLogicProgrammerBase<?>, ContainerLogicProgrammerBase, ?> protected static List<ILogicProgrammerElement<RenderPattern, ContainerScreenLogicProgrammerBase<?>, ContainerLogicProgrammerBase, ?>> getGui()net.minecraft.network.chat.Componentintprotected intorg.cyclops.cyclopscore.inventory.SimpleInventorybooleanprotected voidprotected voidprotected booleanprotected voidprotected voidloadConfigFrom(net.minecraft.world.item.ItemStack itemStack) voidonDirty()voidonLabelPacket(String label) voidremoved(net.minecraft.world.entity.player.Player player) voidvoidsetActiveElement(ILogicProgrammerElement activeElement, int baseX, int baseY) Set the new active element.voidsetActiveElementById(net.minecraft.resources.ResourceLocation typeId, net.minecraft.resources.ResourceLocation elementId) voidsetElementInventory(ILogicProgrammerElement element, int baseX, int baseY) Set the new active element.voidsetScreenCallbackHandler(ContainerLogicProgrammerBase.ScreenCallbackHandler screenCallbackHandler) protected net.minecraft.world.item.ItemStackMethods inherited from class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer
enableElementAt, filter, getColumns, getFilteredItemCount, getFilteredItems, getFirstElement, getScrollStepSize, getUnfilteredItemCount, getUnfilteredItems, getVisibleElement, isElementVisible, onScroll, refreshFilter, updateFilterMethods inherited from class org.cyclops.cyclopscore.inventory.container.InventoryContainer
getContainerInventory, stillValidMethods inherited from class org.cyclops.cyclopscore.inventory.container.ContainerExtended
addInventory, addPlayerArmorInventory, 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, setValueMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
OUTPUT_X
public static final int OUTPUT_X- See Also:
-
OUTPUT_Y
public static final int OUTPUT_Y- See Also:
-
BASE_X
public static final int BASE_X- See Also:
-
BASE_Y
public static final int BASE_Y- See Also:
-
MAX_WIDTH
public static final int MAX_WIDTH- See Also:
-
MAX_HEIGHT
public static final int MAX_HEIGHT- See Also:
-
FILTERER
protected static final org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer.IItemPredicate<ILogicProgrammerElement<RenderPattern,ContainerScreenLogicProgrammerBase<?>, FILTERERContainerLogicProgrammerBase, ?>>
-
-
Constructor Details
-
ContainerLogicProgrammerBase
public ContainerLogicProgrammerBase(@Nullable net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory playerInventory)
-
-
Method Details
-
getElements
protected static List<ILogicProgrammerElement<RenderPattern,ContainerScreenLogicProgrammerBase<?>, getElements()ContainerLogicProgrammerBase, ?>> -
setScreenCallbackHandler
public void setScreenCallbackHandler(ContainerLogicProgrammerBase.ScreenCallbackHandler screenCallbackHandler) -
getGui
-
initializeSlotsPre
protected void initializeSlotsPre() -
initializeSlotsPost
protected void initializeSlotsPost() -
getPageSize
public int getPageSize()- Specified by:
getPageSizein classorg.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<ILogicProgrammerElement<RenderPattern,ContainerScreenLogicProgrammerBase<?>, ContainerLogicProgrammerBase, ?>>
-
isAssertInventorySize
protected boolean isAssertInventorySize()- Overrides:
isAssertInventorySizein classorg.cyclops.cyclopscore.inventory.container.InventoryContainer
-
getSizeInventory
protected int getSizeInventory()- Overrides:
getSizeInventoryin classorg.cyclops.cyclopscore.inventory.container.InventoryContainer
-
setActiveElementById
public void setActiveElementById(net.minecraft.resources.ResourceLocation typeId, net.minecraft.resources.ResourceLocation elementId) -
setActiveElement
Set the new active element.- Parameters:
activeElement- The new element.baseX- The slots X coordinatebaseY- The slots Y coordinate
-
setElementInventory
Set the new active element.- Parameters:
element- The new element.baseX- The slots X coordinatebaseY- The slots Y coordinate
-
canWriteActiveElementPre
public boolean canWriteActiveElementPre() -
canWriteActiveElement
public boolean canWriteActiveElement() -
getActiveElement
public ILogicProgrammerElement<RenderPattern,ContainerScreenLogicProgrammerBase<?>, getActiveElement()ContainerLogicProgrammerBase, ?> -
removed
public void removed(net.minecraft.world.entity.player.Player player) - Overrides:
removedin classorg.cyclops.cyclopscore.inventory.container.InventoryContainer
-
onLabelPacket
-
labelCurrent
protected void labelCurrent() -
writeElementInfo
protected net.minecraft.world.item.ItemStack writeElementInfo() -
onDirty
public void onDirty()- Specified by:
onDirtyin interfaceorg.cyclops.cyclopscore.persist.IDirtyMarkListener
-
loadConfigFrom
protected void loadConfigFrom(net.minecraft.world.item.ItemStack itemStack) -
getLastError
public net.minecraft.network.chat.Component getLastError() -
getTemporaryInputSlots
public org.cyclops.cyclopscore.inventory.SimpleInventory getTemporaryInputSlots() -
hasWriteItemInSlot
public boolean hasWriteItemInSlot() -
returnWriteItemToPlayer
public void returnWriteItemToPlayer() -
additionalApplies
- Overrides:
additionalAppliesin classorg.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<ILogicProgrammerElement<RenderPattern,ContainerScreenLogicProgrammerBase<?>, ContainerLogicProgrammerBase, ?>>
-
clicked
public void clicked(int slotId, int mouseButton, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player) - Overrides:
clickedin classorg.cyclops.cyclopscore.inventory.container.ContainerExtended
-