本文整理了Java中net.minecraft.profiler.Profiler.<init>()
方法的一些代码示例,展示了Profiler.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Profiler.<init>()
方法的具体详情如下:
包路径:net.minecraft.profiler.Profiler
类名称:Profiler
方法名:<init>
暂无
代码示例来源:origin: superckl/BiomeTweaker
public DummyWorld(final WorldInfo info) {
super(null, info, new DummyWorldProvider(), new Profiler(), true);
}
代码示例来源:origin: Lunatrius/Schematica
public static WorldDummy instance() {
if (instance == null) {
final WorldSettings worldSettings = new WorldSettings(0, GameType.CREATIVE, false, false, WorldType.FLAT);
final WorldInfo worldInfo = new WorldInfo(worldSettings, "FakeWorld");
instance = new WorldDummy(new SaveHandlerSchematic(), worldInfo, new WorldProviderSchematic(), new Profiler(), false);
}
return instance;
}
}
代码示例来源:origin: SquidDev-CC/plethora
private WorldDummy() {
super(
new SaveHandlerMP(),
new WorldInfo(new WorldSettings(0, GameType.SPECTATOR, false, false, WorldType.FLAT), "dummy"),
new WorldProvider() {
@Override
public DimensionType getDimensionType() {
return DimensionType.OVERWORLD;
}
},
new Profiler(),
false
);
provider.setWorld(this);
chunkProvider = createChunkProvider();
}
代码示例来源:origin: gegy1000/Terrarium
public PreviewDummyWorld(WorldType worldType, GenerationSettings settings) {
super(new SaveHandler(), new WorldInfo(createSettings(worldType, settings), "terrarium_preview"), new WorldProviderSurface(), new Profiler(), false);
int dimension = this.provider.getDimension();
this.provider.setWorld(this);
this.provider.setDimension(dimension);
this.generator = new ComposableChunkGenerator(this);
this.chunkProvider = this.createChunkProvider();
this.initCapabilities();
}
代码示例来源:origin: GregTechCE/GregTech
public DummyWorld() {
super(new DummySaveHandler(), new WorldInfo(DEFAULT_SETTINGS, "DummyServer"), new WorldProviderSurface(), new Profiler(), false);
// Guarantee the dimension ID was not reset by the provider
this.provider.setDimension(Integer.MAX_VALUE);
int providerDim = this.provider.getDimension();
this.provider.setWorld(this);
this.provider.setDimension(providerDim);
this.chunkProvider = this.createChunkProvider();
//noinspection ConstantConditions
this.perWorldStorage = new MapStorage(null);
this.calculateInitialSkylight();
this.calculateInitialWeather();
this.getWorldBorder().setSize(30000000);
}
内容来源于网络,如有侵权,请联系作者删除!