public class WorldGenHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WorldGenHelper.Direction |
static class |
WorldGenHelper.EnumReplaceMode |
| Constructor and Description |
|---|
WorldGenHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
ITreeBlockType type,
WorldGenHelper.EnumReplaceMode replaceMode) |
protected static void |
addVines(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos,
float chance) |
static java.util.Set<net.minecraft.util.math.BlockPos> |
generateBranches(net.minecraft.world.World world,
java.util.Random rand,
ITreeBlockType wood,
net.minecraft.util.math.BlockPos startPos,
int girth,
float spreadY,
float spreadXZ,
int radius,
int count,
float chance) |
static void |
generateCircle(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos center,
float radius,
int width,
int height,
ITreeBlockType block,
float chance,
WorldGenHelper.EnumReplaceMode replace) |
static void |
generateCircleFromTreeStartPos(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos startPos,
int girth,
float radius,
int width,
int height,
ITreeBlockType block,
float chance,
WorldGenHelper.EnumReplaceMode replace) |
static void |
generateCylinderFromPos(net.minecraft.world.World world,
ITreeBlockType block,
net.minecraft.util.math.BlockPos center,
float radius,
int height,
WorldGenHelper.EnumReplaceMode replace)
Center is the bottom middle of the cylinder
|
static void |
generateCylinderFromTreeStartPos(net.minecraft.world.World world,
ITreeBlockType block,
net.minecraft.util.math.BlockPos startPos,
int girth,
float radius,
int height,
WorldGenHelper.EnumReplaceMode replace)
Uses centerPos and girth of a tree to calculate the center
|
static void |
generatePods(ITreeGenData tree,
net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos startPos,
int height,
int minHeight,
int girth,
WorldGenHelper.EnumReplaceMode replaceMode) |
static void |
generateSphere(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos center,
int radius,
ITreeBlockType block,
WorldGenHelper.EnumReplaceMode replace) |
static void |
generateSphereFromTreeStartPos(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos startPos,
int girth,
int radius,
ITreeBlockType block,
WorldGenHelper.EnumReplaceMode replace) |
static void |
generateSupportStems(ITreeBlockType wood,
net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos startPos,
int height,
int girth,
float chance,
float maxHeight) |
static java.util.Set<net.minecraft.util.math.BlockPos> |
generateTreeTrunk(net.minecraft.world.World world,
java.util.Random rand,
ITreeBlockType wood,
net.minecraft.util.math.BlockPos startPos,
int height,
int girth,
int yStart,
float vinesChance,
net.minecraft.util.EnumFacing leanDirection,
float leanScale)
Returns a list of trunk top coordinates
|
public static boolean addBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
ITreeBlockType type,
WorldGenHelper.EnumReplaceMode replaceMode)
public static void generateCylinderFromTreeStartPos(net.minecraft.world.World world,
ITreeBlockType block,
net.minecraft.util.math.BlockPos startPos,
int girth,
float radius,
int height,
WorldGenHelper.EnumReplaceMode replace)
public static void generateCylinderFromPos(net.minecraft.world.World world,
ITreeBlockType block,
net.minecraft.util.math.BlockPos center,
float radius,
int height,
WorldGenHelper.EnumReplaceMode replace)
public static void generateCircleFromTreeStartPos(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos startPos,
int girth,
float radius,
int width,
int height,
ITreeBlockType block,
float chance,
WorldGenHelper.EnumReplaceMode replace)
public static void generateCircle(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos center,
float radius,
int width,
int height,
ITreeBlockType block,
float chance,
WorldGenHelper.EnumReplaceMode replace)
public static void generateSphereFromTreeStartPos(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos startPos,
int girth,
int radius,
ITreeBlockType block,
WorldGenHelper.EnumReplaceMode replace)
public static void generateSphere(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos center,
int radius,
ITreeBlockType block,
WorldGenHelper.EnumReplaceMode replace)
public static java.util.Set<net.minecraft.util.math.BlockPos> generateTreeTrunk(net.minecraft.world.World world,
java.util.Random rand,
ITreeBlockType wood,
net.minecraft.util.math.BlockPos startPos,
int height,
int girth,
int yStart,
float vinesChance,
@Nullable
net.minecraft.util.EnumFacing leanDirection,
float leanScale)
protected static void addVines(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos,
float chance)
public static void generatePods(ITreeGenData tree, net.minecraft.world.World world, java.util.Random rand, net.minecraft.util.math.BlockPos startPos, int height, int minHeight, int girth, WorldGenHelper.EnumReplaceMode replaceMode)
public static void generateSupportStems(ITreeBlockType wood, net.minecraft.world.World world, java.util.Random rand, net.minecraft.util.math.BlockPos startPos, int height, int girth, float chance, float maxHeight)
public static java.util.Set<net.minecraft.util.math.BlockPos> generateBranches(net.minecraft.world.World world,
java.util.Random rand,
ITreeBlockType wood,
net.minecraft.util.math.BlockPos startPos,
int girth,
float spreadY,
float spreadXZ,
int radius,
int count,
float chance)