finds and deletes a Chat line by ID
(int id)
| 326 | * finds and deletes a Chat line by ID |
| 327 | */ |
| 328 | public void deleteChatLine(int id) { |
| 329 | Iterator<GuiChatLine> iterator = this.singleChatLines.iterator(); |
| 330 | GuiChatLine chatLine; |
| 331 | |
| 332 | while (iterator.hasNext()) { |
| 333 | chatLine = iterator.next(); |
| 334 | |
| 335 | if (chatLine.getChatLineID() == id) { |
| 336 | iterator.remove(); |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | iterator = this.chatLines.iterator(); |
| 341 | |
| 342 | while (iterator.hasNext()) { |
| 343 | chatLine = iterator.next(); |
| 344 | |
| 345 | if (chatLine.getChatLineID() == id) { |
| 346 | iterator.remove(); |
| 347 | break; |
| 348 | } |
| 349 | } |
| 350 | } |
| 351 | |
| 352 | public int getChatWidth() { |
| 353 | return rk.d(MinecraftFactory.getClassProxyCallback().get2ndChatWidth()); |
no test coverage detected