MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / equals

Method equals

src/main/java/net/minecraft/util/ChatStyle.java:363–428  ·  view source on GitHub ↗
(Object p_equals_1_)

Source from the content-addressed store, hash-verified

361 }
362
363 public boolean equals(Object p_equals_1_)
364 {
365 if (this == p_equals_1_)
366 {
367 return true;
368 }
369 else if (!(p_equals_1_ instanceof ChatStyle))
370 {
371 return false;
372 }
373 else
374 {
375 boolean flag;
376 label0:
377 {
378 ChatStyle chatstyle = (ChatStyle)p_equals_1_;
379
380 if (this.getBold() == chatstyle.getBold() && this.getColor() == chatstyle.getColor() && this.getItalic() == chatstyle.getItalic() && this.getObfuscated() == chatstyle.getObfuscated() && this.getStrikethrough() == chatstyle.getStrikethrough() && this.getUnderlined() == chatstyle.getUnderlined())
381 {
382 label85:
383 {
384 if (this.getChatClickEvent() != null)
385 {
386 if (!this.getChatClickEvent().equals(chatstyle.getChatClickEvent()))
387 {
388 break label85;
389 }
390 }
391 else if (chatstyle.getChatClickEvent() != null)
392 {
393 break label85;
394 }
395
396 if (this.getChatHoverEvent() != null)
397 {
398 if (!this.getChatHoverEvent().equals(chatstyle.getChatHoverEvent()))
399 {
400 break label85;
401 }
402 }
403 else if (chatstyle.getChatHoverEvent() != null)
404 {
405 break label85;
406 }
407
408 if (this.getInsertion() != null)
409 {
410 if (this.getInsertion().equals(chatstyle.getInsertion()))
411 {
412 break label0;
413 }
414 }
415 else if (chatstyle.getInsertion() == null)
416 {
417 break label0;
418 }
419 }
420 }

Callers

nothing calls this directly

Calls 9

getBoldMethod · 0.95
getColorMethod · 0.95
getItalicMethod · 0.95
getObfuscatedMethod · 0.95
getStrikethroughMethod · 0.95
getUnderlinedMethod · 0.95
getChatClickEventMethod · 0.95
getChatHoverEventMethod · 0.95
getInsertionMethod · 0.95

Tested by

no test coverage detected