Merge branch 'master' into 1.17
This commit is contained in:
commit
988357317a
13 files changed
+111
-8
No files matched your search
@@ -551,6 +551,12 @@ public class EntityValue extends Value
|
||||
});
|
||||
|
||||
put("air", (e, a) -> new NumericValue(e.getAir()));
|
||||
put("language", (e, a)->{
|
||||
if(!(e instanceof ServerPlayerEntity))
|
||||
return NULL;
|
||||
String lang = ((ServerPlayerEntityInterface) e).getLanguage();
|
||||
return StringValue.of(lang);
|
||||
});
|
||||
put("persistence", (e, a) -> {
|
||||
if (e instanceof MobEntity) return new NumericValue(((MobEntity) e).isPersistent());
|
||||
return Value.NULL;
|
||||
|
||||
Reference in new issue
Block a user