Klasse UButton

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractButton
net.minecraft.client.gui.components.Button
info.u_team.u_team_core.gui.elements.UButton
Alle implementierten Schnittstellen:
BackgroundColorProvider, PerspectiveRenderable, Scalable, ScaleProvider, TextProvider, TextSettingsProvider, WidgetRenderable, 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
Bekannte direkte Unterklassen:
ActivatableButton, CheckboxButton, ImageButton

public class UButton extends net.minecraft.client.gui.components.Button implements WidgetRenderable, BackgroundColorProvider, TextProvider, Scalable, ScaleProvider
  • Verschachtelte Klassen - Übersicht

    Von Klasse geerbte verschachtelte Klassen/Schnittstellen net.minecraft.client.gui.components.Button

    net.minecraft.client.gui.components.Button.Builder, net.minecraft.client.gui.components.Button.CreateNarration, net.minecraft.client.gui.components.Button.OnPress

    Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen net.minecraft.client.gui.narration.NarratableEntry

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority

    Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen info.u_team.u_team_core.api.gui.TextSettingsProvider

    TextSettingsProvider.TextRenderType
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    protected RGBA
     
    protected TextureProvider
     
    protected static final net.minecraft.client.gui.components.Button.CreateNarration
     
    protected RGBA
     
    protected static final net.minecraft.client.gui.components.Button.OnPress
     
    protected static final RGBA
     
    protected float
     
    protected RGBA
     
    protected static final RGBA
     

    Von Klasse geerbte Felder net.minecraft.client.gui.components.Button

    BIG_WIDTH, createNarration, DEFAULT_HEIGHT, DEFAULT_SPACING, DEFAULT_WIDTH, onPress, SMALL_WIDTH

    Von Klasse geerbte Felder net.minecraft.client.gui.components.AbstractButton

    SPRITES, TEXT_MARGIN

    Von Klasse geerbte Felder net.minecraft.client.gui.components.AbstractWidget

    active, alpha, height, isHovered, visible, width, x, y

    Von Schnittstelle geerbte Felder net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    UButton(int x, int y, int width, int height, net.minecraft.network.chat.Component text)
     
    UButton(int x, int y, int width, int height, net.minecraft.network.chat.Component text, net.minecraft.client.gui.components.Button.OnPress pressable)
     
    UButton(int x, int y, int width, int height, net.minecraft.network.chat.Component text, net.minecraft.client.gui.components.Button.OnPress pressable, net.minecraft.client.gui.components.Button.CreateNarration narration)
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
     
    getCurrentBackgroundColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    float
    getCurrentScale(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    net.minecraft.network.chat.Component
     
    getCurrentTextColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
     
    float
     
     
    void
    renderBefore(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    void
    renderBehind(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    void
    renderWidget(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    void
    renderWidgetTexture(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    void
    setButtonColor(RGBA buttonColor)
     
    void
    setCreateNarration(net.minecraft.client.gui.components.Button.CreateNarration narration)
     
    void
    setDisabledTextColor(RGBA disabledTextColor)
     
    void
     
    void
    setPressable(net.minecraft.client.gui.components.Button.OnPress pressable)
     
    void
    setScale(float scale)
     
    void
    setTextColor(RGBA textColor)
     

    Von Klasse geerbte Methoden net.minecraft.client.gui.components.Button

    builder, createNarrationMessage, onPress, updateWidgetNarration

    Von Klasse geerbte Methoden net.minecraft.client.gui.components.AbstractButton

    keyPressed, onClick, renderString

    Von Klasse geerbte Methoden net.minecraft.client.gui.components.AbstractWidget

    clicked, 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

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Von Schnittstelle geerbte Methoden net.minecraft.client.gui.components.events.GuiEventListener

    charTyped, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled

    Von Schnittstelle geerbte Methoden net.minecraft.client.gui.layouts.LayoutElement

    setPosition

    Von Schnittstelle geerbte Methoden info.u_team.u_team_core.api.gui.PerspectiveRenderable

    render

    Von Schnittstelle geerbte Methoden info.u_team.u_team_core.api.gui.TextSettingsProvider

    getCurrentTextFont, getCurrentTextRenderType
  • Felddetails

    • EMTPY_PRESSABLE

      protected static final net.minecraft.client.gui.components.Button.OnPress EMTPY_PRESSABLE
    • DEFAULT_NARRATION

      protected static final net.minecraft.client.gui.components.Button.CreateNarration DEFAULT_NARRATION
    • WHITE

      protected static final RGBA WHITE
    • LIGHT_GRAY

      protected static final RGBA LIGHT_GRAY
    • buttonTextureProvider

      protected TextureProvider buttonTextureProvider
    • buttonColor

      protected RGBA buttonColor
    • textColor

      protected RGBA textColor
    • disabledTextColor

      protected RGBA disabledTextColor
    • scale

      protected float scale
  • Konstruktordetails

    • UButton

      public UButton(int x, int y, int width, int height, net.minecraft.network.chat.Component text)
    • UButton

      public UButton(int x, int y, int width, int height, net.minecraft.network.chat.Component text, net.minecraft.client.gui.components.Button.OnPress pressable)
    • UButton

      public UButton(int x, int y, int width, int height, net.minecraft.network.chat.Component text, net.minecraft.client.gui.components.Button.OnPress pressable, net.minecraft.client.gui.components.Button.CreateNarration narration)
  • Methodendetails

    • setPressable

      public void setPressable(net.minecraft.client.gui.components.Button.OnPress pressable)
    • setPressable

      public void setPressable(Runnable runnable)
    • setCreateNarration

      public void setCreateNarration(net.minecraft.client.gui.components.Button.CreateNarration narration)
    • getButtonColor

      public RGBA getButtonColor()
    • setButtonColor

      public void setButtonColor(RGBA buttonColor)
    • getTextColor

      public RGBA getTextColor()
    • setTextColor

      public void setTextColor(RGBA textColor)
    • getDisabledTextColor

      public RGBA getDisabledTextColor()
    • setDisabledTextColor

      public void setDisabledTextColor(RGBA disabledTextColor)
    • getScale

      public float getScale()
      Angegeben von:
      getScale in Schnittstelle Scalable
    • setScale

      public void setScale(float scale)
      Angegeben von:
      setScale in Schnittstelle Scalable
    • renderWidget

      public void renderWidget(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Setzt außer Kraft:
      renderWidget in Klasse net.minecraft.client.gui.components.AbstractButton
    • renderWidgetTexture

      public void renderWidgetTexture(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Angegeben von:
      renderWidgetTexture in Schnittstelle WidgetRenderable
    • renderBehind

      public void renderBehind(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Angegeben von:
      renderBehind in Schnittstelle PerspectiveRenderable
    • renderBefore

      public void renderBefore(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Angegeben von:
      renderBefore in Schnittstelle PerspectiveRenderable
    • getCurrentBackgroundColor

      public RGBA getCurrentBackgroundColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Angegeben von:
      getCurrentBackgroundColor in Schnittstelle BackgroundColorProvider
    • getCurrentText

      public net.minecraft.network.chat.Component getCurrentText()
      Angegeben von:
      getCurrentText in Schnittstelle TextProvider
    • getCurrentTextColor

      public RGBA getCurrentTextColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Angegeben von:
      getCurrentTextColor in Schnittstelle TextSettingsProvider
    • getCurrentScale

      public float getCurrentScale(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Angegeben von:
      getCurrentScale in Schnittstelle ScaleProvider