net.minecraft.block

public class FungusBlock

extends PlantBlock implements Fertilizable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Fertilizable

net.minecraft.world.level.block.NetherFungusBlock
net.minecraft.world.level.block.NetherFungusBlock
net.minecraft.class_4771
net.minecraft.block.FungusBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<FungusBlock>
CODEC
CODEC
field_46359
CODEC
private static final double
BONEMEAL_SUCCESS_PROBABILITY
BONEMEAL_SUCCESS_PROBABILITY
field_31099
GROW_CHANCE
private static final VoxelShape
SHAPE
SHAPE
field_22134
SHAPE
private final Block
requiredBlock
requiredBlock
field_41074
nylium
private final RegistryKey<ConfiguredFeature<?, ?>>
feature
feature
field_22135
featureKey
private final TagKey<Block>
supportBlocks
supportBlocks
field_1_1032
field_1_1032

Constructor summary

ModifierConstructor
protected (RegistryKey<ConfiguredFeature<?, ?>> featureKey, Block nylium, TagKey<Block> supportBlocks, AbstractBlock$Settings settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<FungusBlock>
codec()
codec()
method_53969()
getCodec()
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
mayPlaceOn(BlockState state, BlockGetter level, BlockPos pos)
mayPlaceOn(BlockState state, BlockGetter level, BlockPos pos)
method_9695(class_2680 arg0, class_1922 arg1, class_2338 arg2)
canPlantOnTop(BlockState arg0, BlockView arg1, BlockPos arg2)
private Optional<? extends RegistryEntry<ConfiguredFeature<?, ?>>>
getFeature(LevelReader level)
getFeature(LevelReader level)
method_46683(class_4538 arg0)
getFeatureEntry(WorldView world)
public boolean
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state)
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state)
method_9651(class_4538 arg0, class_2338 arg1, class_2680 arg2)
isFertilizable(WorldView arg0, BlockPos arg1, BlockState arg2)
public boolean
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state)
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state)
method_9650(class_1937 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3)
canGrow(World arg0, Random arg1, BlockPos arg2, BlockState arg3)
public void
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state)
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state)
method_9652(class_3218 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3)
grow(ServerWorld arg0, Random arg1, BlockPos arg2, BlockState arg3)