Package net.minecraft.client.gui.widget
Class ListWidget
java.lang.Object
net.minecraft.client.gui.widget.ListWidget
- Direct Known Subclasses:
CustomizedWorldPresetsScreen.PresetsListWidget,CustomizeFlatLevelScreen.CustomizeFlatLevelListWidget,DelegatingRealmsClickableScrolledSelectionListWidget,DelegatingRealmsScrolledSelectionListWidget,DelegatingRealmsSimpleScrolledSelectionListWidget,EntryListWidget,LanguageOptionsScreen.LanguageSelectionListWidget,PresetsScreen.PresetsListWidget,SelectWorldScreen.class_756,SnooperScreen.class_761,StatsScreen.class_772,StatsScreen.class_774,StatsScreen.class_775,StreamIngestScreen.class_823
@Environment(CLIENT) public abstract class ListWidget extends Object
- Mappings:
Namespace Name official awiintermediary net/minecraft/class_713named net/minecraft/client/gui/widget/ListWidget
-
Field Summary
Fields Modifier and Type Field Description protected MinecraftClientclientprivate booleandraggingprivate intendButtonIdprotected intentryHeightprotected booleanfield_3001protected floatfield_3003protected intfield_3005protected longfield_3006protected intheaderHeightprotected intheightprivate inthomeButtonIdprotected intlastMouseXprotected intlastMouseYprotected booleanrenderHeaderprotected booleanrenderSelectionprotected floatscrollAmountprotected booleanvisibleprotected intwidthprotected intxEndprotected intxStartprotected intyDragprotected intyEndprotected intyStart -
Constructor Summary
Constructors Constructor Description ListWidget(MinecraftClient client, int width, int height, int top, int bottom, int entryHeight) -
Method Summary
Modifier and Type Method Description voidbuttonClicked(ButtonWidget buttonWidget)protected voidcapYPosition()protected abstract intgetEntriesSize()intgetEntryAt(int int2, int int3)intgetItemHeight()protected intgetMaxPosition()intgetMaxScroll()intgetRowWidth()intgetScrollAmount()protected intgetScrollbarPosition()voidhandleMouse()booleanisDragging()protected abstract booleanisEntrySelected(int index)booleanisMouseInList(int mouseY)protected voidmethod_2630(int int2, int int3)voidrender(int mouseX, int mouseY, float delta)protected abstract voidrenderBackground()protected voidrenderDecorations(int mouseX, int mouseY)protected abstract voidrenderEntry(int index, int x, int y, int rowHeight, int mouseX, int mouseY)protected voidrenderHeader(int x, int y, Tessellator tessellator)protected voidrenderHoleBackground(int top, int bottom, int topAlpha, int bottomAlpha)protected voidrenderList(int x, int y, int mouseX, int mouseY)voidscroll(int offset)protected abstract voidselectEntry(int int2, boolean bool, int lastMouseX, int lastMouseY)voidsetButtonIds(int homeButtonId, int endButtonId)voidsetDragging(boolean dragging)protected voidsetHeader(boolean renderHeader, int headerHeight)voidsetRenderSelection(boolean renderSelection)voidsetXPos(int x)voidupdateBounds(int right, int height, int top, int bottom)protected voidupdateItemPosition(int index, int x, int y)
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector official aLawi;a:Lave;intermediary field_2991Lnet/minecraft/class_713;field_2991:Lnet/minecraft/class_669;named clientLnet/minecraft/client/gui/widget/ListWidget;client:Lnet/minecraft/client/MinecraftClient;
-
width
protected int width- Mappings:
Namespace Name Mixin selector official bLawi;b:Iintermediary field_2992Lnet/minecraft/class_713;field_2992:Inamed widthLnet/minecraft/client/gui/widget/ListWidget;width:I
-
height
protected int height- Mappings:
Namespace Name Mixin selector official cLawi;c:Iintermediary field_2993Lnet/minecraft/class_713;field_2993:Inamed heightLnet/minecraft/client/gui/widget/ListWidget;height:I
-
yStart
protected int yStart- Mappings:
Namespace Name Mixin selector official dLawi;d:Iintermediary field_2994Lnet/minecraft/class_713;field_2994:Inamed yStartLnet/minecraft/client/gui/widget/ListWidget;yStart:I
-
yEnd
protected int yEnd- Mappings:
Namespace Name Mixin selector official eLawi;e:Iintermediary field_2995Lnet/minecraft/class_713;field_2995:Inamed yEndLnet/minecraft/client/gui/widget/ListWidget;yEnd:I
-
xEnd
protected int xEnd- Mappings:
Namespace Name Mixin selector official fLawi;f:Iintermediary field_2996Lnet/minecraft/class_713;field_2996:Inamed xEndLnet/minecraft/client/gui/widget/ListWidget;xEnd:I
-
xStart
protected int xStart- Mappings:
Namespace Name Mixin selector official gLawi;g:Iintermediary field_2997Lnet/minecraft/class_713;field_2997:Inamed xStartLnet/minecraft/client/gui/widget/ListWidget;xStart:I
-
entryHeight
protected final int entryHeight- Mappings:
Namespace Name Mixin selector official hLawi;h:Iintermediary field_2998Lnet/minecraft/class_713;field_2998:Inamed entryHeightLnet/minecraft/client/gui/widget/ListWidget;entryHeight:I
-
homeButtonId
private int homeButtonId- Mappings:
Namespace Name Mixin selector official uLawi;u:Iintermediary field_3011Lnet/minecraft/class_713;field_3011:Inamed homeButtonIdLnet/minecraft/client/gui/widget/ListWidget;homeButtonId:I
-
endButtonId
private int endButtonId- Mappings:
Namespace Name Mixin selector official vLawi;v:Iintermediary field_3012Lnet/minecraft/class_713;field_3012:Inamed endButtonIdLnet/minecraft/client/gui/widget/ListWidget;endButtonId:I
-
lastMouseX
protected int lastMouseX- Mappings:
Namespace Name Mixin selector official iLawi;i:Iintermediary field_2999Lnet/minecraft/class_713;field_2999:Inamed lastMouseXLnet/minecraft/client/gui/widget/ListWidget;lastMouseX:I
-
lastMouseY
protected int lastMouseY- Mappings:
Namespace Name Mixin selector official jLawi;j:Iintermediary field_3000Lnet/minecraft/class_713;field_3000:Inamed lastMouseYLnet/minecraft/client/gui/widget/ListWidget;lastMouseY:I
-
field_3001
protected boolean field_3001- Mappings:
Namespace Name Mixin selector official kLawi;k:Zintermediary field_3001Lnet/minecraft/class_713;field_3001:Znamed field_3001Lnet/minecraft/client/gui/widget/ListWidget;field_3001:Z
-
yDrag
protected int yDrag- Mappings:
Namespace Name Mixin selector official lLawi;l:Iintermediary field_3002Lnet/minecraft/class_713;field_3002:Inamed yDragLnet/minecraft/client/gui/widget/ListWidget;yDrag:I
-
field_3003
protected float field_3003- Mappings:
Namespace Name Mixin selector official mLawi;m:Fintermediary field_3003Lnet/minecraft/class_713;field_3003:Fnamed field_3003Lnet/minecraft/client/gui/widget/ListWidget;field_3003:F
-
scrollAmount
protected float scrollAmount- Mappings:
Namespace Name Mixin selector official nLawi;n:Fintermediary field_3004Lnet/minecraft/class_713;field_3004:Fnamed scrollAmountLnet/minecraft/client/gui/widget/ListWidget;scrollAmount:F
-
field_3005
protected int field_3005- Mappings:
Namespace Name Mixin selector official oLawi;o:Iintermediary field_3005Lnet/minecraft/class_713;field_3005:Inamed field_3005Lnet/minecraft/client/gui/widget/ListWidget;field_3005:I
-
field_3006
protected long field_3006- Mappings:
Namespace Name Mixin selector official pLawi;p:Jintermediary field_3006Lnet/minecraft/class_713;field_3006:Jnamed field_3006Lnet/minecraft/client/gui/widget/ListWidget;field_3006:J
-
visible
protected boolean visible- Mappings:
Namespace Name Mixin selector official qLawi;q:Zintermediary field_3007Lnet/minecraft/class_713;field_3007:Znamed visibleLnet/minecraft/client/gui/widget/ListWidget;visible:Z
-
renderSelection
protected boolean renderSelection- Mappings:
Namespace Name Mixin selector official rLawi;r:Zintermediary field_3008Lnet/minecraft/class_713;field_3008:Znamed renderSelectionLnet/minecraft/client/gui/widget/ListWidget;renderSelection:Z
-
renderHeader
protected boolean renderHeader- Mappings:
Namespace Name Mixin selector official sLawi;s:Zintermediary field_3009Lnet/minecraft/class_713;field_3009:Znamed renderHeaderLnet/minecraft/client/gui/widget/ListWidget;renderHeader:Z
-
headerHeight
protected int headerHeight- Mappings:
Namespace Name Mixin selector official tLawi;t:Iintermediary field_3010Lnet/minecraft/class_713;field_3010:Inamed headerHeightLnet/minecraft/client/gui/widget/ListWidget;headerHeight:I
-
dragging
private boolean dragging- Mappings:
Namespace Name Mixin selector official wLawi;w:Zintermediary field_3013Lnet/minecraft/class_713;field_3013:Znamed draggingLnet/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>Lawi;<init>(Lave;IIIII)Vintermediary <init>Lnet/minecraft/class_713;<init>(Lnet/minecraft/class_669;IIIII)Vnamed <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 aLawi;a(IIII)Vintermediary method_2633Lnet/minecraft/class_713;method_2633(IIII)Vnamed updateBoundsLnet/minecraft/client/gui/widget/ListWidget;updateBounds(IIII)V
-
setRenderSelection
public void setRenderSelection(boolean renderSelection)- Mappings:
Namespace Name Mixin selector official bLawi;b(Z)Vintermediary method_2642Lnet/minecraft/class_713;method_2642(Z)Vnamed setRenderSelectionLnet/minecraft/client/gui/widget/ListWidget;setRenderSelection(Z)V
-
setHeader
protected void setHeader(boolean renderHeader, int headerHeight)- Mappings:
Namespace Name Mixin selector official aLawi;a(ZI)Vintermediary method_2638Lnet/minecraft/class_713;method_2638(ZI)Vnamed setHeaderLnet/minecraft/client/gui/widget/ListWidget;setHeader(ZI)V
-
getEntriesSize
protected abstract int getEntriesSize()- Mappings:
Namespace Name Mixin selector official bLawi;b()Iintermediary method_2639Lnet/minecraft/class_713;method_2639()Inamed getEntriesSizeLnet/minecraft/client/gui/widget/ListWidget;getEntriesSize()I
-
selectEntry
protected abstract void selectEntry(int int2, boolean bool, int lastMouseX, int lastMouseY)- Mappings:
Namespace Name Mixin selector official aLawi;a(IZII)Vintermediary method_2636Lnet/minecraft/class_713;method_2636(IZII)Vnamed selectEntryLnet/minecraft/client/gui/widget/ListWidget;selectEntry(IZII)V
-
isEntrySelected
protected abstract boolean isEntrySelected(int index)- Mappings:
Namespace Name Mixin selector official aLawi;a(I)Zintermediary method_2629Lnet/minecraft/class_713;method_2629(I)Znamed isEntrySelectedLnet/minecraft/client/gui/widget/ListWidget;isEntrySelected(I)Z
-
getMaxPosition
protected int getMaxPosition()- Mappings:
Namespace Name Mixin selector official kLawi;k()Iintermediary method_2652Lnet/minecraft/class_713;method_2652()Inamed getMaxPositionLnet/minecraft/client/gui/widget/ListWidget;getMaxPosition()I
-
renderBackground
protected abstract void renderBackground()- Mappings:
Namespace Name Mixin selector official aLawi;a()Vintermediary method_2628Lnet/minecraft/class_713;method_2628()Vnamed renderBackgroundLnet/minecraft/client/gui/widget/ListWidget;renderBackground()V
-
updateItemPosition
protected void updateItemPosition(int index, int x, int y)- Mappings:
Namespace Name Mixin selector official aLawi;a(III)Vintermediary method_2632Lnet/minecraft/class_713;method_2632(III)Vnamed updateItemPositionLnet/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 aLawi;a(IIIIII)Vintermediary method_2634Lnet/minecraft/class_713;method_2634(IIIIII)Vnamed renderEntryLnet/minecraft/client/gui/widget/ListWidget;renderEntry(IIIIII)V
-
renderHeader
- Mappings:
Namespace Name Mixin selector official aLawi;a(IILbfx;)Vintermediary method_2635Lnet/minecraft/class_713;method_2635(IILnet/minecraft/class_1041;)Vnamed renderHeaderLnet/minecraft/client/gui/widget/ListWidget;renderHeader(IILnet/minecraft/client/render/Tessellator;)V
-
method_2630
protected void method_2630(int int2, int int3)- Mappings:
Namespace Name Mixin selector official aLawi;a(II)Vintermediary method_2630Lnet/minecraft/class_713;method_2630(II)Vnamed method_2630Lnet/minecraft/client/gui/widget/ListWidget;method_2630(II)V
-
renderDecorations
protected void renderDecorations(int mouseX, int mouseY)- Mappings:
Namespace Name Mixin selector official bLawi;b(II)Vintermediary method_2640Lnet/minecraft/class_713;method_2640(II)Vnamed renderDecorationsLnet/minecraft/client/gui/widget/ListWidget;renderDecorations(II)V
-
getEntryAt
public int getEntryAt(int int2, int int3)- Mappings:
Namespace Name Mixin selector official cLawi;c(II)Iintermediary method_2644Lnet/minecraft/class_713;method_2644(II)Inamed getEntryAtLnet/minecraft/client/gui/widget/ListWidget;getEntryAt(II)I
-
setButtonIds
public void setButtonIds(int homeButtonId, int endButtonId)- Mappings:
Namespace Name Mixin selector official dLawi;d(II)Vintermediary method_2647Lnet/minecraft/class_713;method_2647(II)Vnamed setButtonIdsLnet/minecraft/client/gui/widget/ListWidget;setButtonIds(II)V
-
capYPosition
protected void capYPosition()- Mappings:
Namespace Name Mixin selector official lLawi;l()Vintermediary method_2653Lnet/minecraft/class_713;method_2653()Vnamed capYPositionLnet/minecraft/client/gui/widget/ListWidget;capYPosition()V
-
getMaxScroll
public int getMaxScroll()- Mappings:
Namespace Name Mixin selector official mLawi;m()Iintermediary method_2654Lnet/minecraft/class_713;method_2654()Inamed getMaxScrollLnet/minecraft/client/gui/widget/ListWidget;getMaxScroll()I
-
getScrollAmount
public int getScrollAmount()- Mappings:
Namespace Name Mixin selector official nLawi;n()Iintermediary method_2655Lnet/minecraft/class_713;method_2655()Inamed getScrollAmountLnet/minecraft/client/gui/widget/ListWidget;getScrollAmount()I
-
isMouseInList
public boolean isMouseInList(int mouseY)- Mappings:
Namespace Name Mixin selector official gLawi;g(I)Zintermediary method_2649Lnet/minecraft/class_713;method_2649(I)Znamed isMouseInListLnet/minecraft/client/gui/widget/ListWidget;isMouseInList(I)Z
-
scroll
public void scroll(int offset)- Mappings:
Namespace Name Mixin selector official hLawi;h(I)Vintermediary method_2650Lnet/minecraft/class_713;method_2650(I)Vnamed scrollLnet/minecraft/client/gui/widget/ListWidget;scroll(I)V
-
buttonClicked
- Mappings:
Namespace Name Mixin selector official aLawi;a(Lavs;)Vintermediary method_2637Lnet/minecraft/class_713;method_2637(Lnet/minecraft/class_685;)Vnamed buttonClickedLnet/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 aLawi;a(IIF)Vintermediary method_2631Lnet/minecraft/class_713;method_2631(IIF)Vnamed renderLnet/minecraft/client/gui/widget/ListWidget;render(IIF)V
-
handleMouse
public void handleMouse()- Mappings:
Namespace Name Mixin selector official pLawi;p()Vintermediary method_2656Lnet/minecraft/class_713;method_2656()Vnamed handleMouseLnet/minecraft/client/gui/widget/ListWidget;handleMouse()V
-
setDragging
public void setDragging(boolean dragging)- Mappings:
Namespace Name Mixin selector official dLawi;d(Z)Vintermediary method_2648Lnet/minecraft/class_713;method_2648(Z)Vnamed setDraggingLnet/minecraft/client/gui/widget/ListWidget;setDragging(Z)V
-
isDragging
public boolean isDragging()- Mappings:
Namespace Name Mixin selector official qLawi;q()Zintermediary method_2657Lnet/minecraft/class_713;method_2657()Znamed isDraggingLnet/minecraft/client/gui/widget/ListWidget;isDragging()Z
-
getRowWidth
public int getRowWidth()- Mappings:
Namespace Name Mixin selector official cLawi;c()Iintermediary method_2643Lnet/minecraft/class_713;method_2643()Inamed getRowWidthLnet/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 bLawi;b(IIII)Vintermediary method_2641Lnet/minecraft/class_713;method_2641(IIII)Vnamed renderListLnet/minecraft/client/gui/widget/ListWidget;renderList(IIII)V
-
getScrollbarPosition
protected int getScrollbarPosition()- Mappings:
Namespace Name Mixin selector official dLawi;d()Iintermediary method_2646Lnet/minecraft/class_713;method_2646()Inamed getScrollbarPositionLnet/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 cLawi;c(IIII)Vintermediary method_2645Lnet/minecraft/class_713;method_2645(IIII)Vnamed renderHoleBackgroundLnet/minecraft/client/gui/widget/ListWidget;renderHoleBackground(IIII)V
-
setXPos
public void setXPos(int x)- Mappings:
Namespace Name Mixin selector official iLawi;i(I)Vintermediary method_2651Lnet/minecraft/class_713;method_2651(I)Vnamed setXPosLnet/minecraft/client/gui/widget/ListWidget;setXPos(I)V
-
getItemHeight
public int getItemHeight()- Mappings:
Namespace Name Mixin selector official rLawi;r()Iintermediary method_2658Lnet/minecraft/class_713;method_2658()Inamed getItemHeightLnet/minecraft/client/gui/widget/ListWidget;getItemHeight()I
-