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

Method deleteChatLine

Minecraft-Utils/1.13/src/Gui2ndChat.java:326–348  ·  view source on GitHub ↗

finds and deletes a Chat line by ID

(int id)

Source from the content-addressed store, hash-verified

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

Callers 1

setChatLineMethod · 0.95

Calls 2

getChatLineIDMethod · 0.95
nextMethod · 0.45

Tested by

no test coverage detected