Use UUIDs instead of entity ids for storing invisible players

This commit is contained in:
johni0702
2015-06-01 14:35:34 +02:00
parent 2918e163d2
commit 4c5e084edc
4 changed files with 18 additions and 20 deletions

View File

@@ -1,16 +1,17 @@
package eu.crushedpixel.replaymod.holders;
import java.util.List;
import java.util.Collection;
import java.util.UUID;
public class PlayerVisibility {
public PlayerVisibility(List<Integer> hidden) {
this.hidden = hidden.toArray(new Integer[hidden.size()]);
public PlayerVisibility(Collection<UUID> hidden) {
this.hidden = hidden.toArray(new UUID[hidden.size()]);
}
private Integer[] hidden;
private UUID[] hidden;
public Integer[] getHiddenPlayers() {
public UUID[] getHiddenPlayers() {
return hidden;
}