public abstract class TerrainGen
extends java.lang.Object
Constructor and Description |
---|
TerrainGen() |
Modifier and Type | Method and Description |
---|---|
static boolean |
decorate(World world,
java.util.Random rand,
BlockPos pos,
DecorateBiomeEvent.Decorate.EventType type)
Deprecated.
|
static boolean |
decorate(World world,
java.util.Random rand,
ChunkPos chunkPos,
BlockPos placementPos,
DecorateBiomeEvent.Decorate.EventType type)
Use this method when there is a specific BlockPos location given for decoration.
|
static boolean |
decorate(World world,
java.util.Random rand,
ChunkPos chunkPos,
DecorateBiomeEvent.Decorate.EventType type)
Use this method when generation doesn't have a specific BlockPos location for generation in the chunk.
|
static boolean |
generateOre(World world,
java.util.Random rand,
WorldGenerator generator,
BlockPos pos,
OreGenEvent.GenerateMinable.EventType type) |
static MapGenBase |
getModdedMapGen(MapGenBase original,
InitMapGenEvent.EventType type) |
static <T extends InitNoiseGensEvent.Context> |
getModdedNoiseGenerators(World world,
java.util.Random rand,
T original) |
static boolean |
populate(IChunkGenerator chunkProvider,
World world,
java.util.Random rand,
int chunkX,
int chunkZ,
boolean hasVillageGenerated,
PopulateChunkEvent.Populate.EventType type) |
static boolean |
saplingGrowTree(World world,
java.util.Random rand,
BlockPos pos) |
public static <T extends InitNoiseGensEvent.Context> T getModdedNoiseGenerators(World world, java.util.Random rand, T original)
public static MapGenBase getModdedMapGen(MapGenBase original, InitMapGenEvent.EventType type)
public static boolean populate(IChunkGenerator chunkProvider, World world, java.util.Random rand, int chunkX, int chunkZ, boolean hasVillageGenerated, PopulateChunkEvent.Populate.EventType type)
public static boolean decorate(World world, java.util.Random rand, ChunkPos chunkPos, BlockPos placementPos, DecorateBiomeEvent.Decorate.EventType type)
#decorate(World, Random, ChunkPos, Decorate.EventType)
instead.world
- the world being generated inrand
- the random generator used for decorationchunkPos
- the original chunk position used for generation, passed to the decoratorplacementPos
- the specific position used for generating a feature, somewhere in the 2x2 chunks used for decorationtype
- the type of decorationpublic static boolean decorate(World world, java.util.Random rand, ChunkPos chunkPos, DecorateBiomeEvent.Decorate.EventType type)
#decorate(World, Random, ChunkPos, BlockPos, Decorate.EventType)
instead.world
- the world being generated inrand
- the random generator used for decorationchunkPos
- the original chunk position used for generation, passed to the decoratortype
- the type of decoration@Deprecated public static boolean decorate(World world, java.util.Random rand, BlockPos pos, DecorateBiomeEvent.Decorate.EventType type)
public static boolean generateOre(World world, java.util.Random rand, WorldGenerator generator, BlockPos pos, OreGenEvent.GenerateMinable.EventType type)