Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean inRange(Entity entity)
- {
- AxisAlignedBB range;
- boolean state = false;
- for(BlockPos pos : scarecrowLocations)
- {
- if(entity.getCollisionBoundingBox().intersectsWith(range = new AxisAlignedBB(pos.getX()+16,pos.getY()+16,pos.getZ()+16,pos.getX()-16,pos.getY()-16,pos.getZ()-16)))
- {
- state = true;
- }
- else state = false;
- }
- return state;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement