Package net.citizensnpcs.api
Class LocationLookup
java.lang.Object
org.bukkit.scheduler.BukkitRunnable
net.citizensnpcs.api.LocationLookup
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
-
Constructor Summary
-
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) getNearbyVisiblePlayers
(Entity entity, double range) getNearbyVisiblePlayers
(Entity base, Location location, double dist) 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()
-
-
Method Details
-
getMetadata
-
getNearbyNPCs
-
getNearbyNPCs
-
getNearbyNPCs
-
getNearbyPlayers
-
getNearbyPlayers
-
getNearbyVisiblePlayers
-
getNearbyVisiblePlayers
-
onJoin
-
onQuit
-
onWorldUnload
-
registerMetadata
public <T> LocationLookup.PerPlayerMetadata<T> registerMetadata(String key, BiConsumer<LocationLookup.PerPlayerMetadata<T>, PlayerJoinEvent> onJoin) -
run
public void run()
-