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

Method deleteChatLine

Minecraft-Utils/1.8.9/src/Gui2ndChat.java:337–359  ·  view source on GitHub ↗

finds and deletes a Chat line by ID

(int id)

Source from the content-addressed store, hash-verified

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

Callers 1

setChatLineMethod · 0.95

Calls 2

getChatLineIDMethod · 0.95
nextMethod · 0.45

Tested by

no test coverage detected