protected function recalculateBoundingBox()
{
if ($this->meta % 4 === 0) {
$x1 = 0.25;
$x2 = 0.75;
$z1 = 0;
$z2 = 0.5;
} elseif ($this->meta % 4 === 1) {
$x1 = 0.5;
$x2 = 1;
$z1 = 0.25;
$z2 = 0.75;
} elseif ($this->meta % 4 === 2) {
$x1 = 0.25;
$x2 = 0.75;
$z1 = 0.5;
$z2 = 1;
} elseif ($this->meta % 4 === 3) {
$x1 = 0;
$x2 = 0.5;
$z1 = 0.25;
$z2 = 0.75;
}
return new AxisAlignedBB($this->x + $x1, $this->y + 0.25, $this->z + $z1, $this->x + $x2, $this->y + 0.75, $this->z + $z2);
}