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>
CODEC
static LeaveVineTreeDecorator
INSTANCE
Fields inherited from class net.minecraft.world.gen.tree.TreeDecorator
TYPE_CODEC
-
Constructor Summary
Constructors Constructor Description LeaveVineTreeDecorator()
-
Method Summary
Modifier and Type Method 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.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:
getType
in classTreeDecorator
-
generate
public void generate(StructureWorldAccess world, Random random, List<BlockPos> logPositions, List<BlockPos> leavesPositions, Set<BlockPos> placedStates, BlockBox box)- Specified by:
generate
in 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.
-