public enum OilGenerator extends java.lang.Enum<OilGenerator> implements net.minecraftforge.fml.common.IWorldGenerator
Modifier and Type | Class and Description |
---|---|
static class |
OilGenerator.GenType |
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static OilGenStructure |
createSphere(net.minecraft.util.math.BlockPos center,
int radius) |
static OilGenStructure |
createSpring(net.minecraft.util.math.BlockPos at) |
static OilGenStructure |
createTendril(net.minecraft.util.math.BlockPos center,
int lakeRadius,
int radius,
java.util.Random rand) |
static OilGenStructure |
createTubeX(net.minecraft.util.math.BlockPos start,
int length,
int radius) |
static OilGenStructure |
createTubeY(net.minecraft.util.math.BlockPos base,
int height,
int radius) |
static OilGenStructure |
createTubeZ(net.minecraft.util.math.BlockPos start,
int length,
int radius) |
void |
generate(java.util.Random random,
int chunkX,
int chunkZ,
net.minecraft.world.World world,
net.minecraft.world.chunk.IChunkGenerator gen,
net.minecraft.world.chunk.IChunkProvider provider) |
static java.util.List<OilGenStructure> |
getStructures(net.minecraft.world.World world,
int cx,
int cz) |
static OilGenerator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OilGenerator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OilGenerator INSTANCE
public static OilGenerator[] values()
for (OilGenerator c : OilGenerator.values()) System.out.println(c);
public static OilGenerator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void generate(java.util.Random random, int chunkX, int chunkZ, net.minecraft.world.World world, net.minecraft.world.chunk.IChunkGenerator gen, net.minecraft.world.chunk.IChunkProvider provider)
generate
in interface net.minecraftforge.fml.common.IWorldGenerator
public static java.util.List<OilGenStructure> getStructures(net.minecraft.world.World world, int cx, int cz)
public static OilGenStructure createTubeY(net.minecraft.util.math.BlockPos base, int height, int radius)
public static OilGenStructure createTubeX(net.minecraft.util.math.BlockPos start, int length, int radius)
public static OilGenStructure createTubeZ(net.minecraft.util.math.BlockPos start, int length, int radius)
public static OilGenStructure createSpring(net.minecraft.util.math.BlockPos at)
public static OilGenStructure createSphere(net.minecraft.util.math.BlockPos center, int radius)
public static OilGenStructure createTendril(net.minecraft.util.math.BlockPos center, int lakeRadius, int radius, java.util.Random rand)