blob: 6787c5b3522fd4ae8771d5dd2396e5e4f0c6af40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
package jp.plusplus.fbs.world.crack.biome;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import jp.plusplus.fbs.FBS;
import net.minecraft.entity.boss.EntityDragon;
import net.minecraft.entity.monster.EntityEnderman;
import net.minecraft.entity.monster.EntityZombie;
import net.minecraft.init.Blocks;
import net.minecraft.world.WorldProviderEnd;
import net.minecraft.world.biome.*;
import net.minecraft.world.gen.feature.WorldGenAbstractTree;
import net.minecraft.world.gen.feature.WorldGenSpikes;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.minecraftforge.event.terraingen.TerrainGen;
import java.util.Random;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.TREE;
/**
* Created by plusplus_F on 2015/10/29.
*/
public class BiomeGenCrack extends BiomeGenBase {
public BiomeGenCrack(int p_i1990_1_) {
super(p_i1990_1_, true);
this.spawnableMonsterList.clear();
this.spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear();
this.spawnableCaveCreatureList.clear();
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 10, 4, 4));
this.topBlock = Blocks.dirt;
this.fillerBlock = Blocks.dirt;
this.theBiomeDecorator = new BiomeCrackDecorator();
this.theBiomeDecorator.treesPerChunk = 2;
this.theBiomeDecorator.grassPerChunk = 3;
this.theBiomeDecorator.flowersPerChunk = 2;
this.setTemperatureRainfall(0.7F, 0.F);
setBiomeName("Dimension Crack");
}
@SideOnly(Side.CLIENT)
public int getSkyColorByTemp(float p_76731_1_) {
//return 0xfa000000;
return 0xffffffff;
}
@Override
public WorldGenAbstractTree func_150567_a(Random p_150567_1_) {
return (WorldGenAbstractTree) this.worldGeneratorTrees;
}
public static class BiomeCrackDecorator extends BiomeDecorator {
public BiomeCrackDecorator() {
}
protected void genDecorations(BiomeGenBase p_150513_1_) {
super.genDecorations(p_150513_1_);
}
}
}
|