Nautilus 5.46.0
Extends TameableAnimal
Implements MountInventoryHolder
Bedrock values (entities/nautilus.json, 1.26.50): 15 health, 0.875x0.95 (babies 0.44x0.5), knockback resistance 0.3, swims (underwater speed 0.07 when not ridden), attacks whoever hurts it (3 damage). Wild adults are tempted by pufferfish (and their buckets), which tame them with a 1/3 chance; tamed ones and babies are tempted by every fish (or fish bucket, which gives back a water bucket), tamed ones panic when hurt, are healed by fish (2 to 12 health) and breed (only tamed ones). Tamed adults take a saddle and nautilus armor and are ridden underwater, see NautilusTrait. Loot (loot_tables/entities/nautilus.json): nautilus shell, 5% (+1% per Looting level), player kills only; and its equipment.
Constants
TAME_CHANCE
public const TAME_CHANCE = 1 / 3Methods
canBeRiddenBy()
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : boolconsumeFood() protected
protected function consumeFood(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : voidcreateBaby() 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() : arraygetInitialSizeInfo() 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() : stringgetRideableSeats()
public function getRideableSeats() : arraygetSwimSpeed() protected
protected function getSwimSpeed() : floathandleRiderInput()
public function handleRiderInput(\pocketmine\player\Player $rider, \pocketmine\entity\riding\RiderInput $input) : voidinitEntity() protected
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBreedingItem()
public function isBreedingItem(\pocketmine\item\Item $item) : boolisInWaterForRiding()
public function isInWaterForRiding() : boolisTemptItem()
public function isTemptItem(\pocketmine\item\Item $item) : boolWild adults only follow pufferfish, the others any fish.
onDeath() protected
protected function onDeath() : voidonDispose() protected
protected function onDispose() : voidonInteractWithItem() protected
protected function onInteractWithItem(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : boolregisterGoals() protected
protected function registerGoals() : voidsaveNBT()
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetSitting()
public function setSitting(bool $sitting) : voidA nautilus never sits.
stopSwimming() protected
protected function stopSwimming() : voidswimTowards() protected
protected function swimTowards(float $x, float $y, float $z, float $speed) : voidsyncNetworkData() protected
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void