类 AbstractScrollArea

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
所有已实现的接口:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
直接已知子类:
AbstractContainerWidget, AbstractTextAreaWidget

public abstract class AbstractScrollArea extends AbstractWidget
  • 字段详细资料

    • SCROLLBAR_WIDTH

      public static final int SCROLLBAR_WIDTH
      另请参阅:
    • scrollAmount

      private double scrollAmount
    • SCROLLER_SPRITE

      private static final ResourceLocation SCROLLER_SPRITE
    • SCROLLER_BACKGROUND_SPRITE

      private static final ResourceLocation SCROLLER_BACKGROUND_SPRITE
    • scrolling

      private boolean scrolling
  • 构造器详细资料

    • AbstractScrollArea

      public AbstractScrollArea(int p_377709_, int p_378471_, int p_377440_, int p_376831_, Component p_375489_)
  • 方法详细资料

    • mouseScrolled

      public boolean mouseScrolled(double p_377900_, double p_377972_, double p_376192_, double p_378419_)
    • mouseDragged

      public boolean mouseDragged(double p_378500_, double p_377082_, int p_376241_, double p_375440_, double p_376263_)
      指定者:
      mouseDragged 在接口中 GuiEventListener
      覆盖:
      mouseDragged 在类中 AbstractWidget
    • onRelease

      public void onRelease(double p_376131_, double p_375870_)
      覆盖:
      onRelease 在类中 AbstractWidget
    • scrollAmount

      public double scrollAmount()
    • setScrollAmount

      public void setScrollAmount(double p_378348_)
    • updateScrolling

      public boolean updateScrolling(double p_377950_, double p_377713_, int p_377339_)
    • refreshScrollAmount

      public void refreshScrollAmount()
    • maxScrollAmount

      public int maxScrollAmount()
    • scrollbarVisible

      protected boolean scrollbarVisible()
    • scrollerHeight

      protected int scrollerHeight()
    • scrollBarX

      protected int scrollBarX()
    • scrollBarY

      protected int scrollBarY()
    • renderScrollbar

      protected void renderScrollbar(GuiGraphics p_376117_)
    • contentHeight

      protected abstract int contentHeight()
    • scrollRate

      protected abstract double scrollRate()