new filters for entities

This commit is contained in:
gnembon committed 2020-07-21 23:31:44 -03:00
1 parent 5ed55ecf9e
commit 87b8892e42
3 files changed
+82 -10

No files matched your search

@@ -45,6 +45,16 @@ public class ValueConversions
return new StringValue(id.getPath());
return new StringValue(id.toString());
}
public static String simplify(Identifier id)
{
if (id == null) // should be Value.NULL
return "";
if (id.getNamespace().equals("minecraft"))
return id.getPath();
return id.toString();
}
public static Value ofGlobalPos(GlobalPos pos)
{
return ListValue.of(