public class GiantTrunkPlacer extends TrunkPlacer
| Modifier and Type | Field and Description |
|---|---|
static com.mojang.serialization.Codec<GiantTrunkPlacer> |
CODEC |
baseHeight, firstRandomHeight, secondRandomHeight| Constructor and Description |
|---|
GiantTrunkPlacer(int baseHeight,
int firstRandomHeight,
int secondRandomHeight) |
| Modifier and Type | Method and Description |
|---|---|
List<FoliagePlacer.TreeNode> |
generate(ModifiableTestableWorld world,
Random random,
int trunkHeight,
BlockPos pos,
Set<BlockPos> placedStates,
BlockBox box,
TreeFeatureConfig config)
Generates the trunk blocks and return a list of tree nodes to place foliage around
|
protected TrunkPlacerType<?> |
getType() |
private static void |
method_27399(ModifiableTestableWorld modifiableTestableWorld,
Random random,
BlockPos.Mutable mutable,
Set<BlockPos> set,
BlockBox blockBox,
TreeFeatureConfig treeFeatureConfig,
BlockPos blockPos,
int int2,
int int3,
int int4) |
getAndSetState, getHeight, method_28904, setBlockState, setToDirt, trySetStatepublic static final com.mojang.serialization.Codec<GiantTrunkPlacer> CODEC
public GiantTrunkPlacer(int baseHeight,
int firstRandomHeight,
int secondRandomHeight)
protected TrunkPlacerType<?> getType()
getType in class TrunkPlacerpublic List<FoliagePlacer.TreeNode> generate(ModifiableTestableWorld world, Random random, int trunkHeight, BlockPos pos, Set<BlockPos> placedStates, BlockBox box, TreeFeatureConfig config)
generate in class TrunkPlacerprivate static void method_27399(ModifiableTestableWorld modifiableTestableWorld, Random random, BlockPos.Mutable mutable, Set<BlockPos> set, BlockBox blockBox, TreeFeatureConfig treeFeatureConfig, BlockPos blockPos, int int2, int int3, int int4)