Package net.citizensnpcs.api
Class LocationLookup
java.lang.Object
net.citizensnpcs.api.util.schedulers.SchedulerRunnable
net.citizensnpcs.api.LocationLookup
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMetadata(String key) getNearbyNPCs(NPC npc) getNearbyNPCs(Location base, double dist) getNearbyNPCs(World world, double[] min, double[] max) getNearbyPlayers(NPC npc) getNearbyPlayers(Location base, double dist) getNearbyPlayers(World base, double[] min, double[] max) getNearbyVisiblePlayers(Entity entity, double range) getNearbyVisiblePlayers(Entity base, double[] min, double[] max) getNearbyVisiblePlayers(Entity base, Location location, double range) voidonJoin(PlayerJoinEvent event) voidonQuit(PlayerQuitEvent event) voidonWorldUnload(WorldUnloadEvent event) registerMetadata(String key, BiConsumer<LocationLookup.PerPlayerMetadata<T>, PlayerJoinEvent> onJoin) voidrun()Methods inherited from class net.citizensnpcs.api.util.schedulers.SchedulerRunnable
cancel, getTask, getTaskId, isCancelled, runEntityTask, runEntityTaskLater, runEntityTaskTimer, runRegionTask, runRegionTask, runRegionTaskLater, runRegionTaskLater, runRegionTaskTimer, runRegionTaskTimer, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously, setupTask
-
Constructor Details
-
LocationLookup
public LocationLookup() -
LocationLookup
-
-
Method Details
-
getMetadata
-
getNearbyNPCs
-
getNearbyNPCs
-
getNearbyNPCs
-
getNearbyPlayers
-
getNearbyPlayers
-
getNearbyPlayers
-
getNearbyVisiblePlayers
-
getNearbyVisiblePlayers
-
getNearbyVisiblePlayers
-
onJoin
-
onQuit
-
onWorldUnload
-
registerMetadata
public <T> LocationLookup.PerPlayerMetadata<T> registerMetadata(String key, BiConsumer<LocationLookup.PerPlayerMetadata<T>, PlayerJoinEvent> onJoin) -
run
public void run()- Specified by:
runin interfaceRunnable- Specified by:
runin classSchedulerRunnable
-