Class ListWidget

java.lang.Object
net.minecraft.client.gui.widget.ListWidget
Direct Known Subclasses:
CustomizedWorldPresetsScreen.PresetsListWidget, CustomizeFlatLevelScreen.CustomizeFlatLevelListWidget, DelegatingRealmsClickableScrolledSelectionListWidget, DelegatingRealmsScrolledSelectionListWidget, DelegatingRealmsSimpleScrolledSelectionListWidget, EntryListWidget, LanguageOptionsScreen.LanguageSelectionListWidget, SnooperScreen.SnooperEntryListWidget, StatsScreen.CustomStatsListWidget, StatsScreen.EntityStatsListWidget, StatsScreen.GeneralStatsListWidget, SuperflatPresetScreen.SuperflatPresetsListWidget

@Environment(CLIENT) public abstract class ListWidget extends Object
Mappings:
Namespace Name
official bgd
intermediary net/minecraft/class_390
named net/minecraft/client/gui/widget/ListWidget
  • Field Details

    • client

      protected final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a:Lbes;
      intermediary field_1241 Lnet/minecraft/class_390;field_1241:Lnet/minecraft/class_1600;
      named client Lnet/minecraft/client/gui/widget/ListWidget;client:Lnet/minecraft/client/MinecraftClient;
    • width

      protected int width
      Mappings:
      Namespace Name Mixin selector
      official b Lbgd;b:I
      intermediary field_7733 Lnet/minecraft/class_390;field_7733:I
      named width Lnet/minecraft/client/gui/widget/ListWidget;width:I
    • height

      protected int height
      Mappings:
      Namespace Name Mixin selector
      official c Lbgd;c:I
      intermediary field_1248 Lnet/minecraft/class_390;field_1248:I
      named height Lnet/minecraft/client/gui/widget/ListWidget;height:I
    • yStart

      protected int yStart
      Mappings:
      Namespace Name Mixin selector
      official d Lbgd;d:I
      intermediary field_1242 Lnet/minecraft/class_390;field_1242:I
      named yStart Lnet/minecraft/client/gui/widget/ListWidget;yStart:I
    • yEnd

      protected int yEnd
      Mappings:
      Namespace Name Mixin selector
      official e Lbgd;e:I
      intermediary field_1243 Lnet/minecraft/class_390;field_1243:I
      named yEnd Lnet/minecraft/client/gui/widget/ListWidget;yEnd:I
    • xEnd

      protected int xEnd
      Mappings:
      Namespace Name Mixin selector
      official f Lbgd;f:I
      intermediary field_1249 Lnet/minecraft/class_390;field_1249:I
      named xEnd Lnet/minecraft/client/gui/widget/ListWidget;xEnd:I
    • xStart

      protected int xStart
      Mappings:
      Namespace Name Mixin selector
      official g Lbgd;g:I
      intermediary field_7734 Lnet/minecraft/class_390;field_7734:I
      named xStart Lnet/minecraft/client/gui/widget/ListWidget;xStart:I
    • entryHeight

      protected final int entryHeight
      Mappings:
      Namespace Name Mixin selector
      official h Lbgd;h:I
      intermediary field_1244 Lnet/minecraft/class_390;field_1244:I
      named entryHeight Lnet/minecraft/client/gui/widget/ListWidget;entryHeight:I
    • homeButtonId

      private int homeButtonId
      Mappings:
      Namespace Name Mixin selector
      official u Lbgd;u:I
      intermediary field_1251 Lnet/minecraft/class_390;field_1251:I
      named homeButtonId Lnet/minecraft/client/gui/widget/ListWidget;homeButtonId:I
    • endButtonId

      private int endButtonId
      Mappings:
      Namespace Name Mixin selector
      official v Lbgd;v:I
      intermediary field_1252 Lnet/minecraft/class_390;field_1252:I
      named endButtonId Lnet/minecraft/client/gui/widget/ListWidget;endButtonId:I
    • lastMouseX

      protected int lastMouseX
      Mappings:
      Namespace Name Mixin selector
      official i Lbgd;i:I
      intermediary field_1245 Lnet/minecraft/class_390;field_1245:I
      named lastMouseX Lnet/minecraft/client/gui/widget/ListWidget;lastMouseX:I
    • lastMouseY

      protected int lastMouseY
      Mappings:
      Namespace Name Mixin selector
      official j Lbgd;j:I
      intermediary field_1246 Lnet/minecraft/class_390;field_1246:I
      named lastMouseY Lnet/minecraft/client/gui/widget/ListWidget;lastMouseY:I
    • field_7735

      protected boolean field_7735
      Mappings:
      Namespace Name Mixin selector
      official k Lbgd;k:Z
      intermediary field_7735 Lnet/minecraft/class_390;field_7735:Z
      named field_7735 Lnet/minecraft/client/gui/widget/ListWidget;field_7735:Z
    • yDrag

      protected int yDrag
      Mappings:
      Namespace Name Mixin selector
      official l Lbgd;l:I
      intermediary field_10407 Lnet/minecraft/class_390;field_10407:I
      named yDrag Lnet/minecraft/client/gui/widget/ListWidget;yDrag:I
    • field_1254

      protected float field_1254
      Mappings:
      Namespace Name Mixin selector
      official m Lbgd;m:F
      intermediary field_1254 Lnet/minecraft/class_390;field_1254:F
      named field_1254 Lnet/minecraft/client/gui/widget/ListWidget;field_1254:F
    • scrollAmount

      protected float scrollAmount
      Mappings:
      Namespace Name Mixin selector
      official n Lbgd;n:F
      intermediary field_1255 Lnet/minecraft/class_390;field_1255:F
      named scrollAmount Lnet/minecraft/client/gui/widget/ListWidget;scrollAmount:F
    • field_1256

      protected int field_1256
      Mappings:
      Namespace Name Mixin selector
      official o Lbgd;o:I
      intermediary field_1256 Lnet/minecraft/class_390;field_1256:I
      named field_1256 Lnet/minecraft/client/gui/widget/ListWidget;field_1256:I
    • time

      protected long time
      Mappings:
      Namespace Name Mixin selector
      official p Lbgd;p:J
      intermediary field_1257 Lnet/minecraft/class_390;field_1257:J
      named time Lnet/minecraft/client/gui/widget/ListWidget;time:J
    • visible

      protected boolean visible
      Mappings:
      Namespace Name Mixin selector
      official q Lbgd;q:Z
      intermediary field_10408 Lnet/minecraft/class_390;field_10408:Z
      named visible Lnet/minecraft/client/gui/widget/ListWidget;visible:Z
    • renderSelection

      protected boolean renderSelection
      Mappings:
      Namespace Name Mixin selector
      official r Lbgd;r:Z
      intermediary field_7736 Lnet/minecraft/class_390;field_7736:Z
      named renderSelection Lnet/minecraft/client/gui/widget/ListWidget;renderSelection:Z
    • renderHeader

      protected boolean renderHeader
      Mappings:
      Namespace Name Mixin selector
      official s Lbgd;s:Z
      intermediary field_1259 Lnet/minecraft/class_390;field_1259:Z
      named renderHeader Lnet/minecraft/client/gui/widget/ListWidget;renderHeader:Z
    • headerHeight

      protected int headerHeight
      Mappings:
      Namespace Name Mixin selector
      official t Lbgd;t:I
      intermediary field_1260 Lnet/minecraft/class_390;field_1260:I
      named headerHeight Lnet/minecraft/client/gui/widget/ListWidget;headerHeight:I
    • dragging

      private boolean dragging
      Mappings:
      Namespace Name Mixin selector
      official w Lbgd;w:Z
      intermediary field_7737 Lnet/minecraft/class_390;field_7737:Z
      named dragging Lnet/minecraft/client/gui/widget/ListWidget;dragging:Z
  • Constructor Details

    • ListWidget

      public ListWidget(MinecraftClient client, int width, int height, int top, int bottom, int entryHeight)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbgd;<init>(Lbes;IIIII)V
      intermediary <init> Lnet/minecraft/class_390;<init>(Lnet/minecraft/class_1600;IIIII)V
      named <init> Lnet/minecraft/client/gui/widget/ListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII)V
  • Method Details

    • updateBounds

      public void updateBounds(int right, int height, int top, int bottom)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(IIII)V
      intermediary method_1054 Lnet/minecraft/class_390;method_1054(IIII)V
      named updateBounds Lnet/minecraft/client/gui/widget/ListWidget;updateBounds(IIII)V
    • setRenderSelection

      public void setRenderSelection(boolean renderSelection)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgd;b(Z)V
      intermediary method_1060 Lnet/minecraft/class_390;method_1060(Z)V
      named setRenderSelection Lnet/minecraft/client/gui/widget/ListWidget;setRenderSelection(Z)V
    • setHeader

      protected void setHeader(boolean renderHeader, int headerHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(ZI)V
      intermediary method_1061 Lnet/minecraft/class_390;method_1061(ZI)V
      named setHeader Lnet/minecraft/client/gui/widget/ListWidget;setHeader(ZI)V
    • getEntryCount

      protected abstract int getEntryCount()
      Mappings:
      Namespace Name Mixin selector
      official b Lbgd;b()I
      intermediary method_1050 Lnet/minecraft/class_390;method_1050()I
      named getEntryCount Lnet/minecraft/client/gui/widget/ListWidget;getEntryCount()I
    • selectEntry

      protected abstract void selectEntry(int index, boolean bool, int lastMouseX, int lastMouseY)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(IZII)V
      intermediary method_1057 Lnet/minecraft/class_390;method_1057(IZII)V
      named selectEntry Lnet/minecraft/client/gui/widget/ListWidget;selectEntry(IZII)V
    • isEntrySelected

      protected abstract boolean isEntrySelected(int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(I)Z
      intermediary method_1051 Lnet/minecraft/class_390;method_1051(I)Z
      named isEntrySelected Lnet/minecraft/client/gui/widget/ListWidget;isEntrySelected(I)Z
    • getMaxPosition

      protected int getMaxPosition()
      Mappings:
      Namespace Name Mixin selector
      official k Lbgd;k()I
      intermediary method_1062 Lnet/minecraft/class_390;method_1062()I
      named getMaxPosition Lnet/minecraft/client/gui/widget/ListWidget;getMaxPosition()I
    • renderBackground

      protected abstract void renderBackground()
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a()V
      intermediary method_1066 Lnet/minecraft/class_390;method_1066()V
      named renderBackground Lnet/minecraft/client/gui/widget/ListWidget;renderBackground()V
    • updateItemPosition

      protected void updateItemPosition(int index, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(III)V
      intermediary method_9528 Lnet/minecraft/class_390;method_9528(III)V
      named updateItemPosition Lnet/minecraft/client/gui/widget/ListWidget;updateItemPosition(III)V
    • renderEntry

      protected abstract void renderEntry(int index, int x, int y, int rowHeight, int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(IIIIII)V
      intermediary method_1055 Lnet/minecraft/class_390;method_1055(IIIIII)V
      named renderEntry Lnet/minecraft/client/gui/widget/ListWidget;renderEntry(IIIIII)V
    • renderHeader

      protected void renderHeader(int x, int y, Tessellator tessellator)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(IILbqs;)V
      intermediary method_1056 Lnet/minecraft/class_390;method_1056(IILnet/minecraft/class_533;)V
      named renderHeader Lnet/minecraft/client/gui/widget/ListWidget;renderHeader(IILnet/minecraft/client/render/Tessellator;)V
    • clickedHeader

      protected void clickedHeader(int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(II)V
      intermediary method_1052 Lnet/minecraft/class_390;method_1052(II)V
      named clickedHeader Lnet/minecraft/client/gui/widget/ListWidget;clickedHeader(II)V
    • renderDecorations

      protected void renderDecorations(int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgd;b(II)V
      intermediary method_1064 Lnet/minecraft/class_390;method_1064(II)V
      named renderDecorations Lnet/minecraft/client/gui/widget/ListWidget;renderDecorations(II)V
    • getEntryAt

      public int getEntryAt(int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgd;c(II)I
      intermediary method_1067 Lnet/minecraft/class_390;method_1067(II)I
      named getEntryAt Lnet/minecraft/client/gui/widget/ListWidget;getEntryAt(II)I
    • setButtonIds

      public void setButtonIds(int homeButtonId, int endButtonId)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgd;d(II)V
      intermediary method_1059 Lnet/minecraft/class_390;method_1059(II)V
      named setButtonIds Lnet/minecraft/client/gui/widget/ListWidget;setButtonIds(II)V
    • capYPosition

      protected void capYPosition()
      Mappings:
      Namespace Name Mixin selector
      official l Lbgd;l()V
      intermediary method_1070 Lnet/minecraft/class_390;method_1070()V
      named capYPosition Lnet/minecraft/client/gui/widget/ListWidget;capYPosition()V
    • getMaxScroll

      public int getMaxScroll()
      Mappings:
      Namespace Name Mixin selector
      official m Lbgd;m()I
      intermediary method_1068 Lnet/minecraft/class_390;method_1068()I
      named getMaxScroll Lnet/minecraft/client/gui/widget/ListWidget;getMaxScroll()I
    • getScrollAmount

      public int getScrollAmount()
      Mappings:
      Namespace Name Mixin selector
      official n Lbgd;n()I
      intermediary method_6708 Lnet/minecraft/class_390;method_6708()I
      named getScrollAmount Lnet/minecraft/client/gui/widget/ListWidget;getScrollAmount()I
    • isMouseInList

      public boolean isMouseInList(int mouseY)
      Mappings:
      Namespace Name Mixin selector
      official g Lbgd;g(I)Z
      intermediary method_6707 Lnet/minecraft/class_390;method_6707(I)Z
      named isMouseInList Lnet/minecraft/client/gui/widget/ListWidget;isMouseInList(I)Z
    • scroll

      public void scroll(int amount)
      Mappings:
      Namespace Name Mixin selector
      official h Lbgd;h(I)V
      intermediary method_1063 Lnet/minecraft/class_390;method_1063(I)V
      named scroll Lnet/minecraft/client/gui/widget/ListWidget;scroll(I)V
    • buttonClicked

      public void buttonClicked(ButtonWidget button)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(Lbfm;)V
      intermediary method_1058 Lnet/minecraft/class_390;method_1058(Lnet/minecraft/class_356;)V
      named buttonClicked Lnet/minecraft/client/gui/widget/ListWidget;buttonClicked(Lnet/minecraft/client/gui/widget/ButtonWidget;)V
    • render

      public void render(int mouseX, int mouseY, float delta)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgd;a(IIF)V
      intermediary method_1053 Lnet/minecraft/class_390;method_1053(IIF)V
      named render Lnet/minecraft/client/gui/widget/ListWidget;render(IIF)V
    • handleMouse

      public void handleMouse()
      Mappings:
      Namespace Name Mixin selector
      official p Lbgd;p()V
      intermediary method_9529 Lnet/minecraft/class_390;method_9529()V
      named handleMouse Lnet/minecraft/client/gui/widget/ListWidget;handleMouse()V
    • setDragging

      public void setDragging(boolean dragging)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgd;d(Z)V
      intermediary method_6705 Lnet/minecraft/class_390;method_6705(Z)V
      named setDragging Lnet/minecraft/client/gui/widget/ListWidget;setDragging(Z)V
    • isDragging

      public boolean isDragging()
      Mappings:
      Namespace Name Mixin selector
      official q Lbgd;q()Z
      intermediary method_6710 Lnet/minecraft/class_390;method_6710()Z
      named isDragging Lnet/minecraft/client/gui/widget/ListWidget;isDragging()Z
    • getRowWidth

      public int getRowWidth()
      Mappings:
      Namespace Name Mixin selector
      official c Lbgd;c()I
      intermediary method_6706 Lnet/minecraft/class_390;method_6706()I
      named getRowWidth Lnet/minecraft/client/gui/widget/ListWidget;getRowWidth()I
    • renderList

      protected void renderList(int x, int y, int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgd;b(IIII)V
      intermediary method_6704 Lnet/minecraft/class_390;method_6704(IIII)V
      named renderList Lnet/minecraft/client/gui/widget/ListWidget;renderList(IIII)V
    • getScrollbarPosition

      protected int getScrollbarPosition()
      Mappings:
      Namespace Name Mixin selector
      official d Lbgd;d()I
      intermediary method_1069 Lnet/minecraft/class_390;method_1069()I
      named getScrollbarPosition Lnet/minecraft/client/gui/widget/ListWidget;getScrollbarPosition()I
    • renderHoleBackground

      protected void renderHoleBackground(int top, int bottom, int topAlpha, int bottomAlpha)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgd;c(IIII)V
      intermediary method_1065 Lnet/minecraft/class_390;method_1065(IIII)V
      named renderHoleBackground Lnet/minecraft/client/gui/widget/ListWidget;renderHoleBackground(IIII)V
    • setXPos

      public void setXPos(int x)
      Mappings:
      Namespace Name Mixin selector
      official i Lbgd;i(I)V
      intermediary method_6709 Lnet/minecraft/class_390;method_6709(I)V
      named setXPos Lnet/minecraft/client/gui/widget/ListWidget;setXPos(I)V
    • getItemHeight

      public int getItemHeight()
      Mappings:
      Namespace Name Mixin selector
      official r Lbgd;r()I
      intermediary method_6711 Lnet/minecraft/class_390;method_6711()I
      named getItemHeight Lnet/minecraft/client/gui/widget/ListWidget;getItemHeight()I