public class CubeGeneratorsRegistry
extends java.lang.Object
| Constructor and Description |
|---|
CubeGeneratorsRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generateWorld(net.minecraft.world.World world,
java.util.Random random,
CubePos pos,
net.minecraft.world.biome.Biome biome)
Callback hook for cube gen - if your mod wishes to add extra mod related
generation to the world call this
|
static java.util.Collection<java.util.function.BiConsumer<? super net.minecraft.world.World,? super LoadingData<net.minecraft.util.math.ChunkPos>>> |
getColumnAsyncLoadingCallbacks() |
static java.util.Collection<java.util.function.BiConsumer<? super net.minecraft.world.World,? super LoadingData<CubePos>>> |
getCubeAsyncLoadingCallbacks() |
static void |
populateVanillaCubic(net.minecraft.world.World world,
java.util.Random rand,
ICube cube) |
static void |
register(ICubicPopulator populator,
int weight)
Register a world generator - something that inserts new block types into the world on population stage
|
static void |
registerColumnAsyncLoadingCallback(java.util.function.BiConsumer<? super net.minecraft.world.World,? super LoadingData<net.minecraft.util.math.ChunkPos>> columnCallback)
Registers a callback invoked after loading column NBT from disk.
|
static void |
registerCubeAsyncLoadingCallback(java.util.function.BiConsumer<? super net.minecraft.world.World,? super LoadingData<CubePos>> cubeCallback)
Registers a callback invoked after loading cube NBT from disk.
|
static void |
registerForCompatibilityGenerator(ICubicPopulator populator)
Populators added here will be launched prior to any other.
|
public static void register(ICubicPopulator populator, int weight)
populator - the generatorweight - a weight to assign to this generator. Heavy weights tend to sink to the bottom of
list of world generators (i.e. they run later)public static void generateWorld(net.minecraft.world.World world,
java.util.Random random,
CubePos pos,
net.minecraft.world.biome.Biome biome)
random - the cube specific Random.pos - is position of the populated cubeworld - The ICubicWorld we're generating forbiome - The biome we are generating inpublic static void registerForCompatibilityGenerator(ICubicPopulator populator)
populator - populator instance to registerpublic static void populateVanillaCubic(net.minecraft.world.World world,
java.util.Random rand,
ICube cube)
public static void registerCubeAsyncLoadingCallback(java.util.function.BiConsumer<? super net.minecraft.world.World,? super LoadingData<CubePos>> cubeCallback)
cubeCallback - the callback to be registeredpublic static void registerColumnAsyncLoadingCallback(java.util.function.BiConsumer<? super net.minecraft.world.World,? super LoadingData<net.minecraft.util.math.ChunkPos>> columnCallback)
columnCallback - the callback to be registeredpublic static java.util.Collection<java.util.function.BiConsumer<? super net.minecraft.world.World,? super LoadingData<CubePos>>> getCubeAsyncLoadingCallbacks()
public static java.util.Collection<java.util.function.BiConsumer<? super net.minecraft.world.World,? super LoadingData<net.minecraft.util.math.ChunkPos>>> getColumnAsyncLoadingCallbacks()