mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 14:34:52 +00:00
Send Valid Tags to Client that correlate with UUIDs found on the Server. No longer needs the Clones Data
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user