net.minecraft.block

public class KelpBlock

extends AbstractPlantStemBlock implements FluidFillable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Fertilizable, FluidFillable

net.minecraft.world.level.block.KelpBlock
net.minecraft.world.level.block.KelpBlock
net.minecraft.class_2393
net.minecraft.block.KelpBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<KelpBlock>
CODEC
CODEC
field_46378
CODEC
private static final double
GROW_PER_TICK_PROBABILITY
GROW_PER_TICK_PROBABILITY
field_31105
GROWTH_CHANCE
private static final VoxelShape
SHAPE
SHAPE
field_11195
SHAPE

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<KelpBlock>
codec()
codec()
method_53969()
getCodec()
protected boolean
canGrowInto(BlockState state)
canGrowInto(BlockState state)
method_24949(class_2680 arg0)
chooseStemState(BlockState arg0)
protected Block
getBodyBlock()
getBodyBlock()
method_24946()
getPlant()
protected boolean
canAttachTo(BlockState state)
canAttachTo(BlockState state)
method_24947(class_2680 arg0)
canAttachTo(BlockState arg0)
public boolean
canPlaceLiquid(LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type)
canPlaceLiquid(LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type)
method_10310(class_1309 arg0, class_1922 arg1, class_2338 arg2, class_2680 arg3, class_3611 arg4)
canFillWithFluid(LivingEntity arg0, BlockView arg1, BlockPos arg2, BlockState arg3, Fluid arg4)
public boolean
placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState)
placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState)
method_10311(class_1936 arg0, class_2338 arg1, class_2680 arg2, class_3610 arg3)
tryFillWithFluid(WorldAccess arg0, BlockPos arg1, BlockState arg2, FluidState arg3)
protected int
getBlocksToGrowWhenBonemealed(RandomSource random)
getBlocksToGrowWhenBonemealed(RandomSource random)
method_26376(class_5819 arg0)
getGrowthLength(Random arg0)
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected FluidState
getFluidState(BlockState state)
getFluidState(BlockState state)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)