Class NoLocation

java.lang.Object
com.hypixel.hytale.builtin.adventure.worldevents.condition.location.NoLocation
All Implemented Interfaces:
EventLocation

public class NoLocation extends Object implements EventLocation
  • Field Details

  • Constructor Details

    • NoLocation

      public NoLocation()
  • Method Details

    • find

      @Nonnull public CompletableFuture<Vector3iList> find(@Nonnull Store<EntityStore> store)
      Description copied from interface: EventLocation
      Starts a location search and returns a future that resolves with the candidate positions found, or an empty list if none were found.

      The search may complete synchronously or asynchronously on any thread. The caller only reads the resolved value after confirming the future is done.

      The caller will not invoke find again until the previously returned future completes, whether successfully, exceptionally, or via cancellation. Implementations may therefore hold per-search state between the call and completion without guarding against overlapping searches.

      The returned list is owned by the caller once the future resolves. The caller may filter or otherwise mutate it in place. Do not resolve the future with a cached or pooled list.

      Specified by:
      find in interface EventLocation
      Parameters:
      store - the entity store for the world the condition is running in
      Returns:
      a future that resolves with the candidate positions found