IronGolemOfferFlowerGoal 5.46.0
Extends Goal
During the day an iron golem now and then holds out a poppy to a villager within 6 blocks for 20 seconds (vanilla OfferFlowerGoal: 1 in 8000 per tick, 400 ticks), shown with the IRON_GOLEM_OFFER_FLOWER and IRON_GOLEM_WITHDRAW_FLOWER actor events.
Constants
CHANCE
php
public const CHANCE = 8000OFFER_TICKS
php
public const OFFER_TICKS = 400Methods
__construct()
php
public function __construct(\pocketmine\entity\golem\IronGolem $golem)canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intstart()
php
public function start() : voidstop()
php
public function stop() : voidtick()
php
public function tick() : void