39 lines
841 B
Java
39 lines
841 B
Java
|
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;
|
||
|
|
||
|
public FalloutSnow( IMeteoriteWorld w, int x, int y, int z, MeteoriteBlockPutter putter, IBlockDefinition skyStoneDefinition )
|
||
|
{
|
||
|
super( w, x, y, z, putter, skyStoneDefinition );
|
||
|
this.putter = putter;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int adjustCrater()
|
||
|
{
|
||
|
return 2;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void getOther( IMeteoriteWorld w, int x, int y, int z, double a )
|
||
|
{
|
||
|
if ( a > SNOW_THRESHOLD )
|
||
|
{
|
||
|
this.putter.put( w, x, y, z, Blocks.snow );
|
||
|
}
|
||
|
else if ( a > ICE_THRESHOLD )
|
||
|
{
|
||
|
this.putter.put( w, x, y, z, Blocks.ice );
|
||
|
}
|
||
|
}
|
||
|
}
|