Package net.minecraft.world.gen.tree
Class LeaveVineTreeDecorator
java.lang.Object
net.minecraft.world.gen.tree.TreeDecorator
net.minecraft.world.gen.tree.LeaveVineTreeDecorator
public class LeaveVineTreeDecorator extends TreeDecorator
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<LeaveVineTreeDecorator>CODECstatic LeaveVineTreeDecoratorINSTANCEFields inherited from class net.minecraft.world.gen.tree.TreeDecorator
TYPE_CODEC -
Constructor Summary
Constructors Constructor Description LeaveVineTreeDecorator() -
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.tree.TreeDecorator
placeVine, setBlockStateAndEncompassPosition
-
Field Details
-
CODEC
-
INSTANCE
-
-
Constructor Details
-
LeaveVineTreeDecorator
public LeaveVineTreeDecorator()
-
-
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.
-