@Override
public boolean bindTo(EntityPlayer player, ItemStack wand, int x, int y, int z, int side) {
Vector3 thisVec = Vector3.fromTileEntityCenter(this);
Vector3 blockVec = new Vector3(x + 0.5, y + 0.5, z + 0.5);
AxisAlignedBB axis = player.worldObj.getBlock(x, y, z).getCollisionBoundingBoxFromPool(player.worldObj, x, y, z);
if(axis == null)
axis = AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1);
if(!blockVec.isInside(axis))
blockVec = new Vector3(axis.minX + (axis.maxX - axis.minX) / 2, axis.minY + (axis.maxY - axis.minY) / 2, axis.minZ + (axis.maxZ - axis.minZ) / 2);