MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / scroll

Method scroll

Minecraft-Utils/1.8.9/src/Gui2ndChat.java:245–258  ·  view source on GitHub ↗
(int scroll)

Source from the content-addressed store, hash-verified

243 }
244
245 @Override
246 public void scroll(int scroll) {
247 this.scrollPos += scroll;
248 int chatLines = this.singleChatLines.size();
249 if (this.scrollPos > chatLines - this.getLineCount()) {
250 this.scrollPos = chatLines - this.getLineCount();
251 }
252
253 if (this.scrollPos <= 0) {
254 this.scrollPos = 0;
255 this.isScrolled = false;
256 }
257
258 }
259
260 @Override
261 public void drawComponentHover(int mouseX, int mouseY) {

Callers 2

setChatLineMethod · 0.95
keyTypedMethod · 0.95

Calls 2

getLineCountMethod · 0.95
sizeMethod · 0.80

Tested by

no test coverage detected