mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 10:22:25 +00:00
Tags can now be added through a new sub gui in the NPC advanced tab.
This commit is contained in:
1 parent
9a6cf94c73
commit
aba24fc93c
7 files changed
+182
-20
No files matched your search
@@ -10,10 +10,7 @@ import noppes.npcs.api.handler.data.ITag;
|
||||
import noppes.npcs.controllers.data.Tag;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
import java.util.zip.GZIPInputStream;
|
||||
|
||||
public class TagController implements ITagHandler {
|
||||
@@ -206,6 +203,7 @@ public class TagController implements ITagHandler {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public Tag getTagFromName(String tagname){
|
||||
for (Map.Entry<Integer,Tag> entryTag: TagController.getInstance().tags.entrySet()){
|
||||
if (entryTag.getValue().name.equalsIgnoreCase(tagname)){
|
||||
@@ -224,4 +222,13 @@ 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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user