use of com.kahzerx.kahzerxmod.profiler.instances.BlockEntityInstance in project KahzerxMod by otakucraft.
the class BlockEntitiesProfiler method onTick.
@Override
public void onTick(MinecraftServer server, String id) {
blockEntityList.add(new BlockEntityInstance("", "", 0.0D, 0.0D, 0.0D));
this.addResult(server.getTicks(), new ProfilerResult("block_entities", id, new ArrayList<>(blockEntityList)));
blockEntityList.clear();
}
use of com.kahzerx.kahzerxmod.profiler.instances.BlockEntityInstance in project KahzerxMod by otakucraft.
the class BlockEntitiesProfiler method addBlockEntity.
public static void addBlockEntity(BlockEntity be, World world) {
Identifier id = BlockEntityType.getId(be.getType());
if (id == null) {
return;
}
BlockPos pos = be.getPos();
blockEntityList.add(new BlockEntityInstance(id.getPath(), world.getRegistryKey().getValue().getPath(), pos.getX(), pos.getY(), pos.getZ()));
}
Aggregations