net.minecraft.block

public class StemBlock

extends PlantBlock implements Fertilizable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Fertilizable

net.minecraft.world.level.block.StemBlock
net.minecraft.world.level.block.StemBlock
net.minecraft.class_2513
net.minecraft.block.StemBlock

Field summary

Modifier and TypeField
public static final int
MAX_AGE
MAX_AGE
field_31255
MAX_AGE
public static final IntProperty
AGE
AGE
field_11584
AGE
private static final VoxelShape[]
SHAPES
SHAPES
field_11583
SHAPES_BY_AGE
private final RegistryKey<Block>
fruit
fruit
field_11585
gourdBlock
private final RegistryKey<Block>
attachedStem
attachedStem
field_46463
attachedStemBlock
private final RegistryKey<Item>
seed
seed
field_27205
pickBlockItem
private final TagKey<Block>
stemSupportBlocks
stemSupportBlocks
field_1_995
field_1_995
private final TagKey<Block>
fruitSupportBlocks
fruitSupportBlocks
field_1_1097
field_1_1097

Constructor summary

ModifierConstructor
protected (RegistryKey<Block> gourdBlock, RegistryKey<Block> attachedStemBlock, RegistryKey<Item> pickBlockItem, TagKey<Block> stemSupportBlocks, TagKey<Block> fruitSupportBlocks, AbstractBlock$Settings settings)

Method summary

Modifier and TypeMethod
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)
protected void
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9514(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
randomTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected ItemStack
getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData)
getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData)
method_9574(class_4538 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
getPickStack(WorldView arg0, BlockPos arg1, BlockState arg2, boolean arg3)
public boolean
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state, BonemealSource source)
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state, BonemealSource source)
method_9651(class_4538 arg0, class_2338 arg1, class_2680 arg2, class_1_1322 arg3)
isFertilizable(WorldView arg0, BlockPos arg1, BlockState arg2, FertilizationCause arg3)
public boolean
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
method_9650(class_1937 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3, class_1_1322 arg4)
canGrow(World arg0, Random arg1, BlockPos arg2, BlockState arg3, FertilizationCause arg4)
public void
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
method_9652(class_3218 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3, class_1_1322 arg4)
grow(ServerWorld arg0, Random arg1, BlockPos arg2, BlockState arg3, FertilizationCause arg4)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)