5498eb6d7c
This is first update pass, which is mainly import reorganization, name fixes, etc... Although some parts of second were done where changes aren't important. Errors: ~1400 -> 82.
35 lines
777 B
Java
35 lines
777 B
Java
|
|
package appeng.worldgen.meteorite;
|
|
|
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import appeng.api.definitions.IBlockDefinition;
|
|
|
|
|
|
public class FalloutSand extends FalloutCopy
|
|
{
|
|
private static final double GLASS_THRESHOLD = 0.66;
|
|
private final MeteoriteBlockPutter putter;
|
|
|
|
public FalloutSand( final IMeteoriteWorld w, final int x, final int y, final int z, final MeteoriteBlockPutter putter, final IBlockDefinition skyStoneDefinition )
|
|
{
|
|
super( w, x, y, z, putter, skyStoneDefinition );
|
|
this.putter = putter;
|
|
}
|
|
|
|
@Override
|
|
public int adjustCrater()
|
|
{
|
|
return 2;
|
|
}
|
|
|
|
@Override
|
|
public void getOther( final IMeteoriteWorld w, final int x, final int y, final int z, final double a )
|
|
{
|
|
if( a > GLASS_THRESHOLD )
|
|
{
|
|
this.putter.put( w, x, y, z, Blocks.GLASS );
|
|
}
|
|
}
|
|
} |