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