Class CustomCheckboxWidget

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractButton
com.refinedmods.refinedstorage.common.support.widget.CustomCheckboxWidget
All Implemented Interfaces:
net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.layouts.LayoutElement, net.minecraft.client.gui.narration.NarratableEntry, net.minecraft.client.gui.narration.NarrationSupplier

public class CustomCheckboxWidget extends net.minecraft.client.gui.components.AbstractButton
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
    static enum 
     

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

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

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

    TEXT_MARGIN

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

    active, alpha, height, isHovered, visible, width

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomCheckboxWidget(int x, int y, int maxWidth, net.minecraft.network.chat.Component text, net.minecraft.client.gui.Font font, boolean selected, CustomCheckboxWidget.Size size)
     
    CustomCheckboxWidget(int x, int y, net.minecraft.network.chat.Component text, net.minecraft.client.gui.Font font, boolean selected, CustomCheckboxWidget.Size size)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
     
    void
    renderWidget(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
     
    void
    setHelpTooltip(net.minecraft.network.chat.Component helpTooltip)
     
    void
     
    void
    setSelected(boolean selected)
     
    void
    updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput output)
     

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

    keyPressed, onClick, renderString

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

    clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage

    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

    charTyped, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled

    Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement

    setPosition
  • Constructor Details

    • CustomCheckboxWidget

      public CustomCheckboxWidget(int x, int y, net.minecraft.network.chat.Component text, net.minecraft.client.gui.Font font, boolean selected, CustomCheckboxWidget.Size size)
    • CustomCheckboxWidget

      public CustomCheckboxWidget(int x, int y, int maxWidth, net.minecraft.network.chat.Component text, net.minecraft.client.gui.Font font, boolean selected, CustomCheckboxWidget.Size size)
  • Method Details

    • setHelpTooltip

      public void setHelpTooltip(@Nullable net.minecraft.network.chat.Component helpTooltip)
    • setOnPressed

      public void setOnPressed(@Nullable CustomCheckboxWidget.OnPressed onPressed)
    • onPress

      public void onPress()
      Specified by:
      onPress in class net.minecraft.client.gui.components.AbstractButton
    • setSelected

      public void setSelected(boolean selected)
    • isSelected

      public boolean isSelected()
    • updateWidgetNarration

      public void updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput output)
      Specified by:
      updateWidgetNarration in class net.minecraft.client.gui.components.AbstractWidget
    • renderWidget

      public void renderWidget(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
      Overrides:
      renderWidget in class net.minecraft.client.gui.components.AbstractButton