WeepingVinesBlock .java

net.minecraft.world.level.block.WeepingVinesBlock (class): members: getBlocksToGrowWhenBonemealed, getBodyBlock, canGrowInto, SHAPE. imports: VoxelShape.

net.minecraft.world.level.blockclass31 linescommonextends GrowingPlantHeadBlock912 B

API Surface (3)

int getBlocksToGrowWhenBonemealed(final RandomSource random)
Block getBodyBlock()
boolean canGrowInto(final BlockState state)

Fields & Constants (1)

SHAPE

Code Graph: Dependencies (8)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

WeepingVinesBlock.java31 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block;
2
3
import net.minecraft.core.Direction;
4
import net.minecraft.util.RandomSource;
5
import net.minecraft.world.level.block.state.BlockBehaviour;
6
import net.minecraft.world.level.block.state.BlockState;
7
import net.minecraft.world.phys.shapes.VoxelShape;
8
9
public class WeepingVinesBlock extends GrowingPlantHeadBlock {
10
	private static final VoxelShape SHAPE = Block.column(8.0, 9.0, 16.0);
11
12
	public WeepingVinesBlock(final BlockBehaviour.Properties properties) {
13
		super(properties, Direction.DOWN, SHAPE, false, 0.1);
14
	}
15
16
	@Override
17
	protected int getBlocksToGrowWhenBonemealed(final RandomSource random) {
18
		return NetherVines.getBlocksToGrowWhenBonemealed(random);
19
	}
20
21
	@Override
22
	protected Block getBodyBlock() {
23
		return Blocks.WEEPING_VINES_PLANT;
24
	}
25
26
	@Override
27
	protected boolean canGrowInto(final BlockState state) {
28
		return NetherVines.isValidGrowthState(state);
29
	}
30
}
31

Decompiled Minecraft 26.3 source of WeepingVinesBlock (net/minecraft/world/level/block/WeepingVinesBlock.java) with Mojang official mappings, stored verbatim on the site.