forked from zhdev/griefus
Add EntityUtils#asTranslatable to convert EntityType to the MiniMessage key
Yes
This commit is contained in:
parent
ab0a01b12f
commit
e743be7615
1 changed files with 4 additions and 0 deletions
|
|
@ -137,4 +137,8 @@ public class EntityUtils extends Queue {
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String asTranslatable(EntityType type){
|
||||||
|
return "<lang:" + type.translationKey() + ">";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue