68 lines
2.8 KiB
Diff
68 lines
2.8 KiB
Diff
--- ../src-base/minecraft/net/minecraft/world/WorldProvider.java
|
|
+++ ../src-work/minecraft/net/minecraft/world/WorldProvider.java
|
|
@@ -55,37 +55,12 @@
|
|
protected void func_76572_b()
|
|
{
|
|
this.field_191067_f = true;
|
|
- WorldType worldtype = this.field_76579_a.func_72912_H().func_76067_t();
|
|
-
|
|
- if (worldtype == WorldType.field_77138_c)
|
|
- {
|
|
- FlatGeneratorInfo flatgeneratorinfo = FlatGeneratorInfo.func_82651_a(this.field_76579_a.func_72912_H().func_82571_y());
|
|
- this.field_76578_c = new BiomeProviderSingle(Biome.func_180276_a(flatgeneratorinfo.func_82648_a(), Biomes.field_180279_ad));
|
|
- }
|
|
- else if (worldtype == WorldType.field_180272_g)
|
|
- {
|
|
- this.field_76578_c = new BiomeProviderSingle(Biomes.field_76772_c);
|
|
- }
|
|
- else
|
|
- {
|
|
- this.field_76578_c = new BiomeProvider(this.field_76579_a.func_72912_H());
|
|
- }
|
|
+ this.field_76578_c = this.field_76577_b.getBiomeProvider(field_76579_a);
|
|
}
|
|
|
|
public IChunkGenerator func_186060_c()
|
|
{
|
|
- if (this.field_76577_b == WorldType.field_77138_c)
|
|
- {
|
|
- return new ChunkGeneratorFlat(this.field_76579_a, this.field_76579_a.func_72905_C(), this.field_76579_a.func_72912_H().func_76089_r(), this.field_82913_c);
|
|
- }
|
|
- else if (this.field_76577_b == WorldType.field_180272_g)
|
|
- {
|
|
- return new ChunkGeneratorDebug(this.field_76579_a);
|
|
- }
|
|
- else
|
|
- {
|
|
- return this.field_76577_b == WorldType.field_180271_f ? new ChunkGeneratorOverworld(this.field_76579_a, this.field_76579_a.func_72905_C(), this.field_76579_a.func_72912_H().func_76089_r(), this.field_82913_c) : new ChunkGeneratorOverworld(this.field_76579_a, this.field_76579_a.func_72905_C(), this.field_76579_a.func_72912_H().func_76089_r(), this.field_82913_c);
|
|
- }
|
|
+ return this.field_76577_b.getChunkGenerator(field_76579_a, field_82913_c);
|
|
}
|
|
|
|
public boolean func_76566_a(int p_76566_1_, int p_76566_2_)
|
|
@@ -196,13 +171,13 @@
|
|
|
|
public int func_76557_i()
|
|
{
|
|
- return this.field_76577_b == WorldType.field_77138_c ? 4 : this.field_76579_a.func_181545_F() + 1;
|
|
+ return this.field_76577_b.getMinimumSpawnHeight(this.field_76579_a);
|
|
}
|
|
@@ -241,6 +216,371 @@
|
|
return new WorldBorder();
|
|
}
|
|
|
|
+ /*======================================= Forge Start =========================================*/
|
|
+ public boolean canBlockFreeze(BlockPos pos, boolean byWater)
|
|
+ {
|
|
+ return field_76579_a.canBlockFreezeBody(pos, byWater);
|
|
+ }
|
|
+
|
|
+ public boolean canSnowAt(BlockPos pos, boolean checkLight)
|
|
+ {
|
|
+ return field_76579_a.canSnowAtBody(pos, checkLight);
|
|
+ }
|
|
+
|
|
public void func_186061_a(EntityPlayerMP p_186061_1_)
|
|
{
|
|
}
|