Class ValueTypeRecipeAdapterLPElementPropertiesSubGui<E extends IGuiInputElement>

All Implemented Interfaces:
ISubGui, ISubGuiBox
Direct Known Subclasses:
ValueTypeRecipeLPElementPropertiesSubGui

public abstract class ValueTypeRecipeAdapterLPElementPropertiesSubGui<E extends IGuiInputElement> extends RenderPattern<E,ContainerScreenLogicProgrammerBase,ContainerLogicProgrammerBase>
Selection panel for the list element value type.
  • Field Details

    • slotId

      protected final int slotId
    • inputNbt

      protected org.cyclops.cyclopscore.client.gui.component.button.ButtonCheckbox inputNbt
    • inputTags

      protected org.cyclops.cyclopscore.client.gui.component.button.ButtonCheckbox inputTags
    • inputReusable

      protected org.cyclops.cyclopscore.client.gui.component.button.ButtonCheckbox inputReusable
    • inputTagsDropdown

      protected WidgetTextFieldDropdown<net.minecraft.resources.ResourceLocation> inputTagsDropdown
    • inputSave

      protected org.cyclops.cyclopscore.client.gui.component.button.ButtonImage inputSave
  • Constructor Details

  • Method Details

    • init

      public void init(int guiLeft, int guiTop)
      Specified by:
      init in interface ISubGui
      Overrides:
      init in class RenderPattern<E extends IGuiInputElement,ContainerScreenLogicProgrammerBase,ContainerLogicProgrammerBase>
    • returnToMainGui

      protected abstract void returnToMainGui()
    • getSlotContents

      public abstract net.minecraft.world.item.ItemStack getSlotContents()
    • getSlotProperties

      public abstract ItemMatchProperties getSlotProperties()
    • loadStateToGui

      public void loadStateToGui()
    • saveGuiToState

      public void saveGuiToState()
    • drawRenderPattern

      protected boolean drawRenderPattern()
      Overrides:
      drawRenderPattern in class RenderPattern<E extends IGuiInputElement,ContainerScreenLogicProgrammerBase,ContainerLogicProgrammerBase>
    • renderBg

      public void renderBg(net.minecraft.client.gui.GuiGraphics guiGraphics, int guiLeft, int guiTop, net.minecraft.client.renderer.texture.TextureManager textureManager, net.minecraft.client.gui.Font fontRenderer, float partialTicks, int mouseX, int mouseY)
      Specified by:
      renderBg in interface ISubGui
      Overrides:
      renderBg in class RenderPattern<E extends IGuiInputElement,ContainerScreenLogicProgrammerBase,ContainerLogicProgrammerBase>
    • drawGuiContainerForegroundLayer

      public void drawGuiContainerForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int guiLeft, int guiTop, net.minecraft.client.renderer.texture.TextureManager textureManager, net.minecraft.client.gui.Font fontRenderer, int mouseX, int mouseY)
      Specified by:
      drawGuiContainerForegroundLayer in interface ISubGui
      Overrides:
      drawGuiContainerForegroundLayer in class SubGuiBox
    • drawTagsTooltip

      protected void drawTagsTooltip(net.minecraft.client.gui.GuiGraphics guiGraphics, IDropdownEntry<net.minecraft.resources.ResourceLocation> hoveredPossibility, int guiLeft, int guiTop, int mouseX, int mouseY, int columns, int offset)
    • charTyped

      public boolean charTyped(char typedChar, int keyCode)
      Description copied from interface: ISubGui
      Char type event
      Specified by:
      charTyped in interface ISubGui
      Overrides:
      charTyped in class SubGuiBox
      Parameters:
      typedChar - The character typed
      keyCode - The keycode of the character typed
      Returns:
      True if all next actions should be skipped
    • keyPressed

      public boolean keyPressed(int typedChar, int keyCode, int modifiers)
      Description copied from interface: ISubGui
      Key press event
      Specified by:
      keyPressed in interface ISubGui
      Overrides:
      keyPressed in class SubGuiBox
      Parameters:
      typedChar - The character typed
      keyCode - The keycode of the character typed
      modifiers - Key modifiers
      Returns:
      True if all next actions should be skipped
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
      Specified by:
      mouseClicked in interface ISubGui
      Overrides:
      mouseClicked in class SubGuiBox