createPacketEntity

public PacketEntityInterface createPacketEntity(EntityType entityType, Location location)

Creates a generic packet entity of the specified type. The entity exists only in packets - not added to the world. Use getBukkitEntity() to modify properties, then syncMetadata() to update viewers. All MagmaCore-supported adapters are expected to implement this.

Return

A packet entity that can be shown to players

Parameters

entityType

The Bukkit entity type to create

location

The spawn location