Skip to content

SnowGolem 5.46.0 ​

class · pocketmine\entity\golem\SnowGolem · source

Extends Mob

Bedrock values (entities/snow_golem.json): 4 health, 0.4x1.8, movement 0.2. Throws a snowball every second at monsters within 6 blocks (shooting range 10, 1.25x). Leaves a trail of snow layers in biomes colder than 0.81, and takes 1 damage per second in biomes warmer than 1.0 and in water or rain. Shears take its pumpkin off (SHEARED, drops a carved pumpkin). Loot (loot_tables/entities/snowman.json): 0-15 snowballs.

Constants ​

TAG_SHEARED ​

php
public const TAG_SHEARED = "Sheared"

Methods ​

canBeLeashed() ​

php
public function canBeLeashed() : bool

canFreeze() ​

php
public function canFreeze() : bool

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : bool

getDrops() ​

php
public function getDrops() : array

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

initEntity() protected ​

php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void

isSheared() ​

php
public function isSheared() : bool

onInteractWithItem() protected ​

php
protected function onInteractWithItem(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : bool

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag

setSheared() ​

php
public function setSheared(bool $sheared) : void

syncNetworkData() protected ​

php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void

throwSnowball() ​

php
public function throwSnowball(\pocketmine\entity\Living $target, float $distance) : void

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