Class LeavesVineTreeDecorator
java.lang.Object
net.minecraft.world.gen.treedecorator.TreeDecorator
net.minecraft.world.gen.treedecorator.LeavesVineTreeDecorator
public class LeavesVineTreeDecorator extends TreeDecorator
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<LeavesVineTreeDecorator>CODECstatic LeavesVineTreeDecoratorINSTANCEFields inherited from class net.minecraft.world.gen.treedecorator.TreeDecorator
TYPE_CODEC -
Constructor Summary
Constructors Constructor Description LeavesVineTreeDecorator() -
Method Summary
Modifier and Type Method Description voidgenerate(StructureWorldAccess world, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, Set<BlockPos> placedStates, BlockBox box)protected TreeDecoratorType<?>getType()private voidplaceVines(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.Methods inherited from class net.minecraft.world.gen.treedecorator.TreeDecorator
placeVine, setBlockStateAndEncompassPosition
-
Field Details
-
CODEC
-
INSTANCE
-
-
Constructor Details
-
LeavesVineTreeDecorator
public LeavesVineTreeDecorator()
-
-
Method Details
-
getType
- Specified by:
getTypein classTreeDecorator
-
generate
public void generate(StructureWorldAccess world, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, Set<BlockPos> placedStates, BlockBox box)- Specified by:
generatein classTreeDecorator
-
placeVines
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.
-