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