Package-level declarations

Opt-in entity behaviours: EffectiveEntityInteractable (click / attack handlers, also on vanilla EntityTypes) and EffectiveEntityLookable (turn towards nearby targets).

Types

Link copied to clipboard

Behaviour that dispatches left/right interactions on custom entities, mirroring ru.hukm.effectiveSpigot.minecraft.items.interfaces.EffectiveClickable for entities.

Link copied to clipboard

Behaviour that makes custom entities rotate to face nearby targets as those targets move. Register via EffectiveEntity.doEntityNearLookable.

Link copied to clipboard
typealias EntityPredicate = (Entity) -> Boolean

Predicate deciding whether a custom entity should turn to look at a given nearby entity.

Link copied to clipboard
typealias InteractCallback = (EffectiveEntityInteractable.EventsCallOptions) -> EffectiveAbstractInteract.Result

Callback for an entity interact handler; its EffectiveAbstractInteract.Result cancels or allows the event.