Added blocking() function to ScriptPlayer to check whether the player is blocking.

This commit is contained in:
luisc committed 2021-12-15 00:02:27 -06:00
1 parent cad275e845
commit 12cb6a2937
1 file changed
+4
@@ -400,4 +400,8 @@ public class ScriptPlayer<T extends EntityPlayerMP> extends ScriptLivingBase<T>
}
return null;
}
public boolean blocking() {
return player.isBlocking();
}
}