mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-23 20:39:39 +00:00
Create Tag Map
This commit is contained in:
1 parent
81c752c483
commit
cc2e8805d8
3 files changed
+111
-66
No files matched your search
@@ -2,8 +2,6 @@ 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.*;
|
||||
|
||||
@@ -79,6 +77,14 @@ public class TagMap {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void removeClone(String cloneName) {
|
||||
tagMap.remove(cloneName);
|
||||
}
|
||||
|
||||
public void putClone(String cloneName, HashSet<UUID> uuids) {
|
||||
tagMap.put(cloneName, uuids);
|
||||
}
|
||||
|
||||
public boolean hasTag(String cloneName, UUID tag) {
|
||||
HashSet<UUID> uuids = getUUIDs(cloneName);
|
||||
if(uuids == null){
|
||||
|
||||
Reference in new issue
Block a user