blob: 8635426ff9df4dd6f609d439cab3b2ef953636fe (
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
|
package net.minecraft.server;
public class BiomeTheEndDecorator extends BiomeDecorator {
protected WorldGenerator J;
public BiomeTheEndDecorator() {
this.J = new WorldGenEnder(Blocks.WHITESTONE);
}
protected void a(BiomeBase biomebase) {
this.a();
if (this.b.nextInt(5) == 0) {
int i = this.c + this.b.nextInt(16) + 8;
int j = this.d + this.b.nextInt(16) + 8;
int k = this.a.i(i, j);
this.J.a(this.a, this.b, i, k, j);
}
if (this.c == 0 && this.d == 0) {
EntityEnderDragon entityenderdragon = new EntityEnderDragon(this.a);
entityenderdragon.setPositionRotation(0.0D, 128.0D, 0.0D, this.b.nextFloat() * 360.0F, 0.0F);
this.a.addEntity(entityenderdragon);
}
}
}
|