Skip to content

Sniffer 5.46.0 ​

class · pocketmine\entity\animal\Sniffer · source

Extends Animal

Bedrock values (entities/sniffer.json): 14 health, 1.9x1.75, movement 0.09, babies (snifflets) scale 0.45 and grow up in 40 minutes. Tempted (1.25x), bred and healed (2) with torchflower seeds; breeding makes it pregnant and it lays a sniffer egg next to it. Every 8 minutes (Java dig cooldown) a sniffer standing on dirt, grass, podzol, moss or mud digs for 6 seconds (DIGGING) and drops a torchflower seed or a pitcher pod. No loot; XP 1-3.

Constants ​

SNIFFLET_AGE ​

php
public const SNIFFLET_AGE = -48000

TAG_DIG_COOLDOWN ​

php
public const TAG_DIG_COOLDOWN = "DigCooldown"

TAG_PREGNANT ​

php
public const TAG_PREGNANT = "IsPregnant"

Methods ​

canDig() ​

php
public function canDig() : bool

createBaby() protected ​

php
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\Animal

entityBaseTick() protected ​

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

getBabyScale() protected ​

php
protected function getBabyScale() : float

getFeedGrowth() protected ​

php
protected function getFeedGrowth(\pocketmine\item\Item $item) : int

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

isBreedingItem() ​

php
public function isBreedingItem(\pocketmine\item\Item $item) : bool

isDigging() ​

php
public function isDigging() : bool

isPregnant() ​

php
public function isPregnant() : 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

setPregnant() ​

php
public function setPregnant(bool $pregnant) : void

spawnBaby() protected ​

php
protected function spawnBaby(\pocketmine\entity\animal\Animal $partner) : ?\pocketmine\entity\animal\Animal

startDigging() ​

php
public function startDigging() : void

syncNetworkData() protected ​

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

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