player swinging events.
This commit is contained in:
1 parent
c6529c3d3c
commit
f54ab746fe
8 files changed
+61
-4
No files matched your search
@@ -512,6 +512,11 @@ public class EntityValue extends Value
|
||||
put("sneaking", (e, a) -> e.isSneaking()?Value.TRUE:Value.FALSE);
|
||||
put("sprinting", (e, a) -> e.isSprinting()?Value.TRUE:Value.FALSE);
|
||||
put("swimming", (e, a) -> e.isSwimming()?Value.TRUE:Value.FALSE);
|
||||
put("swinging", (e, a) -> {
|
||||
if (e instanceof LivingEntity) return new NumericValue(((LivingEntity) e).handSwinging);
|
||||
return Value.NULL;
|
||||
});
|
||||
|
||||
put("air", (e, a) -> new NumericValue(e.getAir()));
|
||||
put("persistence", (e, a) -> {
|
||||
if (e instanceof MobEntity) return new NumericValue(((MobEntity) e).isPersistent());
|
||||
|
||||
Reference in new issue
Block a user