Package com.djrapitops.plan.gathering
Interface ServerSensor<W>
-
- Type Parameters:
W
- Type of the class representing a minecraft world.
- All Known Implementing Classes:
BukkitSensor
,BungeeSensor
,NukkitSensor
,SpongeSensor
,VelocitySensor
public interface ServerSensor<W>
Allows sensing values from different server platforms.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
getChunkCount(W world)
default int
getEntityCount(W world)
int
getOnlinePlayerCount()
default double
getTPS()
default java.lang.Iterable<W>
getWorlds()
Get the worlds running on the server platform.boolean
supportsDirectTPS()
Check if server platform provides TPS calculation.
-
-
-
Method Detail
-
supportsDirectTPS
boolean supportsDirectTPS()
Check if server platform provides TPS calculation.- Returns:
- false if the server doesn't count TPS.
-
getOnlinePlayerCount
int getOnlinePlayerCount()
-
getTPS
default double getTPS()
-
getWorlds
default java.lang.Iterable<W> getWorlds()
Get the worlds running on the server platform.- Returns:
- Empty collection if the platform doesn't support worlds.
-
getChunkCount
default int getChunkCount(W world)
-
getEntityCount
default int getEntityCount(W world)
-
-