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<C>
org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C>
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
    Modifier and Type
    Class
    Description
    class 
     

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContainerScreenLogicProgrammerBase(C container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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
     
    protected boolean
     
    boolean
    keyPressed(int keyCode, int scanCode, int modifiers)
     
    protected void
    label(String label)
     
    boolean
    mouseClicked(double mouseX, double mouseY, int mouseButton)
     
    protected void
     
    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, handleSlotStateChanged, hasClickedOutside, isPauseScreen, mouseReleased, onClose, removed, renderBackground, renderSlot, renderSlotContents, renderSlotHighlight, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tick

    Methods inherited from class net.minecraft.client.gui.screens.Screen

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, 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, 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

  • Constructor Details

    • ContainerScreenLogicProgrammerBase

      public ContainerScreenLogicProgrammerBase(C container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title)
  • Method Details

    • getScrollRegion

      protected Rectangle getScrollRegion()
      Overrides:
      getScrollRegion in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
    • init

      public void init()
      Overrides:
      init in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
    • containerTick

      public void containerTick()
      Overrides:
      containerTick in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends ContainerLogicProgrammerBase>
    • getScrollX

      protected int getScrollX()
      Overrides:
      getScrollX in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
    • getScrollY

      protected int getScrollY()
      Overrides:
      getScrollY in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
    • getScrollHeight

      protected int getScrollHeight()
      Overrides:
      getScrollHeight in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
    • getBaseXSize

      protected int getBaseXSize()
      Overrides:
      getBaseXSize in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C extends ContainerLogicProgrammerBase>
    • getBaseYSize

      protected int getBaseYSize()
      Overrides:
      getBaseYSize in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C extends ContainerLogicProgrammerBase>
    • getSearchX

      protected int getSearchX()
      Overrides:
      getSearchX in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
    • getSearchWidth

      protected int getSearchWidth()
      Overrides:
      getSearchWidth in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
    • constructGuiTexture

      protected net.minecraft.resources.ResourceLocation constructGuiTexture()
      Specified by:
      constructGuiTexture in class org.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 class org.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 class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends ContainerLogicProgrammerBase>
    • onActivateElement

    • onDeactivateElement

      protected void onDeactivateElement(ILogicProgrammerElement element)
    • handleElementActivation

      public boolean handleElementActivation(ILogicProgrammerElement element)
    • 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 interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      charTyped in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      charTyped in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenScrolling<C extends ContainerLogicProgrammerBase>
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseClicked in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends ContainerLogicProgrammerBase>
    • label

      protected void label(String label)
    • hasLabeller

      protected boolean hasLabeller()