Sulphuric terrain, lakes, particles
This commit is contained in:
parent
e051bf3578
commit
b375d76956
19 changed files with 384 additions and 14 deletions
|
@ -0,0 +1,29 @@
|
|||
package ru.betterend.world.surface;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.world.gen.surfacebuilder.SurfaceBuilder;
|
||||
import net.minecraft.world.gen.surfacebuilder.TernarySurfaceConfig;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
|
||||
public class SurfaceBuilders {
|
||||
public static final TernarySurfaceConfig DEFAULT_END_CONFIG = makeSimpleConfig(Blocks.END_STONE);
|
||||
public static final TernarySurfaceConfig FLAVOLITE_CONFIG = makeSimpleConfig(EndBlocks.FLAVOLITE.stone);
|
||||
public static final TernarySurfaceConfig BRIMSTONE_CONFIG = makeSimpleConfig(EndBlocks.BRIMSTONE);
|
||||
public static final TernarySurfaceConfig SULFURIC_ROCK_CONFIG = makeSimpleConfig(EndBlocks.SULFURIC_ROCK.stone);
|
||||
|
||||
public static final SurfaceBuilder<TernarySurfaceConfig> SULPHURIC_SURFACE = register("sulphuric_surface", new SulphuricSurfaceBuilder());
|
||||
|
||||
private static SurfaceBuilder<TernarySurfaceConfig> register(String name, SurfaceBuilder<TernarySurfaceConfig> builder) {
|
||||
return Registry.register(Registry.SURFACE_BUILDER, name, builder);
|
||||
}
|
||||
|
||||
private static TernarySurfaceConfig makeSimpleConfig(Block block) {
|
||||
BlockState state = block.getDefaultState();
|
||||
return new TernarySurfaceConfig(state, state, state);
|
||||
}
|
||||
|
||||
public static void register() {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue