25 lines
823 B
Java
25 lines
823 B
Java
package net.minecraft.world.level.block;
|
|
|
|
import com.mojang.serialization.MapCodec;
|
|
import net.minecraft.core.Direction;
|
|
import net.minecraft.world.level.block.state.BlockBehaviour;
|
|
import net.minecraft.world.phys.shapes.VoxelShape;
|
|
|
|
public class TwistingVinesPlantBlock extends GrowingPlantBodyBlock {
|
|
public static final MapCodec<TwistingVinesPlantBlock> CODEC = simpleCodec(TwistingVinesPlantBlock::new);
|
|
public static final VoxelShape SHAPE = Block.box(4.0, 0.0, 4.0, 12.0, 16.0, 12.0);
|
|
|
|
@Override
|
|
public MapCodec<TwistingVinesPlantBlock> codec() {
|
|
return CODEC;
|
|
}
|
|
|
|
public TwistingVinesPlantBlock(BlockBehaviour.Properties properties) {
|
|
super(properties, Direction.UP, SHAPE, false);
|
|
}
|
|
|
|
@Override
|
|
protected GrowingPlantHeadBlock getHeadBlock() {
|
|
return (GrowingPlantHeadBlock)Blocks.TWISTING_VINES;
|
|
}
|
|
}
|