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

Method tick

The 5zig Mod/src/eu/the5zig/mod/gui/GuiFriends.java:96–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 }
95
96 @Override
97 protected void tick() {
98 serverPinger.pingPendingNetworks();
99 searchText = getTextfieldById(1).getText();
100
101 friendList.clear();
102 for (Friend friend : The5zigMod.getFriendManager().getFriends()) {
103 if (searchText == null || friend.getUsername().toLowerCase(Locale.ROOT).contains(searchText.toLowerCase(Locale.ROOT))) {
104 friendList.add(friend);
105 }
106 }
107 }
108
109 @Override
110 protected void drawScreen(int mouseX, int mouseY, float partialTicks) {

Callers

nothing calls this directly

Calls 9

getFriendManagerMethod · 0.95
getTextfieldByIdMethod · 0.80
pingPendingNetworksMethod · 0.65
getTextMethod · 0.65
clearMethod · 0.65
getUsernameMethod · 0.65
getFriendsMethod · 0.45
containsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected