public abstract class TreeDecorator extends Object implements DynamicSerializable
| Modifier and Type | Field and Description |
|---|---|
protected TreeDecoratorType<?> |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
TreeDecorator(TreeDecoratorType<?> type) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
generate(WorldAccess 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserializeprotected final TreeDecoratorType<?> type
protected TreeDecorator(TreeDecoratorType<?> type)
public abstract void generate(WorldAccess 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)