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