commands, camera, messages, overlay, ..
This commit is contained in:
parent
75f91dbf4c
commit
d45cd7ec2c
126 changed files with 854 additions and 628 deletions
|
@ -7,25 +7,25 @@ import java.util.Map.Entry;
|
|||
|
||||
import game.collect.Maps;
|
||||
|
||||
import game.network.NetHandlerPlayClient;
|
||||
import game.network.NetHandlerPlayServer;
|
||||
import game.network.ClientPlayer;
|
||||
import game.network.Player;
|
||||
import game.network.Packet;
|
||||
import game.network.PacketBuffer;
|
||||
|
||||
public class S38PacketPlayerListItem implements Packet<NetHandlerPlayClient> {
|
||||
public class S38PacketPlayerListItem implements Packet<ClientPlayer> {
|
||||
private final Map<String, Integer> players = Maps.newHashMap();
|
||||
|
||||
public S38PacketPlayerListItem() {
|
||||
}
|
||||
|
||||
public S38PacketPlayerListItem(boolean remove, NetHandlerPlayServer... conns) {
|
||||
for(NetHandlerPlayServer conn : conns) {
|
||||
public S38PacketPlayerListItem(boolean remove, Player... conns) {
|
||||
for(Player conn : conns) {
|
||||
this.players.put(conn.getUser(), remove ? -1 : conn.getLatency());
|
||||
}
|
||||
}
|
||||
|
||||
public S38PacketPlayerListItem(Iterable<NetHandlerPlayServer> conns) {
|
||||
for(NetHandlerPlayServer conn : conns) {
|
||||
public S38PacketPlayerListItem(Iterable<Player> conns) {
|
||||
for(Player conn : conns) {
|
||||
this.players.put(conn.getUser(), conn.getLatency());
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ public class S38PacketPlayerListItem implements Packet<NetHandlerPlayClient> {
|
|||
}
|
||||
}
|
||||
|
||||
public void processPacket(NetHandlerPlayClient handler) {
|
||||
public void processPacket(ClientPlayer handler) {
|
||||
handler.handlePlayerListItem(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue