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.

@FunctionalInterface public interface BeaconReceiverProvider
Supplies additional, non-NPC entities that can receive beacon messages, for ActionBeacon's broadcast.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    collectInRange(org.joml.Vector3d origin, double range, Store<EntityStore> store, List<Ref<EntityStore>> out)
    Appends every candidate receiver within range of origin to out.
  • 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 within range of origin to out. 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.