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

Method add

src/main/java/net/optifine/NextTickHashSet.java:46–76  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

44 }
45
46 public boolean add(Object obj)
47 {
48 if (!(obj instanceof NextTickListEntry))
49 {
50 return false;
51 }
52 else
53 {
54 NextTickListEntry nextticklistentry = (NextTickListEntry)obj;
55
56 if (nextticklistentry == null)
57 {
58 return false;
59 }
60 else
61 {
62 Set set = this.getSubSet(nextticklistentry, true);
63 boolean flag = set.add(nextticklistentry);
64 boolean flag1 = super.add(obj);
65
66 if (flag != flag1)
67 {
68 throw new IllegalStateException("Added: " + flag + ", addedParent: " + flag1);
69 }
70 else
71 {
72 return flag1;
73 }
74 }
75 }
76 }
77
78 public boolean remove(Object obj)
79 {

Callers 15

NextTickHashSetMethod · 0.95
getMatchBlockIdsMethod · 0.45
readCustomSkiesMethod · 0.45
addAllMethod · 0.45
makePropertyListMethod · 0.45
addToListMethod · 0.45
renderCustomEffectMethod · 0.45
getSubSetMethod · 0.45
iteratorMethod · 0.45
getLocationsVariantsMethod · 0.45
initializeMethod · 0.45

Calls 1

getSubSetMethod · 0.95

Tested by

no test coverage detected