MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / deleteChatLine

Method deleteChatLine

Minecraft-Utils/1.10/src/Gui2ndChat.java:338–360  ·  view source on GitHub ↗

finds and deletes a Chat line by ID

(int id)

Source from the content-addressed store, hash-verified

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());

Callers 1

setChatLineMethod · 0.95

Calls 2

getChatLineIDMethod · 0.95
nextMethod · 0.45

Tested by

no test coverage detected