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