79 if($item->getTypeId() ===
ItemTypeIds::WATER_BUCKET){
80 $this->fill(FillableCauldron::MAX_FILL_LEVEL, VanillaBlocks::WATER_CAULDRON(), $item, VanillaItems::BUCKET(), $returnedItems);
81 }elseif($item->getTypeId() === ItemTypeIds::LAVA_BUCKET){
82 $this->fill(FillableCauldron::MAX_FILL_LEVEL, VanillaBlocks::LAVA_CAULDRON(), $item, VanillaItems::BUCKET(), $returnedItems);
83 }elseif($item->getTypeId() === ItemTypeIds::POWDER_SNOW_BUCKET){
85 }elseif($item instanceof Potion || $item instanceof SplashPotion){
86 if($item->getType() === PotionType::WATER){
87 $this->fill(WaterCauldron::WATER_BOTTLE_FILL_AMOUNT, VanillaBlocks::WATER_CAULDRON(), $item, VanillaItems::GLASS_BOTTLE(), $returnedItems);
89 $this->fill(PotionCauldron::POTION_FILL_AMOUNT, VanillaBlocks::POTION_CAULDRON()->setPotionItem($item), $item, VanillaItems::GLASS_BOTTLE(), $returnedItems);
97 $world = $this->position->getWorld();
98 if($world->getBlock($this->position->up())->getTypeId() === BlockTypeIds::WATER){
99 $cauldron = VanillaBlocks::WATER_CAULDRON()->setFillLevel(FillableCauldron::MAX_FILL_LEVEL);
100 $world->setBlock($this->position, $cauldron);
101 $world->addSound($this->position->add(0.5, 0.5, 0.5), $cauldron->getFillSound());