Adds a SkyProvider class that can handle the rendering of the sky

This commit is contained in:
heldplayer committed 2012-08-18 21:05:21 +02:00
1 parent 7f40671ad8
commit 59c77d7ca4
3 files changed
+66 -7

No files matched your search

@@ -1,13 +1,23 @@
--- ../src_base/common/net/minecraft/src/WorldProvider.java
+++ ../src_work/common/net/minecraft/src/WorldProvider.java
@@ -1,5 +1,6 @@
@@ -1,5 +1,7 @@
package net.minecraft.src;
+import net.minecraftforge.client.SkyProvider;
+import net.minecraftforge.common.DimensionManager;
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.asm.SideOnly;
@@ -185,7 +186,7 @@
@@ -30,6 +32,8 @@
/** Array for sunrise/sunset colors (RGBA) */
private float[] colorsSunriseSunset = new float[4];
+
+ private SkyProvider skyProvider = null;
/**
* associate an existing world with a World provider, and setup its lightbrightness table
@@ -185,7 +189,7 @@
public static WorldProvider getProviderForDimension(int par0)
{
@@ -16,7 +26,7 @@
}
@SideOnly(Side.CLIENT)
@@ -251,4 +252,79 @@
@@ -251,4 +255,92 @@
}
public abstract String func_80007_l();
@@ -95,4 +105,17 @@
+ }
+ return 1.0;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public SkyProvider getSkyProvider()
+ {
+ return this.skyProvider;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void setSkyProvider(SkyProvider skyProvider)
+ {
+ this.skyProvider = skyProvider;
+ }
+
}