use of com.kahzerx.kahzerxmod.profiler.instances.EntityInstance in project KahzerxMod by otakucraft.
the class EntityProfiler method addEntity.
public static void addEntity(Entity e, ServerWorld world) {
Identifier id = EntityType.getId(e.getType());
if (id == null) {
return;
}
BlockPos pos = e.getBlockPos();
entityList.add(new EntityInstance(id.getPath(), world.getRegistryKey().getValue().getPath(), pos.getX(), pos.getY(), pos.getZ()));
}
use of com.kahzerx.kahzerxmod.profiler.instances.EntityInstance in project KahzerxMod by otakucraft.
the class EntityProfiler method onTick.
@Override
public void onTick(MinecraftServer server, String id) {
entityList.add(new EntityInstance("", "", 0.0D, 0.0D, 0.0D));
this.addResult(server.getTicks(), new ProfilerResult("entities", id, new ArrayList<>(entityList)));
entityList.clear();
}
Aggregations