@@ -10,72 +10,77 @@ public abstract class BiomeBase {
10
10
public static final BiomeBase OCEAN = (new BiomeOcean (0 )).b (112 ).a ("Ocean" ).b (-1.0F , 0.4F );
11
11
public static final BiomeBase PLAINS = (new BiomePlains (1 )).b (9286496 ).a ("Plains" ).a (0.8F , 0.4F );
12
12
public static final BiomeBase DESERT = (new BiomeDesert (2 )).b (16421912 ).a ("Desert" ).g ().a (2.0F , 0.0F ).b (0.1F , 0.2F );
13
- public static final BiomeBase EXTREME_HILLS = (new BiomeBigHills (3 )).b (6316128 ).a ("Extreme Hills" ).b (0.2F , 1.8F ).a (0.2F , 0.3F );
13
+ public static final BiomeBase EXTREME_HILLS = (new BiomeBigHills (3 )).b (6316128 ).a ("Extreme Hills" ).b (0.2F , 1.3F ).a (0.2F , 0.3F );
14
14
public static final BiomeBase FOREST = (new BiomeForest (4 )).b (353825 ).a ("Forest" ).a (5159473 ).a (0.7F , 0.8F );
15
- public static final BiomeBase TAIGA = (new BiomeTaiga (5 )).b (747097 ).a ("Taiga" ).a (5159473 ).a (0.3F , 0.8F ).b (0.1F , 0.4F );
15
+ public static final BiomeBase TAIGA = (new BiomeTaiga (5 )).b (747097 ).a ("Taiga" ).a (5159473 ).a (0.05F , 0.8F ).b (0.1F , 0.4F );
16
16
public static final BiomeBase SWAMPLAND = (new BiomeSwamp (6 )).b (522674 ).a ("Swampland" ).a (9154376 ).b (-0.2F , 0.1F ).a (0.8F , 0.9F );
17
17
public static final BiomeBase RIVER = (new BiomeRiver (7 )).b (255 ).a ("River" ).b (-0.5F , 0.0F );
18
18
public static final BiomeBase HELL = (new BiomeHell (8 )).b (16711680 ).a ("Hell" ).g ().a (2.0F , 0.0F );
19
19
public static final BiomeBase SKY = (new BiomeTheEnd (9 )).b (8421631 ).a ("Sky" ).g ();
20
20
public static final BiomeBase FROZEN_OCEAN = (new BiomeOcean (10 )).b (9474208 ).a ("FrozenOcean" ).b (-1.0F , 0.5F ).a (0.0F , 0.5F );
21
21
public static final BiomeBase FROZEN_RIVER = (new BiomeRiver (11 )).b (10526975 ).a ("FrozenRiver" ).b (-0.5F , 0.0F ).a (0.0F , 0.5F );
22
22
public static final BiomeBase ICE_PLAINS = (new BiomeIcePlains (12 )).b (16777215 ).a ("Ice Plains" ).a (0.0F , 0.5F );
23
- public static final BiomeBase ICE_MOUNTAINS = (new BiomeIcePlains (13 )).b (10526880 ).a ("Ice Mountains" ).b (0.2F , 1.8F ).a (0.0F , 0.5F );
23
+ public static final BiomeBase ICE_MOUNTAINS = (new BiomeIcePlains (13 )).b (10526880 ).a ("Ice Mountains" ).b (0.2F , 1.2F ).a (0.0F , 0.5F );
24
24
public static final BiomeBase MUSHROOM_ISLAND = (new BiomeMushrooms (14 )).b (16711935 ).a ("MushroomIsland" ).a (0.9F , 1.0F ).b (0.2F , 1.0F );
25
25
public static final BiomeBase MUSHROOM_SHORE = (new BiomeMushrooms (15 )).b (10486015 ).a ("MushroomIslandShore" ).a (0.9F , 1.0F ).b (-1.0F , 0.1F );
26
- public String r ;
27
- public int s ;
28
- public byte t ;
29
- public byte u ;
30
- public int v ;
31
- public float w ;
32
- public float x ;
33
- public float y ;
34
- public float z ;
26
+ public static final BiomeBase BEACH = ( new BiomeBeach ( 16 )). b ( 16440917 ). a ( "Beach" ). a ( 0.8F , 0.4F ). b ( 0.0F , 0.1F ) ;
27
+ public static final BiomeBase DESERT_HILLS = ( new BiomeDesert ( 17 )). b ( 13786898 ). a ( "DesertHills" ). g (). a ( 2.0F , 0.0F ). b ( 0.2F , 0.7F ) ;
28
+ public static final BiomeBase FOREST_HILLS = ( new BiomeForest ( 18 )). b ( 2250012 ). a ( "ForestHills" ). a ( 5159473 ). a ( 0.7F , 0.8F ). b ( 0.2F , 0.6F ) ;
29
+ public static final BiomeBase TAIGA_HILLS = ( new BiomeTaiga ( 19 )). b ( 1456435 ). a ( "TaigaHills" ). a ( 5159473 ). a ( 0.05F , 0.8F ). b ( 0.2F , 0.7F ) ;
30
+ public static final BiomeBase SMALL_MOUNTAINS = ( new BiomeBigHills ( 20 )). b ( 7501978 ). a ( "Extreme Hills Edge" ). b ( 0.2F , 0.8F ). a ( 0.2F , 0.3F ) ;
31
+ public String w ;
32
+ public int x ;
33
+ public byte y ;
34
+ public byte z ;
35
35
public int A ;
36
- public BiomeDecorator B ;
37
- protected List C ;
38
- protected List D ;
39
- protected List E ;
40
- private boolean K ;
41
- private boolean L ;
42
- public final int F ;
43
- protected WorldGenTrees G ;
44
- protected WorldGenBigTree H ;
45
- protected WorldGenForest I ;
46
- protected WorldGenSwampTree J ;
36
+ public float B ;
37
+ public float C ;
38
+ public float D ;
39
+ public float E ;
40
+ public int F ;
41
+ public BiomeDecorator G ;
42
+ protected List H ;
43
+ protected List I ;
44
+ protected List J ;
45
+ private boolean P ;
46
+ private boolean Q ;
47
+ public final int K ;
48
+ protected WorldGenTrees L ;
49
+ protected WorldGenBigTree M ;
50
+ protected WorldGenForest N ;
51
+ protected WorldGenSwampTree O ;
47
52
48
53
protected BiomeBase (int i ) {
49
- this .t = (byte ) Block .GRASS .id ;
50
- this .u = (byte ) Block .DIRT .id ;
51
- this .v = 5169201 ;
52
- this .w = 0.1F ;
53
- this .x = 0.3F ;
54
- this .y = 0.5F ;
55
- this .z = 0.5F ;
56
- this .A = 16777215 ;
57
- this .C = new ArrayList ();
58
- this .D = new ArrayList ();
59
- this .E = new ArrayList ();
60
- this .L = true ;
61
- this .G = new WorldGenTrees (false );
62
- this .H = new WorldGenBigTree (false );
63
- this .I = new WorldGenForest (false );
64
- this .J = new WorldGenSwampTree ();
65
- this .F = i ;
54
+ this .y = (byte ) Block .GRASS .id ;
55
+ this .z = (byte ) Block .DIRT .id ;
56
+ this .A = 5169201 ;
57
+ this .B = 0.1F ;
58
+ this .C = 0.3F ;
59
+ this .D = 0.5F ;
60
+ this .E = 0.5F ;
61
+ this .F = 16777215 ;
62
+ this .H = new ArrayList ();
63
+ this .I = new ArrayList ();
64
+ this .J = new ArrayList ();
65
+ this .Q = true ;
66
+ this .L = new WorldGenTrees (false );
67
+ this .M = new WorldGenBigTree (false );
68
+ this .N = new WorldGenForest (false );
69
+ this .O = new WorldGenSwampTree ();
70
+ this .K = i ;
66
71
a [i ] = this ;
67
- this .B = this .a ();
68
- this .D .add (new BiomeMeta (EntitySheep .class , 12 , 4 , 4 ));
69
- this .D .add (new BiomeMeta (EntityPig .class , 10 , 4 , 4 ));
70
- this .D .add (new BiomeMeta (EntityChicken .class , 10 , 4 , 4 ));
71
- this .D .add (new BiomeMeta (EntityCow .class , 8 , 4 , 4 ));
72
- this .C .add (new BiomeMeta (EntitySpider .class , 10 , 4 , 4 ));
73
- this .C .add (new BiomeMeta (EntityZombie .class , 10 , 4 , 4 ));
74
- this .C .add (new BiomeMeta (EntitySkeleton .class , 10 , 4 , 4 ));
75
- this .C .add (new BiomeMeta (EntityCreeper .class , 10 , 4 , 4 ));
76
- this .C .add (new BiomeMeta (EntitySlime .class , 10 , 4 , 4 ));
77
- this .C .add (new BiomeMeta (EntityEnderman .class , 1 , 1 , 4 ));
78
- this .E .add (new BiomeMeta (EntitySquid .class , 10 , 4 , 4 ));
72
+ this .G = this .a ();
73
+ this .I .add (new BiomeMeta (EntitySheep .class , 12 , 4 , 4 ));
74
+ this .I .add (new BiomeMeta (EntityPig .class , 10 , 4 , 4 ));
75
+ this .I .add (new BiomeMeta (EntityChicken .class , 10 , 4 , 4 ));
76
+ this .I .add (new BiomeMeta (EntityCow .class , 8 , 4 , 4 ));
77
+ this .H .add (new BiomeMeta (EntitySpider .class , 10 , 4 , 4 ));
78
+ this .H .add (new BiomeMeta (EntityZombie .class , 10 , 4 , 4 ));
79
+ this .H .add (new BiomeMeta (EntitySkeleton .class , 10 , 4 , 4 ));
80
+ this .H .add (new BiomeMeta (EntityCreeper .class , 10 , 4 , 4 ));
81
+ this .H .add (new BiomeMeta (EntitySlime .class , 10 , 4 , 4 ));
82
+ this .H .add (new BiomeMeta (EntityEnderman .class , 1 , 1 , 4 ));
83
+ this .J .add (new BiomeMeta (EntitySquid .class , 10 , 4 , 4 ));
79
84
}
80
85
81
86
protected BiomeDecorator a () {
@@ -86,67 +91,67 @@ private BiomeBase a(float f, float f1) {
86
91
if (f > 0.1F && f < 0.2F ) {
87
92
throw new IllegalArgumentException ("Please avoid temperatures in the range 0.1 - 0.2 because of snow" );
88
93
} else {
89
- this .y = f ;
90
- this .z = f1 ;
94
+ this .D = f ;
95
+ this .E = f1 ;
91
96
return this ;
92
97
}
93
98
}
94
99
95
100
private BiomeBase b (float f , float f1 ) {
96
- this .w = f ;
97
- this .x = f1 ;
101
+ this .B = f ;
102
+ this .C = f1 ;
98
103
return this ;
99
104
}
100
105
101
106
private BiomeBase g () {
102
- this .L = false ;
107
+ this .Q = false ;
103
108
return this ;
104
109
}
105
110
106
111
public WorldGenerator a (Random random ) {
107
- return (WorldGenerator ) (random .nextInt (10 ) == 0 ? this .H : this .G );
112
+ return (WorldGenerator ) (random .nextInt (10 ) == 0 ? this .M : this .L );
108
113
}
109
114
110
115
protected BiomeBase a (String s ) {
111
- this .r = s ;
116
+ this .w = s ;
112
117
return this ;
113
118
}
114
119
115
120
protected BiomeBase a (int i ) {
116
- this .v = i ;
121
+ this .A = i ;
117
122
return this ;
118
123
}
119
124
120
125
protected BiomeBase b (int i ) {
121
- this .s = i ;
126
+ this .x = i ;
122
127
return this ;
123
128
}
124
129
125
130
public List getMobs (EnumCreatureType enumcreaturetype ) {
126
- return enumcreaturetype == EnumCreatureType .MONSTER ? this .C : (enumcreaturetype == EnumCreatureType .CREATURE ? this .D : (enumcreaturetype == EnumCreatureType .WATER_CREATURE ? this .E : null ));
131
+ return enumcreaturetype == EnumCreatureType .MONSTER ? this .H : (enumcreaturetype == EnumCreatureType .CREATURE ? this .I : (enumcreaturetype == EnumCreatureType .WATER_CREATURE ? this .J : null ));
127
132
}
128
133
129
134
public boolean b () {
130
- return this .K ;
135
+ return this .P ;
131
136
}
132
137
133
138
public boolean c () {
134
- return this .K ? false : this .L ;
139
+ return this .P ? false : this .Q ;
135
140
}
136
141
137
142
public float d () {
138
143
return 0.1F ;
139
144
}
140
145
141
146
public final int e () {
142
- return (int ) (this .z * 65536.0F );
147
+ return (int ) (this .E * 65536.0F );
143
148
}
144
149
145
150
public final int f () {
146
- return (int ) (this .y * 65536.0F );
151
+ return (int ) (this .D * 65536.0F );
147
152
}
148
153
149
154
public void a (World world , Random random , int i , int j ) {
150
- this .B .a (world , random , i , j );
155
+ this .G .a (world , random , i , j );
151
156
}
152
157
}
0 commit comments