mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +00:00
Added blocking() function to ScriptPlayer to check whether the player is blocking.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user