Package net.citizensnpcs.api
Class LocationLookup
java.lang.Object
org.bukkit.scheduler.BukkitRunnable
net.citizensnpcs.api.LocationLookup
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilterToVisiblePlayers
(Entity base, Iterable<Player> players) getMetadata
(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) void
onJoin
(PlayerJoinEvent event) void
onQuit
(PlayerQuitEvent event) void
onWorldUnload
(WorldUnloadEvent event) registerMetadata
(String key, BiConsumer<LocationLookup.PerPlayerMetadata<T>, PlayerJoinEvent> onJoin) void
run()
Methods inherited from class org.bukkit.scheduler.BukkitRunnable
cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously
-
Constructor Details
-
LocationLookup
public LocationLookup() -
LocationLookup
-
-
Method Details
-
getMetadata
-
getNearbyNPCs
-
getNearbyNPCs
-
getNearbyNPCs
-
getNearbyPlayers
-
getNearbyPlayers
-
getNearbyPlayers
-
getNearbyVisiblePlayers
-
getNearbyVisiblePlayers
-
filterToVisiblePlayers
-
getNearbyVisiblePlayers
-
onJoin
-
onQuit
-
onWorldUnload
-
registerMetadata
public <T> LocationLookup.PerPlayerMetadata<T> registerMetadata(String key, BiConsumer<LocationLookup.PerPlayerMetadata<T>, PlayerJoinEvent> onJoin) -
run
public void run()
-