Strider 5.46.0
Extends Animal
Bedrock values (strider.json): 20 health, 0.9x1.7, movement 0.16 on land and 0.32 on lava, fire immune, walks on lava (stays on its surface). Out of lava it is cold: it shivers (ActorFlags::SHAKING) and turns purple. Hurt by water and rain. Panics when hurt, follows players holding warped fungus (or warped fungus on a stick), bred with warped fungus; half of them spawn as babies. Loot (adult): 2-5 string (+0-1 per Looting level), and its saddle. Experience 1-3. Riding: a saddled adult carries a player (seat 1.7 up, 0.2 back), steered with a warped fungus on a stick held in the hand (it walks where the rider looks; using the stick boosts it 1.35x for 16 seconds and costs 1 durability, vanilla boostable component). Ridden speed (approximate, Java): 0.28 blocks per tick on lava, 0.18 when cold. Jockeys (see \pocketmine\entity\riding\Jockeys): a zombified piglin on a saddled strider, a baby strider on an adult.
Constants
TAG_SADDLED
public const TAG_SADDLED = "Saddled"Methods
canBeRiddenBy()
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : boolcanBeSteeredBy()
public function canBeSteeredBy(\pocketmine\player\Player $rider) : boolcreateBaby() protected
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\AnimalentityBaseTick() protected
protected function entityBaseTick(int $tickDiff = 1) : boolgetAdultDrops() protected
protected function getAdultDrops() : arraygetBoostItemTypeId() protected
protected function getBoostItemTypeId() : ?intgetBoostProperties() protected
protected function getBoostProperties() : arraygetFreezeDamage() protected
protected function getFreezeDamage() : floatgetInitialSizeInfo() protected
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetItemInteractButtonText() protected
protected function getItemInteractButtonText(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : ?stringgetName()
public function getName() : stringgetNetworkTypeId()
public static function getNetworkTypeId() : stringgetPickedItem()
public function getPickedItem() : ?\pocketmine\item\ItemgetRiddenInput() protected
protected function getRiddenInput(\pocketmine\entity\riding\RiderInput $input) : arraygetRiddenSpeed() protected
protected function getRiddenSpeed(\pocketmine\player\Player $rider) : floatgetRideInteractText() protected
protected function getRideInteractText() : stringgetRideableSeats()
public function getRideableSeats() : arrayhasMovementUpdate()
public function hasMovementUpdate() : boolinitEntity() protected
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBreedingItem()
public function isBreedingItem(\pocketmine\item\Item $item) : boolisCold()
public function isCold() : boolWhether the strider is out of lava and shivering.
isFireProof()
public function isFireProof() : boolisOnLava()
public function isOnLava() : boolisSaddled()
public function isSaddled() : boolonInteractWithItem() protected
protected function onInteractWithItem(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : boolregisterGoals() protected
protected function registerGoals() : voidsaveNBT()
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetSaddled()
public function setSaddled(bool $saddled) : voidsyncNetworkData() protected
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : voidtryChangeMovement() protected
protected function tryChangeMovement() : void