2025-11-24 22:52:51 +03:00

49 lines
1.5 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.mojang.serialization.MapCodec
*/
package net.minecraft.world.level.block;
import com.mojang.serialization.MapCodec;
import net.minecraft.core.Direction;
import net.minecraft.util.RandomSource;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.GrowingPlantHeadBlock;
import net.minecraft.world.level.block.NetherVines;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.shapes.VoxelShape;
public class TwistingVinesBlock
extends GrowingPlantHeadBlock {
public static final MapCodec<TwistingVinesBlock> CODEC = TwistingVinesBlock.simpleCodec(TwistingVinesBlock::new);
private static final VoxelShape SHAPE = Block.column(8.0, 0.0, 15.0);
public MapCodec<TwistingVinesBlock> codec() {
return CODEC;
}
public TwistingVinesBlock(BlockBehaviour.Properties properties) {
super(properties, Direction.UP, SHAPE, false, 0.1);
}
@Override
protected int getBlocksToGrowWhenBonemealed(RandomSource random) {
return NetherVines.getBlocksToGrowWhenBonemealed(random);
}
@Override
protected Block getBodyBlock() {
return Blocks.TWISTING_VINES_PLANT;
}
@Override
protected boolean canGrowInto(BlockState state) {
return NetherVines.isValidGrowthState(state);
}
}