public abstract class TrunkPlacer extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
baseHeight |
static com.mojang.serialization.Codec<TrunkPlacer> |
CODEC |
protected int |
firstRandomHeight |
protected int |
secondRandomHeight |
Constructor and Description |
---|
TrunkPlacer(int baseHeight,
int firstRandomHeight,
int secondRandomHeight) |
Modifier and Type | Method and Description |
---|---|
abstract List<FoliagePlacer.TreeNode> |
generate(ModifiableTestableWorld world,
Random random,
int trunkHeight,
BlockPos pos,
Set<BlockPos> set,
BlockBox blockBox,
TreeFeatureConfig treeFeatureConfig)
Generates the trunk blocks and return a list of tree nodes to place foliage around
|
int |
getHeight(Random random) |
protected abstract TrunkPlacerType<?> |
getType() |
protected static void |
method_27400(ModifiableTestableWorld modifiableTestableWorld,
BlockPos blockPos) |
protected static void |
method_27401(ModifiableTestableWorld modifiableTestableWorld,
Random random,
BlockPos.Mutable mutable,
Set<BlockPos> set,
BlockBox blockBox,
TreeFeatureConfig treeFeatureConfig) |
protected static boolean |
method_27402(ModifiableTestableWorld modifiableTestableWorld,
Random random,
BlockPos blockPos,
Set<BlockPos> set,
BlockBox blockBox,
TreeFeatureConfig treeFeatureConfig) |
private static boolean |
method_27403(TestableWorld testableWorld,
BlockPos blockPos) |
protected static void |
method_27404(ModifiableWorld modifiableWorld,
BlockPos blockPos,
BlockState blockState,
BlockBox blockBox) |
protected static <P extends TrunkPlacer> |
method_28904(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance) |
public static final com.mojang.serialization.Codec<TrunkPlacer> CODEC
protected final int baseHeight
protected final int firstRandomHeight
protected final int secondRandomHeight
public TrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight)
protected static <P extends TrunkPlacer> com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Integer,Integer,Integer> method_28904(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance)
protected abstract TrunkPlacerType<?> getType()
public abstract List<FoliagePlacer.TreeNode> generate(ModifiableTestableWorld world, Random random, int trunkHeight, BlockPos pos, Set<BlockPos> set, BlockBox blockBox, TreeFeatureConfig treeFeatureConfig)
public int getHeight(Random random)
protected static void method_27404(ModifiableWorld modifiableWorld, BlockPos blockPos, BlockState blockState, BlockBox blockBox)
private static boolean method_27403(TestableWorld testableWorld, BlockPos blockPos)
protected static void method_27400(ModifiableTestableWorld modifiableTestableWorld, BlockPos blockPos)
protected static boolean method_27402(ModifiableTestableWorld modifiableTestableWorld, Random random, BlockPos blockPos, Set<BlockPos> set, BlockBox blockBox, TreeFeatureConfig treeFeatureConfig)
protected static void method_27401(ModifiableTestableWorld modifiableTestableWorld, Random random, BlockPos.Mutable mutable, Set<BlockPos> set, BlockBox blockBox, TreeFeatureConfig treeFeatureConfig)