java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
org.hiedacamellia.immersiveui.client.gui.component.widget.bar.base.BaseTexBarWidget
所有已实现的接口:
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, net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension, IBarWidget

public class BaseTexBarWidget extends net.minecraft.client.gui.components.AbstractWidget implements IBarWidget
  • 嵌套类概要

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

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

    字段
    修饰符和类型
    字段
    说明
    protected net.minecraft.resources.ResourceLocation
     
    protected net.minecraft.resources.ResourceLocation
     
    protected net.minecraft.resources.ResourceLocation
     
    protected float
     
    protected float
     
    protected boolean
     
    protected boolean
     
    protected float
    Progress from 0 to 1

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

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

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

    DOUBLE_CLICK_THRESHOLD_MS
  • 构造器概要

    构造器
    构造器
    说明
    BaseTexBarWidget(int x, int y, int width, int height, net.minecraft.network.chat.Component message)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected void
    renderWidget(net.minecraft.client.gui.GuiGraphics guiGraphics, int i, int i1, float v)
     
    void
     
    void
    setBackTex(net.minecraft.resources.ResourceLocation backTex)
     
    void
    setBarTex(net.minecraft.resources.ResourceLocation barTex)
     
    void
    setBorderTex(net.minecraft.resources.ResourceLocation borderTex)
     
    void
    setBorderWidth(float borderX, float borderY)
     
    void
    setProgress(float progress)
     
    void
    setTex(net.minecraft.resources.ResourceLocation tex)
     
    protected void
    updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput narrationElementOutput)
     
    void
     

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

    clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, 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, keyPressed, keyReleased, mouseMoved, mouseScrolled

    从接口继承的方法 net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension

    onClick

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

    setPosition
  • 字段详细资料

    • borderX

      protected float borderX
    • borderY

      protected float borderY
    • isVertical

      protected boolean isVertical
    • isReverse

      protected boolean isReverse
    • progress

      protected float progress
      Progress from 0 to 1
    • barTex

      protected net.minecraft.resources.ResourceLocation barTex
    • backTex

      protected net.minecraft.resources.ResourceLocation backTex
    • borderTex

      protected net.minecraft.resources.ResourceLocation borderTex
  • 构造器详细资料

    • BaseTexBarWidget

      public BaseTexBarWidget(int x, int y, int width, int height, net.minecraft.network.chat.Component message)
  • 方法详细资料

    • setTex

      public void setTex(net.minecraft.resources.ResourceLocation tex)
    • setBarTex

      public void setBarTex(net.minecraft.resources.ResourceLocation barTex)
    • setBackTex

      public void setBackTex(net.minecraft.resources.ResourceLocation backTex)
    • setBorderTex

      public void setBorderTex(net.minecraft.resources.ResourceLocation borderTex)
    • vertical

      public void vertical()
      指定者:
      vertical 在接口中 IBarWidget
    • reverse

      public void reverse()
      指定者:
      reverse 在接口中 IBarWidget
    • setProgress

      public void setProgress(float progress)
      指定者:
      setProgress 在接口中 IBarWidget
    • setBorderWidth

      public void setBorderWidth(float borderX, float borderY)
    • renderWidget

      protected void renderWidget(net.minecraft.client.gui.GuiGraphics guiGraphics, int i, int i1, float v)
      指定者:
      renderWidget 在类中 net.minecraft.client.gui.components.AbstractWidget
    • updateWidgetNarration

      protected void updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput narrationElementOutput)
      指定者:
      updateWidgetNarration 在类中 net.minecraft.client.gui.components.AbstractWidget