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

Method deleteChatLine

Minecraft-Utils/1.10.2/src/Gui2ndChat.java:331–353  ·  view source on GitHub ↗

finds and deletes a Chat line by ID

(int id)

Source from the content-addressed store, hash-verified

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

Callers 1

setChatLineMethod · 0.95

Calls 2

getChatLineIDMethod · 0.95
nextMethod · 0.45

Tested by

no test coverage detected