public class LeaveVineTreeDecorator extends TreeDecorator
| Modifier and Type | Field and Description |
|---|---|
static com.mojang.serialization.Codec<LeaveVineTreeDecorator> |
CODEC |
static LeaveVineTreeDecorator |
INSTANCE |
TYPE_CODEC| Constructor and Description |
|---|
LeaveVineTreeDecorator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(StructureWorldAccess world,
Random random,
List<BlockPos> logPositions,
List<BlockPos> leavesPositions,
Set<BlockPos> placedStates,
BlockBox box) |
protected TreeDecoratorType<?> |
getType() |
private void |
placeVines(ModifiableTestableWorld world,
BlockPos pos,
BooleanProperty side,
Set<BlockPos> placedStates,
BlockBox box)
Places a vine at a given position and then up to 4 more vines going downwards.
|
placeVine, setBlockStateAndEncompassPositionpublic static final com.mojang.serialization.Codec<LeaveVineTreeDecorator> CODEC
public static final LeaveVineTreeDecorator INSTANCE
protected TreeDecoratorType<?> getType()
getType in class TreeDecoratorpublic void generate(StructureWorldAccess world, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, Set<BlockPos> placedStates, BlockBox box)
generate in class TreeDecoratorprivate void placeVines(ModifiableTestableWorld world, BlockPos pos, BooleanProperty side, Set<BlockPos> placedStates, BlockBox box)