本文整理汇总了Java中net.canarymod.config.WorldConfiguration类的典型用法代码示例。如果您正苦于以下问题:Java WorldConfiguration类的具体用法?Java WorldConfiguration怎么用?Java WorldConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WorldConfiguration类属于net.canarymod.config包,在下文中一共展示了WorldConfiguration类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createWorld
import net.canarymod.config.WorldConfiguration; //导入依赖的package包/类
@Override
public boolean createWorld(String name, long seed, DimensionType dimensionType, WorldType worldType) {
WorldConfiguration worldConfiguration = WorldConfiguration.create(name, dimensionType);
if (worldConfiguration == null) {
log.debug("World configuration already exists for " + name + "_" + dimensionType.getName());
worldConfiguration = Configuration.getWorldConfig(name + "_" + dimensionType.getName());
} else {
log.debug("Updating world configuration for " + name + "_" + dimensionType.getName());
worldConfiguration.getFile().setLong("world-seed", seed);
worldConfiguration.getFile().setString("world-type", worldType.toString());
}
return this.createWorld(worldConfiguration);
}
示例2: getWorldConfiguration
import net.canarymod.config.WorldConfiguration; //导入依赖的package包/类
protected WorldConfiguration getWorldConfiguration() {
return Configuration.getWorldConfig(getHandle().getFqName());
}
示例3: getWorldConfig
import net.canarymod.config.WorldConfiguration; //导入依赖的package包/类
@Override
public WorldConfiguration getWorldConfig() {
return this.worldConfig;
}
示例4: createWorld
import net.canarymod.config.WorldConfiguration; //导入依赖的package包/类
@Override
public boolean createWorld(final WorldConfiguration configuration) {
// TODO Auto-generated method stub
return false;
}
示例5: getWorldConfig
import net.canarymod.config.WorldConfiguration; //导入依赖的package包/类
WorldConfiguration getWorldConfig();