2015-08-06 18:49:57 +02:00
|
|
|
|
2015-01-03 02:53:14 +01:00
|
|
|
package appeng.worldgen.meteorite;
|
|
|
|
|
|
|
|
|
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
|
|
|
|
import appeng.api.definitions.IBlockDefinition;
|
|
|
|
|
|
|
|
|
|
|
|
public class FalloutSnow extends FalloutCopy
|
|
|
|
{
|
|
|
|
public static final double SNOW_THRESHOLD = 0.7;
|
|
|
|
public static final double ICE_THRESHOLD = 0.5;
|
|
|
|
private final MeteoriteBlockPutter putter;
|
|
|
|
|
2015-09-25 23:10:56 +02:00
|
|
|
public FalloutSnow( final IMeteoriteWorld w, final int x, final int y, final int z, final MeteoriteBlockPutter putter, final IBlockDefinition skyStoneDefinition )
|
2015-01-03 02:53:14 +01:00
|
|
|
{
|
|
|
|
super( w, x, y, z, putter, skyStoneDefinition );
|
|
|
|
this.putter = putter;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int adjustCrater()
|
|
|
|
{
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-09-25 23:10:56 +02:00
|
|
|
public void getOther( final IMeteoriteWorld w, final int x, final int y, final int z, final double a )
|
2015-01-03 02:53:14 +01:00
|
|
|
{
|
2015-04-03 08:54:31 +02:00
|
|
|
if( a > SNOW_THRESHOLD )
|
2015-01-03 02:53:14 +01:00
|
|
|
{
|
|
|
|
this.putter.put( w, x, y, z, Blocks.snow );
|
|
|
|
}
|
2015-04-03 08:54:31 +02:00
|
|
|
else if( a > ICE_THRESHOLD )
|
2015-01-03 02:53:14 +01:00
|
|
|
{
|
|
|
|
this.putter.put( w, x, y, z, Blocks.ice );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|