/** * 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()); } }
@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); } }
/** * 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; }
/** * creates a new world chunk manager for WorldProvider */ public void createBiomeProvider() { this.biomeProvider = new BiomeProviderSingle(Biomes.HELL); this.isHellWorld = true; this.hasNoSky = true; }
/** * 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; }
@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; } }
@Override public void createBiomeProvider() { this.biomeProvider = new BiomeProviderSingle(LCBiomes.underworld); this.setDimension(LCDimensions.underworldID); this.hasNoSky = true; this.isHellWorld = false; // place some water bruh }
@Override public void init() { this.biomeProvider = new BiomeProviderSingle(Biomes.HELL); this.doesWaterVaporize = true; this.nether = true; }
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); } } } }
@Override public void init() { biomeProvider = new BiomeProviderSingle(ACBiomes.omothol); setDimension(ACLib.omothol_id); // hasNoSky = true; }
@Override protected void init() { this.hasSkyLight = true; this.biomeProvider = new BiomeProviderSingle(Biomes.SKY); }
@Override public void init() { biomeProvider = new BiomeProviderSingle(ModBiomes.BIOME_UNDERWORLD); setDimension(ConfigValues.underworldID); }
public TeletoryWorldProvider() { this.biomeProvider = new BiomeProviderSingle(Biomes.VOID); this.hasSkyLight = false; }
/** * creates a new world chunk manager for WorldProvider */ public void createBiomeProvider() { this.biomeProvider = new BiomeProviderSingle(Biomes.SKY); this.hasSkyLight = false; System.out.println(getDimension()); }
@Override protected void init() { this.biomeProvider = new BiomeProviderSingle(ModBiomes.DestinyIslandsBiome); this.hasSkyLight = true; NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(ModDimensions.destinyIslands); }
@Override protected void init() { this.biomeProvider = new BiomeProviderSingle(ModBiomes.DiveToTheHeartBiome); this.hasSkyLight = true; NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(ModDimensions.diveToTheHeart); }
@Override protected void init() { this.biomeProvider = new BiomeProviderSingle(ModBiomes.TraverseTownBiome); this.hasSkyLight = false; NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(ModDimensions.traverseTownID); }
@Override public void init() { biomeProvider = new BiomeProviderSingle(ACBiomes.dark_realm); setDimension(ACLib.dark_realm_id); // hasNoSky = true; }
@Override public void init() { biomeProvider = new BiomeProviderSingle(ACBiomes.abyssal_wastelands); setDimension(ACLib.abyssal_wasteland_id); // hasNoSky = true; }