Add cloud height to WorldType

This commit is contained in:
StormTiberius 2013-08-03 05:45:22 +03:00
parent 6397939c9e
commit 4ea7e8d828
2 changed files with 20 additions and 1 deletions

View file

@ -32,6 +32,15 @@
+ return DimensionManager.createProviderFor(par0);
}
@SideOnly(Side.CLIENT)
@@ -209,7 +216,7 @@
*/
public float getCloudHeight()
{
- return 128.0F;
+ return this.terrainType.getCloudHeight();
}
@SideOnly(Side.CLIENT)
@@ -268,4 +275,277 @@
* Returns the dimension's name, e.g. "The End", "Nether", or "Overworld".

View file

@ -10,7 +10,7 @@
import net.minecraft.world.*;
import net.minecraft.world.gen.*;
import net.minecraft.world.biome.*;
@@ -224,4 +227,37 @@
@@ -224,4 +227,47 @@
* Called when 'Create New World' button is pressed before starting game
*/
public void onGUICreateWorldPress() { }
@ -46,5 +46,15 @@
+ public boolean isCustomizable()
+ {
+ return this == FLAT;
+ }
+
+ @SideOnly(Side.CLIENT)
+
+ /**
+ * the y level at which clouds are rendered.
+ */
+ public float getCloudHeight()
+ {
+ return 128.0F;
+ }
}