finds and deletes a Chat line by ID
(int id)
| 336 | * finds and deletes a Chat line by ID |
| 337 | */ |
| 338 | public void deleteChatLine(int id) { |
| 339 | Iterator<GuiChatLine> iterator = this.singleChatLines.iterator(); |
| 340 | GuiChatLine chatLine; |
| 341 | |
| 342 | while (iterator.hasNext()) { |
| 343 | chatLine = iterator.next(); |
| 344 | |
| 345 | if (chatLine.getChatLineID() == id) { |
| 346 | iterator.remove(); |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | iterator = this.chatLines.iterator(); |
| 351 | |
| 352 | while (iterator.hasNext()) { |
| 353 | chatLine = iterator.next(); |
| 354 | |
| 355 | if (chatLine.getChatLineID() == id) { |
| 356 | iterator.remove(); |
| 357 | break; |
| 358 | } |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | public int getChatWidth() { |
| 363 | return op.d(MinecraftFactory.getClassProxyCallback().get2ndChatWidth()); |
no test coverage detected