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