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

Method deleteChatLine

Minecraft-Utils/1.12.2/src/Gui2ndChat.java:328–350  ·  view source on GitHub ↗

finds and deletes a Chat line by ID

(int id)

Source from the content-addressed store, hash-verified

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

Callers 1

setChatLineMethod · 0.95

Calls 2

getChatLineIDMethod · 0.95
nextMethod · 0.45

Tested by

no test coverage detected