Ejemplo n.º 1
0
 public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null)
 {
     $this->getLevel()->setBlock($block, $this, true, true);
     $nbt = new Compound("", [new String("id", Tile::FLOWER_POT), new Int("id", $this->id), new Int("data", $this->data), new Int("x", $this->x), new Int("y", $this->y), new Int("z", $this->z)]);
     Tile::createTile(Tile::FLOWER_POT, $this->getLevel()->getChunk($this->x >> 4, $this->z >> 4), $nbt);
     return true;
 }