Skip to content

IronGolemOfferFlowerGoal 5.46.0 ​

class · pocketmine\entity\golem\IronGolemOfferFlowerGoal · source

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 = 8000

OFFER_TICKS ​

php
public const OFFER_TICKS = 400

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\golem\IronGolem $golem)

canContinue() ​

php
public function canContinue() : bool

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

start() ​

php
public function start() : void

stop() ​

php
public function stop() : void

tick() ​

php
public function tick() : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.