Class ScrollableLayout.Container
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.components.ScrollableLayout.Container
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
- Enclosing class:
ScrollableLayout
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractScrollArea
AbstractScrollArea.ScrollbarSettingsNested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsFields inherited from class AbstractScrollArea
SCROLLBAR_WIDTHFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionContainer(Minecraft minecraft, int width, int height, AbstractScrollArea.ScrollbarSettings scrollbarSettings) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends GuiEventListener> children()protected intgetBorderForArrowNavigation(ScreenDirection opposite) Collection<? extends NarratableEntry> protected voidrenderWidget(GuiGraphics graphics, int mouseX, int mouseY, float a) private intvoidsetFocused(@Nullable GuiEventListener focused) Sets the focus state of the GUI element.voidsetScrollAmount(double scrollAmount) voidsetX(int x) voidsetY(int y) protected voidMethods inherited from class AbstractContainerWidget
getFocused, isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, nextFocusPath, setDragging, setFocusedMethods inherited from class AbstractScrollArea
defaultSettings, isOverScrollbar, maxScrollAmount, mouseScrolled, onRelease, refreshScrollAmount, renderScrollbar, scrollable, scrollAmount, scrollbarWidth, scrollBarX, scrollBarY, scrollerHeight, scrollRate, updateScrollingMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, onClick, onDrag, playButtonClickSound, playDownSound, render, renderScrollingStringOverContents, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, keyPressed, keyReleased, mouseScrolledMethods inherited from interface GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
minecraft
-
children
-
-
Constructor Details
-
Container
public Container(Minecraft minecraft, int width, int height, AbstractScrollArea.ScrollbarSettings scrollbarSettings)
-
-
Method Details
-
contentHeight
protected int contentHeight()- Specified by:
contentHeightin classAbstractScrollArea
-
renderWidget
- Specified by:
renderWidgetin classAbstractWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
setFocused
Description copied from interface:ContainerEventHandlerSets the focus state of the GUI element.- Specified by:
setFocusedin interfaceContainerEventHandler- Overrides:
setFocusedin classAbstractContainerWidget- Parameters:
focused- the focused GUI element.
-
setX
public void setX(int x) - Specified by:
setXin interfaceLayoutElement- Overrides:
setXin classAbstractWidget
-
setY
public void setY(int y) - Specified by:
setYin interfaceLayoutElement- Overrides:
setYin classAbstractWidget
-
scrollbarReserve
private int scrollbarReserve() -
setScrollAmount
public void setScrollAmount(double scrollAmount) - Overrides:
setScrollAmountin classAbstractScrollArea
-
children
-
getNarratables
-