@Override
protected void registerWorldChunkManager() {
if(wrapped.getType().equals("overworld")){
this.worldChunkMgr = new WorldChunkManager(this.worldObj);
}else if(wrapped.getType().equals("void")){
this.worldChunkMgr = new WorldChunkManagerVoid(this.worldObj);
}else if(wrapped.getType().equals("nether")){
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.hell, 0.0F);
this.isHellWorld = true;
this.hasNoSky = true;
}else if(wrapped.getType().equals("end")){
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.sky, 0.0F);
this.hasNoSky = true;
}else if(wrapped.getType().equals("flat")){
FlatGeneratorInfo info = FlatGeneratorInfo.createFlatGeneratorFromString(this.wrapped.getOptions());
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.getBiome(info.getBiome()), 0.5F);
}else{
throw new IllegalArgumentException("Unknown world type " + this.wrapped.getType());
}
}
DelegatingWorldProvider.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:nailed
作者:
评论列表
文章目录