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

Method deleteChatLine

Minecraft-Utils/1.8/src/Gui2ndChat.java:324–346  ·  view source on GitHub ↗

finds and deletes a Chat line by ID

(int id)

Source from the content-addressed store, hash-verified

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

Callers 1

setChatLineMethod · 0.95

Calls 2

getChatLineIDMethod · 0.95
nextMethod · 0.45

Tested by

no test coverage detected