Advertisement
Guest User

Untitled

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