本文整理匯總了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();