Class ContainerScreenLogicProgrammerBase<C extends ContainerLogicProgrammerBase>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<T>
org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C>
org.cyclops.integrateddynamics.client.gui.container.ContainerScreenLogicProgrammerBase<C>
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.Renderable
,net.minecraft.client.gui.components.TabOrderedElement
,net.minecraft.client.gui.screens.inventory.MenuAccess<C>
,org.cyclops.cyclopscore.inventory.IValueNotifiable
- Direct Known Subclasses:
ContainerScreenLogicProgrammer
,ContainerScreenLogicProgrammerPortable
public class ContainerScreenLogicProgrammerBase<C extends ContainerLogicProgrammerBase>
extends org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C>
Base gui for the logic programmer.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected boolean
protected RenderPattern
protected int
protected final SubGuiHolder
Fields inherited from class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended
container, offsetX, offsetY, texture
Fields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPos
Fields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionContainerScreenLogicProgrammerBase
(C container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title) -
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char keyCode, int scanCode) protected float
colorSmoothener
(float color, boolean hover) protected net.minecraft.resources.ResourceLocation
void
protected int
protected int
protected Rectangle
getElementPosition
(ContainerLogicProgrammerBase container, int i, boolean absolute) protected int
protected Rectangle
protected int
protected int
protected int
protected int
boolean
protected boolean
handleKeyCode
(int keyCode, int scanCode) protected boolean
void
init()
protected boolean
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) protected void
boolean
mouseClicked
(double mouseX, double mouseY, int mouseButton) protected void
onActivateElement
(ILogicProgrammerElement<RenderPattern, ContainerScreenLogicProgrammerBase<?>, ContainerLogicProgrammerBase> element) protected void
protected void
renderBg
(net.minecraft.client.gui.GuiGraphics guiGraphics, float partialTicks, int mouseX, int mouseY) protected void
renderLabels
(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY) protected boolean
selectPageElement
(int elementId) protected void
setSearchFieldFocussed
(boolean focused) Methods inherited from class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling
drawCurrentScreen, getScrollbar, getSearchField, getSearchY, isSearchEnabled, isSubsetRenderSlots, mouseDragged, updateSearch
Methods inherited from class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended
createServerPressable, drawTooltip, getGuiLeftTotal, getGuiTexture, getGuiTopTotal, getValueNotifiableType, isHovering, isHovering, isPointInRegion, onUpdate, refreshValues, render
Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, hasClickedOutside, isPauseScreen, mouseReleased, onClose, removed, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tick
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
BOX_HEIGHT
public static final int BOX_HEIGHT- See Also:
-
subGuiHolder
-
operatorConfigPattern
-
operatorInfoPattern
protected ContainerScreenLogicProgrammerBase<C extends ContainerLogicProgrammerBase>.SubGuiOperatorInfo operatorInfoPattern -
firstInit
protected boolean firstInit -
relativeStep
protected int relativeStep
-
-
Constructor Details
-
ContainerScreenLogicProgrammerBase
public ContainerScreenLogicProgrammerBase(C container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title)
-
-
Method Details
-
getScrollRegion
- Overrides:
getScrollRegion
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
init
public void init()- Overrides:
init
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
containerTick
public void containerTick()- Overrides:
containerTick
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
getScrollX
protected int getScrollX()- Overrides:
getScrollX
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
getScrollY
protected int getScrollY()- Overrides:
getScrollY
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
getScrollHeight
protected int getScrollHeight()- Overrides:
getScrollHeight
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
getBaseXSize
protected int getBaseXSize()- Overrides:
getBaseXSize
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C extends ContainerLogicProgrammerBase>
-
getBaseYSize
protected int getBaseYSize()- Overrides:
getBaseYSize
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C extends ContainerLogicProgrammerBase>
-
getSearchX
protected int getSearchX()- Overrides:
getSearchX
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
getSearchWidth
protected int getSearchWidth()- Overrides:
getSearchWidth
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
constructGuiTexture
protected net.minecraft.resources.ResourceLocation constructGuiTexture()- Specified by:
constructGuiTexture
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C extends ContainerLogicProgrammerBase>
-
colorSmoothener
protected float colorSmoothener(float color, boolean hover) -
renderBg
protected void renderBg(net.minecraft.client.gui.GuiGraphics guiGraphics, float partialTicks, int mouseX, int mouseY) - Overrides:
renderBg
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
getElementPosition
protected Rectangle getElementPosition(ContainerLogicProgrammerBase container, int i, boolean absolute) -
renderLabels
protected void renderLabels(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY) - Overrides:
renderLabels
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends ContainerLogicProgrammerBase>
-
onActivateElement
protected void onActivateElement(ILogicProgrammerElement<RenderPattern, ContainerScreenLogicProgrammerBase<?>, ContainerLogicProgrammerBase> element) -
onDeactivateElement
-
handleElementActivation
-
setSearchFieldFocussed
protected void setSearchFieldFocussed(boolean focused) -
isSearchFieldFocussed
protected boolean isSearchFieldFocussed() -
selectPageElement
protected boolean selectPageElement(int elementId) -
handleKeyCode
protected boolean handleKeyCode(int keyCode, int scanCode) -
charTyped
public boolean charTyped(char keyCode, int scanCode) - Specified by:
charTyped
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
charTyped
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
charTyped
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) - Specified by:
keyPressed
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
keyPressed
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
keyPressed
in classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) - Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseClicked
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends ContainerLogicProgrammerBase>
-
label
-
hasLabeller
protected boolean hasLabeller()
-