Ejemplo n.º 1
0
 @Override
 public boolean onBlockActivated(
     World world,
     int x,
     int y,
     int z,
     EntityPlayer entityplayer,
     int side,
     float xHit,
     float yHit,
     float zHit) {
   int metadata = world.getBlockMetadata(x, y, z);
   TileEntityBase tileentity =
       (TileEntityBase) BlockHelper.getTileEntity(world, x, y, z, this.getTileMapData(metadata));
   if (tileentity != null) {
     return tileentity.onBlockActivated(entityplayer);
   } else {
     return false;
   }
 }