类 AbstractScrollWidget

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollWidget
所有已实现的接口:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier, IAbstractWidgetExtension
直接已知子类:
FittingMultiLineTextWidget, MultiLineEditBox, TelemetryEventWidget

public abstract class AbstractScrollWidget extends AbstractWidget implements Renderable, GuiEventListener
  • 字段详细资料

    • BORDER_COLOR_FOCUSED

      private static final int BORDER_COLOR_FOCUSED
      另请参阅:
    • BORDER_COLOR

      private static final int BORDER_COLOR
      另请参阅:
    • BACKGROUND_COLOR

      private static final int BACKGROUND_COLOR
      另请参阅:
    • INNER_PADDING

      private static final int INNER_PADDING
      另请参阅:
    • scrollAmount

      private double scrollAmount
    • scrolling

      private boolean scrolling
  • 构造器详细资料

    • AbstractScrollWidget

      public AbstractScrollWidget(int pX, int pY, int pWidth, int pHeight, Component pMessage)
  • 方法详细资料

    • mouseClicked

      public boolean mouseClicked(double pMouseX, double pMouseY, int pButton)
      指定者:
      mouseClicked 在接口中 GuiEventListener
      覆盖:
      mouseClicked 在类中 AbstractWidget
    • mouseReleased

      public boolean mouseReleased(double pMouseX, double pMouseY, int pButton)
      指定者:
      mouseReleased 在接口中 GuiEventListener
      覆盖:
      mouseReleased 在类中 AbstractWidget
    • mouseDragged

      public boolean mouseDragged(double pMouseX, double pMouseY, int pButton, double pDragX, double pDragY)
      指定者:
      mouseDragged 在接口中 GuiEventListener
      覆盖:
      mouseDragged 在类中 AbstractWidget
    • mouseScrolled

      public boolean mouseScrolled(double pMouseX, double pMouseY, double pDelta)
      指定者:
      mouseScrolled 在接口中 GuiEventListener
    • keyPressed

      public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers)
      指定者:
      keyPressed 在接口中 GuiEventListener
    • renderWidget

      public void renderWidget(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      指定者:
      renderWidget 在类中 AbstractWidget
    • getScrollBarHeight

      private int getScrollBarHeight()
    • renderDecorations

      protected void renderDecorations(GuiGraphics pGuiGraphics)
    • innerPadding

      protected int innerPadding()
    • totalInnerPadding

      protected int totalInnerPadding()
    • scrollAmount

      protected double scrollAmount()
    • setScrollAmount

      protected void setScrollAmount(double pScrollAmount)
    • getMaxScrollAmount

      protected int getMaxScrollAmount()
    • getContentHeight

      private int getContentHeight()
    • renderBackground

      protected void renderBackground(GuiGraphics pGuiGraphics)
    • renderBorder

      protected void renderBorder(GuiGraphics pGuiGraphics, int pX, int pY, int pWidth, int pHeight)
    • renderScrollBar

      private void renderScrollBar(GuiGraphics pGuiGraphics)
    • withinContentAreaTopBottom

      protected boolean withinContentAreaTopBottom(int pTop, int pBottom)
    • withinContentAreaPoint

      protected boolean withinContentAreaPoint(double pX, double pY)
    • scrollbarVisible

      protected boolean scrollbarVisible()
    • getInnerHeight

      protected abstract int getInnerHeight()
    • scrollRate

      protected abstract double scrollRate()
    • renderContents

      protected abstract void renderContents(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)