2013-12-27 23:59:59 +01:00
|
|
|
package appeng.spatial;
|
|
|
|
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraft.util.ChunkCoordinates;
|
|
|
|
import net.minecraft.util.Vec3;
|
|
|
|
import net.minecraft.world.WorldProvider;
|
|
|
|
import net.minecraft.world.biome.WorldChunkManagerHell;
|
|
|
|
import net.minecraft.world.chunk.Chunk;
|
|
|
|
import net.minecraft.world.chunk.IChunkProvider;
|
2014-03-15 20:53:00 +01:00
|
|
|
import net.minecraftforge.client.IRenderHandler;
|
|
|
|
import appeng.client.render.SpatialSkyRender;
|
2013-12-27 23:59:59 +01:00
|
|
|
import appeng.core.Registration;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
|
|
|
|
public class StorageWorldProvider extends WorldProvider
|
|
|
|
{
|
|
|
|
|
|
|
|
public StorageWorldProvider() {
|
|
|
|
this.hasNoSky = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ChunkCoordinates getSpawnPoint()
|
|
|
|
{
|
|
|
|
return new ChunkCoordinates( 0, 0, 0 );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean canRespawnHere()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void registerWorldChunkManager()
|
|
|
|
{
|
2014-02-09 02:34:52 +01:00
|
|
|
super.worldChunkMgr = new WorldChunkManagerHell( Registration.instance.storageBiome, 0.0F );
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public float getStarBrightness(float par1)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isSurfaceWorld()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-03-07 05:30:59 +01:00
|
|
|
@Override
|
|
|
|
public boolean canSnowAt(int x, int y, int z, boolean checkLight)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
@Override
|
|
|
|
public boolean canDoLightning(Chunk chunk)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isBlockHighHumidity(int x, int y, int z)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isDaytime()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Vec3 getSkyColor(Entity cameraEntity, float partialTicks)
|
|
|
|
{
|
2014-06-13 19:42:09 +02:00
|
|
|
return Vec3.createVectorHelper( 0.0, 0.0, 0.0 );
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean doesXZShowFog(int par1, int par2)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public float calculateCelestialAngle(long par1, float par3)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public boolean isSkyColored()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Vec3 getFogColor(float par1, float par2)
|
|
|
|
{
|
2014-06-13 19:42:09 +02:00
|
|
|
return Vec3.createVectorHelper( 0.0, 0.0, 0.0 );
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public IChunkProvider createChunkGenerator()
|
|
|
|
{
|
|
|
|
return new StorageChunkProvider( worldObj, 0 );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getDimensionName()
|
|
|
|
{
|
|
|
|
return "Storage Cell";
|
|
|
|
}
|
|
|
|
|
2014-03-15 20:53:00 +01:00
|
|
|
@Override
|
|
|
|
public IRenderHandler getSkyRenderer()
|
|
|
|
{
|
|
|
|
return SpatialSkyRender.getInstance();
|
|
|
|
}
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|