Added #button, #container, #door, and #pressure_plate tags
This commit is contained in:
parent
5859958ec2
commit
e6557ab5f3
2 changed files with 8 additions and 3 deletions
|
|
@ -1121,9 +1121,13 @@ public class CommandHandler implements CommandExecutor {
|
||||||
return worldName;
|
return worldName;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Map<String, Set<Material>> getTags() {
|
protected static Map<String, Set<Material>> getTags() {
|
||||||
Map<String, Set<Material>> tagMap = new HashMap<>();
|
Map<String, Set<Material>> tagMap = new HashMap<>();
|
||||||
|
tagMap.put("#button", BlockGroup.BUTTONS);
|
||||||
|
tagMap.put("#container", BlockGroup.CONTAINERS);
|
||||||
|
tagMap.put("#door", BlockGroup.DOORS);
|
||||||
tagMap.put("#natural", BlockGroup.NATURAL_BLOCKS);
|
tagMap.put("#natural", BlockGroup.NATURAL_BLOCKS);
|
||||||
|
tagMap.put("#pressure_plate", BlockGroup.PRESSURE_PLATES);
|
||||||
tagMap.put("#shulker_box", BlockGroup.SHULKER_BOXES);
|
tagMap.put("#shulker_box", BlockGroup.SHULKER_BOXES);
|
||||||
return tagMap;
|
return tagMap;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -318,8 +318,9 @@ public class TabHandler implements TabCompleter {
|
||||||
}
|
}
|
||||||
|
|
||||||
// add custom tags
|
// add custom tags
|
||||||
materialList.add("#natural");
|
for (String tag : CommandHandler.getTags().keySet()) {
|
||||||
materialList.add("#shulker_box");
|
materialList.add(tag);
|
||||||
|
}
|
||||||
|
|
||||||
materials = new ArrayList<>(materialList);
|
materials = new ArrayList<>(materialList);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue