net.minecraft.profiler.Profiler.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(152)

本文整理了Java中net.minecraft.profiler.Profiler.<init>()方法的一些代码示例,展示了Profiler.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Profiler.<init>()方法的具体详情如下:
包路径:net.minecraft.profiler.Profiler
类名称:Profiler
方法名:<init>

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);
}

相关文章