TwistingVinesBlock .java

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

net.minecraft.world.level.blockclass31 linescommonextends GrowingPlantHeadBlock913 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

TwistingVinesBlock.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 TwistingVinesBlock extends GrowingPlantHeadBlock {
10
	private static final VoxelShape SHAPE = Block.column(8.0, 0.0, 15.0);
11
12
	public TwistingVinesBlock(final BlockBehaviour.Properties properties) {
13
		super(properties, Direction.UP, 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.TWISTING_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 TwistingVinesBlock (net/minecraft/world/level/block/TwistingVinesBlock.java) with Mojang official mappings, stored verbatim on the site.