(int scroll)
| 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) { |
no test coverage detected