(int scroll)
| 234 | } |
| 235 | |
| 236 | @Override |
| 237 | public void scroll(int scroll) { |
| 238 | this.scrollPos += scroll; |
| 239 | int chatLines = this.singleChatLines.size(); |
| 240 | if (this.scrollPos > chatLines - this.getLineCount()) { |
| 241 | this.scrollPos = chatLines - this.getLineCount(); |
| 242 | } |
| 243 | |
| 244 | if (this.scrollPos <= 0) { |
| 245 | this.scrollPos = 0; |
| 246 | this.isScrolled = false; |
| 247 | } |
| 248 | |
| 249 | } |
| 250 | |
| 251 | @Override |
| 252 | public void drawComponentHover(int mouseX, int mouseY) { |
no test coverage detected