Advertisement
Guest User

Untitled

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