Skip to content

SulfurCube 5.46.0 ​

class · pocketmine\entity\animal\SulfurCube · source

Extends Animal

Sulfur cube (Bedrock values from sulfur_cube.json): a passive slime-like cube that hops around. 95% spawn medium (0.98 blocks, 8 health, movement 0.4), 5% small (0.49, 4 health, 0.3) which grow up in 20 minutes, faster when fed slimeballs. Hops towards players holding slimeballs within 8 blocks. Experience 1-2 (medium).

Not implemented: absorbing a block to take one of the twelve archetypes (actor property minecraft:sulfur_cube_archetype, which needs actor property sync), shearing it back out, explosive priming.

Methods ​

calculateFallDamage() protected ​

php
protected function calculateFallDamage(float $fallDistance) : float

canMate() ​

php
public function canMate(\pocketmine\entity\animal\Animal $other) : bool

createBaby() protected ​

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

destroyCycles() protected ​

php
protected function destroyCycles() : void

getInitialSizeInfo() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getPickedItem() ​

php
public function getPickedItem() : ?\pocketmine\item\Item

getXpDropAmount() ​

php
public function getXpDropAmount() : int

hasMovementUpdate() ​

php
public function hasMovementUpdate() : bool

initEntity() protected ​

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

isBreedingItem() ​

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

onInteractWithItem() protected ​

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

registerGoals() protected ​

php
protected function registerGoals() : void

setAge() ​

php
public function setAge(int $age) : void

syncNetworkData() protected ​

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

tryChangeMovement() protected ​

php
protected function tryChangeMovement() : void

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