MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / addJuickContact

Method addJuickContact

src/main/java/Client/Roster.java:846–856  ·  view source on GitHub ↗
(Contact c)

Source from the content-addressed store, hash-verified

844 }
845
846 public void addJuickContact(Contact c) {
847 if (isJuickContact(c)) {
848 juickContacts.addElement(c);
849 // Далее урезаный аналог updateMainJuickContact(). Побыстрее него, работает *только* при добавлении контакта.
850 if (isMainJuickContact(c)) {
851 indexMainJuickContact = juickContacts.size() - 1;
852 } else if (indexMainJuickContact < 0) {
853 indexMainJuickContact = 0;
854 }
855 }
856 }
857
858 public void deleteJuickContact(Contact c) {
859 if (juickContacts.removeElement(c)) {

Callers 1

updateContactMethod · 0.95

Calls 4

isJuickContactMethod · 0.95
isMainJuickContactMethod · 0.95
addElementMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected