public abstract class TreeDecorator extends Object
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<TreeDecorator> |
TYPE_CODEC |
Constructor and Description |
---|
TreeDecorator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
generate(StructureWorldAccess world,
Random random,
List<BlockPos> logPositions,
List<BlockPos> leavesPositions,
Set<BlockPos> set,
BlockBox box) |
protected abstract TreeDecoratorType<?> |
getType() |
protected void |
placeVine(ModifiableWorld world,
BlockPos pos,
BooleanProperty directionProperty,
Set<BlockPos> set,
BlockBox box) |
protected void |
setBlockStateAndEncompassPosition(ModifiableWorld world,
BlockPos pos,
BlockState state,
Set<BlockPos> set,
BlockBox box) |
public static final com.mojang.serialization.Codec<TreeDecorator> TYPE_CODEC
protected abstract TreeDecoratorType<?> getType()
public abstract void generate(StructureWorldAccess world, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, Set<BlockPos> set, BlockBox box)
protected void placeVine(ModifiableWorld world, BlockPos pos, BooleanProperty directionProperty, Set<BlockPos> set, BlockBox box)
protected void setBlockStateAndEncompassPosition(ModifiableWorld world, BlockPos pos, BlockState state, Set<BlockPos> set, BlockBox box)