Search in sources :

Example 1 with ChunkInstance

use of com.kahzerx.kahzerxmod.profiler.instances.ChunkInstance in project KahzerxMod by otakucraft.

the class ChunkProfiler method onTick.

@Override
public void onTick(MinecraftServer server, String id) {
    chunkList.add(new ChunkInstance("", 0, 0));
    this.addResult(server.getTicks(), new ProfilerResult("loaded_chunks", id, new ArrayList<>(chunkList)));
    chunkList.clear();
}
Also used : ChunkInstance(com.kahzerx.kahzerxmod.profiler.instances.ChunkInstance) ArrayList(java.util.ArrayList) ProfilerResult(com.kahzerx.kahzerxmod.profiler.instances.ProfilerResult)

Aggregations

ChunkInstance (com.kahzerx.kahzerxmod.profiler.instances.ChunkInstance)1 ProfilerResult (com.kahzerx.kahzerxmod.profiler.instances.ProfilerResult)1 ArrayList (java.util.ArrayList)1