Contents
Class NoLocation
java.lang.Object
com.hypixel.hytale.builtin.adventure.worldevents.condition.location.NoLocation
- All Implemented Interfaces:
EventLocation
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(Store<EntityStore> store) Starts a location search and returns a future that resolves with the candidate positions found, or an empty list if none were found.
-
Field Details
-
ID
- See Also:
-
INSTANCE
-
-
Constructor Details
-
NoLocation
public NoLocation()
-
-
Method Details
-
find
Description copied from interface:EventLocationStarts 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
findagain 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:
findin interfaceEventLocation- Parameters:
store- the entity store for the world the condition is running in- Returns:
- a future that resolves with the candidate positions found
-