Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public boolean hasLeft() {
  2.  
  3. TileEntity te;
  4. boolean s = false;
  5. for(ForgeDirection facing : ForgeDirection.VALID_DIRECTIONS) {
  6.  
  7. te = this.worldObj.getTileEntity(this.xCoord + facing.offsetX + facing.offsetY + facing.offsetZ, this.yCoord, this.zCoord);
  8.  
  9. if(te instanceof TileEntityShelve) s=true;break;
  10. }
  11.  
  12. if(s) return true;
  13. else return false;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement