49 $blockPosition = CommonTypes::getBlockPosition($in);
50 $this->x = $blockPosition->getX() / 8;
51 $this->y = $blockPosition->getY() / 8;
52 $this->z = $blockPosition->getZ() / 8;
53 $this->volume = LE::readFloat($in);
54 $this->pitch = LE::readFloat($in);
59 CommonTypes::putBlockPosition($out,
new BlockPosition((
int) ($this->x * 8), (
int) ($this->y * 8), (
int) ($this->z * 8)));
60 LE::writeFloat($out, $this->volume);
61 LE::writeFloat($out, $this->pitch);