Merge pull request #704 from StormTiberius/master
Adds cloud height to WorldType
This commit is contained in:
commit
c6030b9125
2 changed files with 20 additions and 1 deletions
|
@ -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".
|
||||
|
|
|
@ -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;
|
||||
+ }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue