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.Widget
,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 class net.minecraft.client.gui.components.AbstractSelectionList
net.minecraft.client.gui.components.AbstractSelectionList.SelectionDirection
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected int
protected float
protected boolean
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields 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 TypeMethodDescriptionint
protected int
int
float
boolean
boolean
protected void
renderList
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) void
setRenderTransparentBorder
(boolean renderTransparentBorder) void
setSideDistance
(int sideDistance) void
setTransparentBorderSize
(float transparentBorderSize) void
setUseScissor
(boolean useScissor) void
updateSettings
(int x, int y, int width, int height) void
updateSettings
(int width, int height, int top, int bottom, int left, int right) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
changeFocus, updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, addEntryToTop, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getHovered, getItemCount, getLeft, getMaxPosition, getMaxScroll, getRight, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollBottom, getSelected, getTop, getWidth, isFocused, isMouseOver, isSelectedItem, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelection, narrateListElementPosition, narrationPriority, refreshSelection, remove, removeEntry, removeEntryFromTop, render, renderBackground, renderDecorations, renderHeader, renderItem, renderSelection, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, setSelected, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActive
-
Field Details
-
sideDistance
protected int sideDistance -
useScissor
protected boolean useScissor -
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) -
isUseScissor
public boolean isUseScissor() -
setUseScissor
public void setUseScissor(boolean useScissor) -
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 partialTicks)
-