public interface GUIScrollable2 extends GUIScrollable
GUIScrollable
that can be attached to
GUIScrollBars
.Modifier and Type | Method and Description |
---|---|
void |
addScrollableListener(@NotNull ScrollableListener listener)
Adds a scrollable listener to be informed about changes.
|
void |
removeScrollableListener(@NotNull ScrollableListener listener)
Removes a scrollable listener.
|
void |
scrollTo(int pos)
Scrolls to the given location.
|
canScroll, resetScroll, scroll
void addScrollableListener(@NotNull @NotNull ScrollableListener listener)
listener
- the listener to addvoid removeScrollableListener(@NotNull @NotNull ScrollableListener listener)
listener
- the listener to removevoid scrollTo(int pos)
addScrollableListener(ScrollableListener)
.pos
- the location to scroll to