Contents
Interface BeaconReceiverProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies additional, non-NPC entities that can receive beacon messages, for
ActionBeacon's broadcast.-
Method Summary
Modifier and TypeMethodDescriptionvoidcollectInRange(org.joml.Vector3d origin, double range, Store<EntityStore> store, List<Ref<EntityStore>> out) Appends every candidate receiver withinrangeoforigintoout.
-
Method Details
-
collectInRange
void collectInRange(@Nonnull org.joml.Vector3d origin, double range, @Nonnull Store<EntityStore> store, @Nonnull List<Ref<EntityStore>> out) Appends every candidate receiver withinrangeoforigintoout. Runs on the world thread during beacon execution, so implementations must not make structural store changes.- Parameters:
origin- the broadcasting entity's position.range- the maximum distance to search.store- the entity store to query.out- the list to append in-range candidate references to.
-