Send Valid Tags to Client that correlate with UUIDs found on the Server. No longer needs the Clones Data

This commit is contained in:
KAMKEEL committed 2023-03-22 17:58:02 -04:00
1 parent 0943299384
commit 41c4fc66d0
5 files changed
+80 -24

No files matched your search

@@ -2,6 +2,9 @@ package noppes.npcs.controllers.data;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import noppes.npcs.controllers.ServerCloneController;
import noppes.npcs.controllers.TagController;
import java.util.*;
public class TagMap {
@@ -84,4 +87,12 @@ public class TagMap {
return uuids.contains(tag);
}
public HashSet<UUID> getAllUUIDs() {
HashSet<UUID> uuids = new HashSet<UUID>();
for(HashSet<UUID> uuids1 : tagMap.values()){
uuids.addAll(uuids1);
}
return uuids;
}
}