*/ class EntityFrostWalkerEvent extends EntityEvent implements Cancellable{ use CancellableTrait; public function __construct( Living $entity, private int $radius, private Liquid $liquid, private Block $targetBlock ){ $this->entity = $entity; } public function getRadius() : int{ return $this->radius; } public function setRadius(int $radius) : void{ $this->radius = $radius; } /** * Returns the liquid that gets frozen */ public function getLiquid() : Liquid{ return $this->liquid; } /** * Sets the liquid that gets frozen */ public function setLiquid(Liquid $liquid) : void{ $this->liquid = $liquid; } /** * Returns the block that replaces the liquid */ public function getTargetBlock() : Block{ return $this->targetBlock; } /** * Sets the block that replaces the liquid */ public function setTargetBlock(Block $targetBlock) : void{ $this->targetBlock = $targetBlock; } }