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