Class TPSBuilder


  • public class TPSBuilder
    extends java.lang.Object
    Builder for TPS to make it easier to manage.
    • Field Detail

      • date

        protected long date
      • ticksPerSecond

        protected double ticksPerSecond
      • players

        protected int players
      • cpuUsage

        protected double cpuUsage
      • usedMemory

        protected long usedMemory
      • entityCount

        protected int entityCount
      • chunksLoaded

        protected int chunksLoaded
      • freeDiskSpace

        protected long freeDiskSpace
    • Method Detail

      • toTPS

        public TPS toTPS()
      • playersOnline

        public TPSBuilder playersOnline​(int online)
      • usedCPU

        public TPSBuilder usedCPU​(double cpu)
      • usedMemory

        public TPSBuilder usedMemory​(long ram)
      • entities

        public TPSBuilder entities​(int count)
      • chunksLoaded

        public TPSBuilder chunksLoaded​(int chunksLoaded)
      • freeDiskSpace

        public TPSBuilder freeDiskSpace​(long freeDiskSpace)