Skip to content

Strider 5.46.0 ​

class · pocketmine\entity\animal\Strider · source

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 ​

php
public const TAG_SADDLED = "Saddled"

Methods ​

canBeRiddenBy() ​

php
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : bool

canBeSteeredBy() ​

php
public function canBeSteeredBy(\pocketmine\player\Player $rider) : 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

getAdultDrops() protected ​

php
protected function getAdultDrops() : array

getBoostItemTypeId() protected ​

php
protected function getBoostItemTypeId() : ?int

getBoostProperties() protected ​

php
protected function getBoostProperties() : array

getFreezeDamage() protected ​

php
protected function getFreezeDamage() : float

getInitialSizeInfo() protected ​

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

getItemInteractButtonText() protected ​

php
protected function getItemInteractButtonText(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : ?string

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getPickedItem() ​

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

getRiddenInput() protected ​

php
protected function getRiddenInput(\pocketmine\entity\riding\RiderInput $input) : array

getRiddenSpeed() protected ​

php
protected function getRiddenSpeed(\pocketmine\player\Player $rider) : float

getRideInteractText() protected ​

php
protected function getRideInteractText() : string

getRideableSeats() ​

php
public function getRideableSeats() : array

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

isCold() ​

php
public function isCold() : bool

Whether the strider is out of lava and shivering.

isFireProof() ​

php
public function isFireProof() : bool

isOnLava() ​

php
public function isOnLava() : bool

isSaddled() ​

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

setSaddled() ​

php
public function setSaddled(bool $saddled) : 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.