Advertisement
tahg

Untitled

May 9th, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. /**
  2. * returns true if this entity is by a ladder, false otherwise
  3. */
  4. public boolean isOnLadder()
  5. {
  6. int i = MathHelper.floor_double(this.posX);
  7. int j = MathHelper.floor_double(this.boundingBox.minY);
  8. int k = MathHelper.floor_double(this.posZ);
  9. Block block = this.worldObj.getBlock(i, j, k);
  10. return ForgeHooks.isLivingOnLadder(block, worldObj, i, j, k, this);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement