EntityConversion 5.46.0
Entities of structure templates (villagers, iron golems, cats, farm animals...): Java entity data to the data of a pending entity (see Chunk::addPendingEntityNBT()).
Methods
bedrockId()
php
public static function bedrockId(string $javaId) : stringpendingEntity()
php
public static function pendingEntity(\pocketmine\nbt\tag\CompoundTag $java, float $x, float $y, float $z, float $yaw, float $pitch) : ?\pocketmine\nbt\tag\CompoundTagPending entity data (Bedrock identifier, position, rotation) for a Java entity placed at the given position.
rotation()
php
public static function rotation(\pocketmine\nbt\tag\CompoundTag $java) : arrayYaw and pitch of Java entity data ("Rotation" list).
