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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetChunkCount(cn.nukkit.level.Level world) intgetEntityCount(cn.nukkit.level.Level world) intdoublegetTPS()Iterable<cn.nukkit.level.Level> Get the worlds running on the server platform.booleanbooleanbooleanCheck if server platform provides TPS calculation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.djrapitops.plan.gathering.ServerSensor
getMspt, usingRedisBungee
-
Constructor Details
-
NukkitSensor
-
-
Method Details
-
supportsDirectTPS
public boolean supportsDirectTPS()Description copied from interface:ServerSensorCheck if server platform provides TPS calculation.- Specified by:
supportsDirectTPSin interfaceServerSensor<cn.nukkit.level.Level>- Returns:
- false if the server doesn't count TPS.
-
getTPS
public double getTPS()- Specified by:
getTPSin interfaceServerSensor<cn.nukkit.level.Level>
-
getChunkCount
public int getChunkCount(cn.nukkit.level.Level world) - Specified by:
getChunkCountin interfaceServerSensor<cn.nukkit.level.Level>
-
getEntityCount
public int getEntityCount(cn.nukkit.level.Level world) - Specified by:
getEntityCountin interfaceServerSensor<cn.nukkit.level.Level>
-
getOnlinePlayerCount
public int getOnlinePlayerCount()- Specified by:
getOnlinePlayerCountin interfaceServerSensor<cn.nukkit.level.Level>
-
getWorlds
Description copied from interface:ServerSensorGet the worlds running on the server platform.- Specified by:
getWorldsin interfaceServerSensor<cn.nukkit.level.Level>- Returns:
- Empty collection if the platform doesn't support worlds.
-
getOnlinePlayerNames
- Specified by:
getOnlinePlayerNamesin interfaceServerSensor<cn.nukkit.level.Level>
-
getInstalledPlugins
- Specified by:
getInstalledPluginsin interfaceServerSensor<cn.nukkit.level.Level>
-
supportsBans
public boolean supportsBans()- Specified by:
supportsBansin interfaceServerSensor<cn.nukkit.level.Level>
-
isBanned
- Specified by:
isBannedin interfaceServerSensor<cn.nukkit.level.Level>
-