22declare(strict_types=1);
45 $tile = $this->position->getWorld()->getTile($this->position);
46 assert($tile instanceof TileCauldron);
48 $tile->setCustomWaterColor(
null);
49 $tile->setPotionItem(
null);
65 match($item->getTypeId()){
66 ItemTypeIds::BUCKET => $this->removeFillLevels(self::MAX_FILL_LEVEL, $item, VanillaItems::LAVA_BUCKET(), $returnedItems),
67 ItemTypeIds::POWDER_SNOW_BUCKET, ItemTypeIds::WATER_BUCKET => $this->mix($item, VanillaItems::BUCKET(), $returnedItems),
68 ItemTypeIds::LINGERING_POTION, ItemTypeIds::POTION, ItemTypeIds::SPLASH_POTION => $this->mix($item, VanillaItems::GLASS_BOTTLE(), $returnedItems),
82 if(!$ev->isCancelled()){
83 $entity->setOnFire($ev->getDuration());
onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player=null, array &$returnedItems=[])
onEntityInside(Entity $entity)