mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-28 05:35:38 +00:00
Tag Code Cleanup
This commit is contained in:
1 parent
df45247c89
commit
81c752c483
2 files changed
+4
-21
No files matched your search
@@ -203,14 +203,6 @@ public class TagController implements ITagHandler {
|
||||
}
|
||||
}
|
||||
|
||||
public int getFirstTagId() {
|
||||
return tags.keySet().iterator().next();
|
||||
}
|
||||
|
||||
public Tag getFirstTag() {
|
||||
return tags.values().iterator().next();
|
||||
}
|
||||
|
||||
public boolean hasName(String newName) {
|
||||
if(newName.trim().isEmpty())
|
||||
return true;
|
||||
@@ -239,15 +231,6 @@ public class TagController implements ITagHandler {
|
||||
return names;
|
||||
}
|
||||
|
||||
public Tag getTagFromUUID(UUID uuid){
|
||||
for (Map.Entry<Integer,Tag> entryTag: TagController.getInstance().tags.entrySet()){
|
||||
if (entryTag.getValue().uuid.equals(uuid)) {
|
||||
return entryTag.getValue();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public HashSet<Tag> getValidTags(TagMap tagMap){
|
||||
HashSet<Tag> tags = new HashSet<Tag>();
|
||||
for(UUID tagUUID : tagMap.getAllUUIDs()){
|
||||
|
||||
Reference in new issue
Block a user