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