Class ElementWidget

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
com.simibubi.create.foundation.gui.widget.AbstractSimiWidget
com.simibubi.create.foundation.gui.widget.ElementWidget
All Implemented Interfaces:
TickableGuiEventListener, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Widget, net.minecraft.client.gui.narration.NarratableEntry, net.minecraft.client.gui.narration.NarrationSupplier
Direct Known Subclasses:
BoxWidget

public class ElementWidget extends AbstractSimiWidget
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected RenderElement
     
    protected LerpedFloat
     
    protected int
     
    protected int
     
    protected float
     
    protected float
     
    protected boolean
     
    protected float
     
    protected float
     
    protected boolean
     

    Fields inherited from class com.simibubi.create.foundation.gui.widget.AbstractSimiWidget

    onClick, toolTip, wasHovered, z

    Fields inherited from class net.minecraft.client.gui.components.AbstractWidget

    active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    ElementWidget(int x, int y)
     
    ElementWidget(int x, int y, int width, int height)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    beforeRender(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
     
    <T extends ElementWidget>
    T
     
    <T extends ElementWidget>
    T
     
    <T extends ElementWidget>
    T
    enableFade(int fadeModifierX, int fadeModifierY)
     
     
    <T extends ElementWidget>
    T
    fade(float target)
     
     
    <T extends ElementWidget>
    T
     
    <T extends ElementWidget>
    T
     
    void
    renderButton(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
     
    <T extends ElementWidget>
    T
    rescaleElement(float rescaleSizeX, float rescaleSizeY)
    Deprecated.
    <T extends ElementWidget>
    T
    showing(ScreenElement renderable)
     
    <T extends ElementWidget>
    T
     
    void
     
    <T extends ElementWidget>
    T
    withPadding(float paddingX, float paddingY)
     

    Methods inherited from class com.simibubi.create.foundation.gui.widget.AbstractSimiWidget

    afterRender, atZLevel, getToolTip, onClick, render, runCallback, updateNarration, withCallback, withCallback

    Methods inherited from class net.minecraft.client.gui.components.AbstractWidget

    changeFocus, clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getYImage, isActive, isFocused, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onDrag, onFocusedChanged, onRelease, playDownSound, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth, wrapDefaultNarrationMessage

    Methods inherited from class net.minecraft.client.gui.GuiComponent

    blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine

    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.GuiEventListener

    changeFocus, charTyped, isMouseOver, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
  • Field Details

    • element

      protected RenderElement element
    • usesFade

      protected boolean usesFade
    • fadeModX

      protected int fadeModX
    • fadeModY

      protected int fadeModY
    • fade

      protected LerpedFloat fade
    • rescaleElement

      protected boolean rescaleElement
    • rescaleSizeX

      protected float rescaleSizeX
    • rescaleSizeY

      protected float rescaleSizeY
    • paddingX

      protected float paddingX
    • paddingY

      protected float paddingY
  • Constructor Details

    • ElementWidget

      public ElementWidget(int x, int y)
    • ElementWidget

      public ElementWidget(int x, int y, int width, int height)
  • Method Details