SulfurCube 5.46.0
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) : floatcanMate()
php
public function canMate(\pocketmine\entity\animal\Animal $other) : boolcreateBaby() protected
php
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\AnimaldestroyCycles() protected
php
protected function destroyCycles() : voidgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetPickedItem()
php
public function getPickedItem() : ?\pocketmine\item\ItemgetXpDropAmount()
php
public function getXpDropAmount() : inthasMovementUpdate()
php
public function hasMovementUpdate() : boolinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBreedingItem()
php
public function isBreedingItem(\pocketmine\item\Item $item) : boolonInteractWithItem() protected
php
protected function onInteractWithItem(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : boolregisterGoals() protected
php
protected function registerGoals() : voidsetAge()
php
public function setAge(int $age) : voidsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : voidtryChangeMovement() protected
php
protected function tryChangeMovement() : void