Package com.djrapitops.plan.gathering
Class NukkitSensor
java.lang.Object
com.djrapitops.plan.gathering.NukkitSensor
- All Implemented Interfaces:
ServerSensor<cn.nukkit.level.Level>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getChunkCount
(cn.nukkit.level.Level world) int
getEntityCount
(cn.nukkit.level.Level world) int
double
getTPS()
Iterable<cn.nukkit.level.Level>
Get the worlds running on the server platform.boolean
Check if server platform provides TPS calculation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.gathering.ServerSensor
usingRedisBungee
-
Constructor Details
-
NukkitSensor
-
-
Method Details
-
supportsDirectTPS
public boolean supportsDirectTPS()Description copied from interface:ServerSensor
Check if server platform provides TPS calculation.- Specified by:
supportsDirectTPS
in interfaceServerSensor<cn.nukkit.level.Level>
- Returns:
- false if the server doesn't count TPS.
-
getTPS
public double getTPS()- Specified by:
getTPS
in interfaceServerSensor<cn.nukkit.level.Level>
-
getChunkCount
public int getChunkCount(cn.nukkit.level.Level world) - Specified by:
getChunkCount
in interfaceServerSensor<cn.nukkit.level.Level>
-
getEntityCount
public int getEntityCount(cn.nukkit.level.Level world) - Specified by:
getEntityCount
in interfaceServerSensor<cn.nukkit.level.Level>
-
getOnlinePlayerCount
public int getOnlinePlayerCount()- Specified by:
getOnlinePlayerCount
in interfaceServerSensor<cn.nukkit.level.Level>
-
getWorlds
Description copied from interface:ServerSensor
Get the worlds running on the server platform.- Specified by:
getWorlds
in interfaceServerSensor<cn.nukkit.level.Level>
- Returns:
- Empty collection if the platform doesn't support worlds.
-
getOnlinePlayerNames
- Specified by:
getOnlinePlayerNames
in interfaceServerSensor<cn.nukkit.level.Level>
-
getInstalledPlugins
- Specified by:
getInstalledPlugins
in interfaceServerSensor<cn.nukkit.level.Level>
-