use of mathax.client.utils.world.Dimension in project Client by MatHax.
the class Search method onPostTick.
@EventHandler
private void onPostTick(TickEvent.Post event) {
Dimension dimension = PlayerUtils.getDimension();
if (lastDimension != dimension)
onActivate();
lastDimension = dimension;
}
use of mathax.client.utils.world.Dimension in project Client by MatHax.
the class LogoutSpots method onTick.
@EventHandler
private void onTick(TickEvent.Post event) {
if (mc.getNetworkHandler().getPlayerList().size() != lastPlayerList.size()) {
for (PlayerListEntry entry : lastPlayerList) {
if (mc.getNetworkHandler().getPlayerList().stream().anyMatch(playerListEntry -> playerListEntry.getProfile().equals(entry.getProfile())))
continue;
for (PlayerEntity player : lastPlayers) {
if (player.getUuid().equals(entry.getProfile().getId())) {
add(new Entry(player));
}
}
}
lastPlayerList.clear();
lastPlayerList.addAll(mc.getNetworkHandler().getPlayerList());
updateLastPlayers();
}
if (timer <= 0) {
updateLastPlayers();
timer = 10;
} else {
timer--;
}
Dimension dimension = PlayerUtils.getDimension();
if (dimension != lastDimension)
players.clear();
lastDimension = dimension;
}
Aggregations