java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractButton
net.minecraft.client.gui.components.Button
committee.nova.mods.avaritia.api.client.screen.component.TextureButton
所有已实现的接口:
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 TextureButton extends net.minecraft.client.gui.components.Button
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
     

    从类继承的嵌套类/接口 net.minecraft.client.gui.components.Button

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

    从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected final net.minecraft.resources.ResourceLocation
     
    protected final int
     
    protected final int
     
    protected final int
     
    protected final int
     
    protected final int
     

    从类继承的字段 net.minecraft.client.gui.components.Button

    createNarration, DEFAULT_HEIGHT, DEFAULT_NARRATION, DEFAULT_WIDTH, onPress, SMALL_WIDTH

    从类继承的字段 net.minecraft.client.gui.components.AbstractButton

    TEXT_MARGIN, TEXTURE_BORDER_X, TEXTURE_BORDER_Y, TEXTURE_HEIGHT, TEXTURE_WIDTH, TEXTURE_Y_OFFSET

    从类继承的字段 net.minecraft.client.gui.components.AbstractWidget

    ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width

    从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • 方法概要

    修饰符和类型
    方法
    说明
    builder(net.minecraft.network.chat.Component message, net.minecraft.resources.ResourceLocation resourceLocation, net.minecraft.client.gui.components.Button.OnPress onPress)
     
    void
    renderString(@NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, @NotNull net.minecraft.client.gui.Font font, int color)
     
    void
    renderWidget(@NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    void
    renderXDiffTexture(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texture, int x, int y, int uOffset, int vOffset, int textureDifference, int width, int height, int textureWidth, int textureHeight)
     

    从类继承的方法 net.minecraft.client.gui.components.Button

    builder, createNarrationMessage, onPress, updateWidgetNarration

    从类继承的方法 net.minecraft.client.gui.components.AbstractButton

    keyPressed, onClick

    从类继承的方法 net.minecraft.client.gui.components.AbstractWidget

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

    从类继承的方法 java.lang.Object

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

    从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener

    charTyped, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled

    从接口继承的方法 net.minecraft.client.gui.layouts.LayoutElement

    setPosition
  • 字段详细资料

    • resourceLocation

      protected final net.minecraft.resources.ResourceLocation resourceLocation
    • xTexStart

      protected final int xTexStart
    • yTexStart

      protected final int yTexStart
    • xDiffTex

      protected final int xDiffTex
    • textureWidth

      protected final int textureWidth
    • textureHeight

      protected final int textureHeight
  • 方法详细资料

    • renderWidget

      public void renderWidget(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      覆盖:
      renderWidget 在类中 net.minecraft.client.gui.components.AbstractButton
    • renderXDiffTexture

      public void renderXDiffTexture(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texture, int x, int y, int uOffset, int vOffset, int textureDifference, int width, int height, int textureWidth, int textureHeight)
    • renderString

      public void renderString(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, @NotNull @NotNull net.minecraft.client.gui.Font font, int color)
      覆盖:
      renderString 在类中 net.minecraft.client.gui.components.AbstractButton
    • builder

      public static TextureButton.Builder builder(net.minecraft.network.chat.Component message, net.minecraft.resources.ResourceLocation resourceLocation, net.minecraft.client.gui.components.Button.OnPress onPress)