本文整理汇总了Java中net.minecraft.world.biome.BiomeProviderSingle类的典型用法代码示例。如果您正苦于以下问题:Java BiomeProviderSingle类的具体用法?Java BiomeProviderSingle怎么用?Java BiomeProviderSingle使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BiomeProviderSingle类属于net.minecraft.world.biome包,在下文中一共展示了BiomeProviderSingle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createBiomeProvider
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
protected void createBiomeProvider()
{
this.field_191067_f = true;
WorldType worldtype = this.worldObj.getWorldInfo().getTerrainType();
if (worldtype == WorldType.FLAT)
{
FlatGeneratorInfo flatgeneratorinfo = FlatGeneratorInfo.createFlatGeneratorFromString(this.worldObj.getWorldInfo().getGeneratorOptions());
this.biomeProvider = new BiomeProviderSingle(Biome.getBiome(flatgeneratorinfo.getBiome(), Biomes.DEFAULT));
}
else if (worldtype == WorldType.DEBUG_WORLD)
{
this.biomeProvider = new BiomeProviderSingle(Biomes.PLAINS);
}
else
{
this.biomeProvider = new BiomeProvider(this.worldObj.getWorldInfo());
}
}
示例2: init
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
protected void init()
{
super.init();
// If this dimension has been configured for a single biome,
// then set it here so that it's early enough for Sponge to use it.
String biomeName = DimensionConfig.instance().getBiomeFor(this.getDimension());
Biome biome = biomeName != null ? Biome.REGISTRY.getObject(new ResourceLocation(biomeName)) : null;
if (biome != null)
{
JustEnoughDimensions.logInfo("WorldProviderSurfaceJED.init(): Using BiomeProviderSingle with biome '{}' for dimension {}",
biomeName, this.getDimension());
this.biomeProvider = new BiomeProviderSingle(biome);
}
}
示例3: createBiomeProvider
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
public void createBiomeProvider()
{
this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
NBTTagCompound nbttagcompound = this.worldObj.getWorldInfo().getDimensionData(DimensionType.THE_END);
this.dragonFightManager = this.worldObj instanceof WorldServer ? new DragonFightManager((WorldServer)this.worldObj, nbttagcompound.getCompoundTag("DragonFight")) : null;
}
示例4: createBiomeProvider
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
public void createBiomeProvider()
{
this.biomeProvider = new BiomeProviderSingle(Biomes.HELL);
this.isHellWorld = true;
this.hasNoSky = true;
}
示例5: createBiomeProvider
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
public void createBiomeProvider()
{
this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
this.hasNoSky = true;
NBTTagCompound nbttagcompound = this.worldObj.getWorldInfo().getDimensionData(DimensionType.THE_END);
this.dragonFightManager = this.worldObj instanceof WorldServer ? new DragonFightManager((WorldServer)this.worldObj, nbttagcompound.getCompoundTag("DragonFight")) : null;
}
示例6: init
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
public void init()
{
if (Config.voidBiomeEnd) {
this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
} else {
this.biomeProvider = new VoidBiomeProvider(world);
}
if (Config.endDragonEnabled) {
NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(DimensionType.THE_END.getId());
this.dragonFightManager = this.world instanceof WorldServer ? new DragonFightVoid((WorldServer)this.world,
nbttagcompound.getCompoundTag("DragonFight")) : null;
}
}
示例7: createBiomeProvider
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
public void createBiomeProvider() {
this.biomeProvider = new BiomeProviderSingle(LCBiomes.underworld);
this.setDimension(LCDimensions.underworldID);
this.hasNoSky = true;
this.isHellWorld = false; // place some water bruh
}
示例8: init
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
public void init()
{
this.biomeProvider = new BiomeProviderSingle(Biomes.HELL);
this.doesWaterVaporize = true;
this.nether = true;
}
示例9: overrideBiomeProvider
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
public static void overrideBiomeProvider(World world)
{
// For WorldProviderSurfaceJED the BiomeProvider has already been set in WorldProviderSurfaceJED#init()
if ((world.provider instanceof WorldProviderSurfaceJED) == false)
{
int dimension = world.provider.getDimension();
String biomeName = DimensionConfig.instance().getBiomeFor(dimension);
Biome biome = biomeName != null ? Biome.REGISTRY.getObject(new ResourceLocation(biomeName)) : null;
if (biome != null && ((world.provider.getBiomeProvider() instanceof BiomeProviderSingle) == false ||
world.provider.getBiomeProvider().getBiome(BlockPos.ORIGIN) != biome))
{
BiomeProvider biomeProvider = new BiomeProviderSingle(biome);
JustEnoughDimensions.logInfo("WorldUtils.overrideBiomeProvider: Overriding the BiomeProvider for dimension {} with {}" +
" using the biome '{}'", dimension, biomeProvider.getClass().getName(), biomeName);
try
{
field_WorldProvider_biomeProvider.set(world.provider, biomeProvider);
}
catch (Exception e)
{
JustEnoughDimensions.logger.error("Failed to override the BiomeProvider of dimension {}", dimension);
}
}
}
}
示例10: init
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
public void init()
{
biomeProvider = new BiomeProviderSingle(ACBiomes.omothol);
setDimension(ACLib.omothol_id);
// hasNoSky = true;
}
示例11: init
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
protected void init()
{
this.hasSkyLight = true;
this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
}
示例12: init
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
public void init() {
biomeProvider = new BiomeProviderSingle(ModBiomes.BIOME_UNDERWORLD);
setDimension(ConfigValues.underworldID);
}
示例13: TeletoryWorldProvider
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
public TeletoryWorldProvider() {
this.biomeProvider = new BiomeProviderSingle(Biomes.VOID);
this.hasSkyLight = false;
}
示例14: createBiomeProvider
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
public void createBiomeProvider() {
this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
this.hasSkyLight = false;
System.out.println(getDimension());
}
示例15: init
import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
protected void init() {
this.biomeProvider = new BiomeProviderSingle(ModBiomes.DestinyIslandsBiome);
this.hasSkyLight = true;
NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(ModDimensions.destinyIslands);
}