net.minecraft.block

public class StemBlock

extends PlantBlock implements Fertilizable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Fertilizable

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
field_31255
MAX_AGE
public static final IntProperty
AGE
field_11584
AGE
private static final VoxelShape[]
SHAPES
field_11583
SHAPES_BY_AGE
private final RegistryKey<Block>
fruit
field_11585
gourdBlock
private final RegistryKey<Block>
attachedStem
field_46463
attachedStemBlock
private final RegistryKey<Item>
seed
field_27205
pickBlockItem
private final TagKey<Block>
stemSupportBlocks
field_1_995
field_1_995
private final TagKey<Block>
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)
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)
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)
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)
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)
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)
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)
method_9652(class_3218 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3)
grow(ServerWorld arg0, Random arg1, BlockPos arg2, BlockState arg3)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
private static VoxelShape
lambda$static$0(int arg0)
method_66468(int arg0)
method_66468(int age)