public class BushFoliagePlacer extends BlobFoliagePlacer
FoliagePlacer.TreeNode| Modifier and Type | Field and Description |
|---|---|
static com.mojang.serialization.Codec<BushFoliagePlacer> |
CODEC |
heightoffset, radius| Constructor and Description |
|---|
BushFoliagePlacer(class_5428 class_5428,
class_5428 class_54282,
int int2) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generate(ModifiableTestableWorld world,
Random random,
TreeFeatureConfig config,
int trunkHeight,
FoliagePlacer.TreeNode treeNode,
int foliageHeight,
int radius,
Set<BlockPos> leaves,
int int2,
BlockBox blockBox)
This is the main method used to generate foliage.
|
protected FoliagePlacerType<?> |
getType() |
protected boolean |
isInvalidForLeaves(Random random,
int baseHeight,
int dx,
int dy,
int dz,
boolean bool) |
getHeight, method_28838generate, generate, getRadius, method_27387, method_30411public static final com.mojang.serialization.Codec<BushFoliagePlacer> CODEC
public BushFoliagePlacer(class_5428 class_5428, class_5428 class_54282, int int2)
protected FoliagePlacerType<?> getType()
getType in class BlobFoliagePlacerprotected void generate(ModifiableTestableWorld world, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, Set<BlockPos> leaves, int int2, BlockBox blockBox)
generate in class BlobFoliagePlacerprotected boolean isInvalidForLeaves(Random random, int baseHeight, int dx, int dy, int dz, boolean bool)
isInvalidForLeaves in class BlobFoliagePlacer