BedrioxDOCUMENTATION
API CLASS

InteractionEntity

Invisible, non-colliding interaction region optionally attached to a display.

Bedriox\Api\Display\InteractionEntity
classBedriox\Api\Display

Public methods

__construct(string $uniqueId, Closure $state, Closure $mutate, Closure $remove)

Typed public method.

getUniqueId(): string

Typed public method.

getPosition(): Bedriox\Api\World\Position

Typed public method.

getWidth(): float

Typed public method.

getHeight(): float

Typed public method.

setSize(float $width, float $height): void

Typed public method.

isEnabled(): bool

Typed public method.

setEnabled(bool $enabled): void

Typed public method.

isRemoved(): bool

Typed public method.

remove(): void

Typed public method.

static validateSize(float $width, float $height): void

Typed public method.

Constants

DEFAULT_WIDTHDEFAULT_HEIGHTMAXIMUM_SIZE

View exact source ↗