BedrioxDOCUMENTATION
API INTERFACE

EntityRegistrar

Public interface in Bedriox\Api\Entity.

Bedriox\Api\Entity\EntityRegistrar
interfaceBedriox\Api\Entity

Public methods

register(Bedriox\Api\Entity\CustomMobDefinition $definition, bool $replace = false): void

Typed public method.

spawn(Bedriox\Api\Entity\CustomEntityType $type, Bedriox\Api\World\Position $position, float $yaw = 0.0, float $pitch = 0.0): void

Queues one server-authoritative instance of a custom type owned by this plugin.

View exact source ↗