mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
IEntityLivingBase:
-Added stopOnBlock, stopOnLiquid, and stopOnCollision options for getLookingAtEntities() IWorld: -Added stopOnBlock, stopOnLiquid, and stopOnCollision options for rayCastBlock & rayCastPos
This commit is contained in:
1 parent
4e5ed2d758
commit
d54035687c
6 files changed
+87
-64
No files matched your search
@@ -131,4 +131,11 @@ public class ScriptBlock implements IBlock {
|
||||
this.tile.writeToNBT(compound);
|
||||
return NpcAPI.Instance().getINbt(compound);
|
||||
}
|
||||
|
||||
public boolean isCollidable() {
|
||||
boolean minBoundsZero = block.getBlockBoundsMinX() == 0 && block.getBlockBoundsMinY() == 0 && block.getBlockBoundsMinZ() == 0;
|
||||
boolean maxBoundsZero = block.getBlockBoundsMaxX() == 0 && block.getBlockBoundsMaxY() == 0 && block.getBlockBoundsMaxZ() == 0;
|
||||
|
||||
return !(minBoundsZero && maxBoundsZero);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user