Skip to content

EntityConversion 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\template\EntityConversion · source

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) : string

pendingEntity() ​

php
public static function pendingEntity(\pocketmine\nbt\tag\CompoundTag $java, float $x, float $y, float $z, float $yaw, float $pitch) : ?\pocketmine\nbt\tag\CompoundTag

Pending 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) : array

Yaw and pitch of Java entity data ("Rotation" list).

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.