Class ScrollableList<T extends net.minecraft.client.gui.components.ObjectSelectionList.Entry<T>>
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.components.AbstractSelectionList<E>
net.minecraft.client.gui.components.ObjectSelectionList<T>
info.u_team.u_team_core.gui.elements.ScrollableList<T>
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable,net.minecraft.client.gui.components.TabOrderedElement,net.minecraft.client.gui.narration.NarratableEntry,net.minecraft.client.gui.narration.NarrationSupplier
public abstract class ScrollableList<T extends net.minecraft.client.gui.components.ObjectSelectionList.Entry<T>>
extends net.minecraft.client.gui.components.ObjectSelectionList<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.components.ObjectSelectionList
net.minecraft.client.gui.components.ObjectSelectionList.Entry<E extends net.minecraft.client.gui.components.ObjectSelectionList.Entry<E>>Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected floatFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionScrollableList(int x, int y, int width, int height, int slotHeight, int sideDistance) ScrollableList(int width, int height, int top, int bottom, int left, int right, int slotHeight, int sideDistance) -
Method Summary
Modifier and TypeMethodDescriptionintprotected intintfloatbooleanprotected voidrenderList(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidsetRenderTransparentBorder(boolean renderTransparentBorder) voidsetSideDistance(int sideDistance) voidsetTransparentBorderSize(float transparentBorderSize) voidupdateSettings(int x, int y, int width, int height) voidupdateSettings(int width, int height, int top, int bottom, int left, int right) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
nextFocusPath, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, addEntryToTop, centerScrollOn, children, clearEntries, clickedHeader, enableScissor, ensureVisible, getEntry, getEntryAtPosition, getFirstElement, getFocused, getHovered, getItemCount, getMaxPosition, getMaxScroll, getRectangle, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollBottom, getSelected, isMouseOver, isSelectedItem, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, narrateListElementPosition, narrationPriority, nextEntry, nextEntry, nextEntry, remove, removeEntry, removeEntryFromTop, render, renderBackground, renderDecorations, renderHeader, renderItem, renderSelection, replaceEntries, setFocused, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, setSelected, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDraggingMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, magicalSpecialHackyFocus, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActiveMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
sideDistance
protected int sideDistance -
renderTransparentBorder
protected boolean renderTransparentBorder -
transparentBorderSize
protected float transparentBorderSize
-
-
Constructor Details
-
ScrollableList
public ScrollableList(int x, int y, int width, int height, int slotHeight, int sideDistance) -
ScrollableList
public ScrollableList(int width, int height, int top, int bottom, int left, int right, int slotHeight, int sideDistance)
-
-
Method Details
-
updateSettings
public void updateSettings(int x, int y, int width, int height) -
updateSettings
public void updateSettings(int width, int height, int top, int bottom, int left, int right) -
getSideDistance
public int getSideDistance() -
setSideDistance
public void setSideDistance(int sideDistance) -
isRenderTransparentBorder
public boolean isRenderTransparentBorder() -
setRenderTransparentBorder
public void setRenderTransparentBorder(boolean renderTransparentBorder) -
getTransparentBorderSize
public float getTransparentBorderSize() -
setTransparentBorderSize
public void setTransparentBorderSize(float transparentBorderSize) -
getRowWidth
public int getRowWidth() -
getScrollbarPosition
protected int getScrollbarPosition() -
renderList
protected void renderList(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
-