Added convenience Function
This commit is contained in:
parent
db082ef1be
commit
ba89751ea8
1 changed files with 4 additions and 0 deletions
|
@ -380,6 +380,10 @@ public class TagAPI {
|
|||
public TagLocation(ResourceLocation location) {
|
||||
super(location.getNamespace(), location.getPath());
|
||||
}
|
||||
|
||||
public static<R> TagLocation<R> of(Tag.Named<R> tag){
|
||||
return new TagLocation<R>(tag.getName());
|
||||
}
|
||||
}
|
||||
|
||||
private abstract static class CommonDelegate<T> implements TagNamed<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue