net.minecraft.block

public abstract class AbstractPlantPartBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.GrowingPlantBlock
net.minecraft.class_4863
net.minecraft.block.AbstractPlantPartBlock

Field summary

Modifier and TypeField
protected final Direction
growthDirection
field_22507
growthDirection
protected final boolean
scheduleFluidTicks
field_22508
tickWater
protected final VoxelShape
shape
field_23080
outlineShape

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater)

Method summary

Modifier and TypeMethod
protected abstract com.mojang.serialization.MapCodec<? extends AbstractPlantPartBlock>
codec()
method_53969()
getCodec()
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public BlockState
getStateForPlacement(RandomSource random)
method_24948(class_5819 arg0)
getRandomGrowthState(Random random)
protected boolean
canSurvive(BlockState state, LevelReader level, BlockPos pos)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected boolean
canAttachTo(BlockState state)
method_24947(class_2680 arg0)
canAttachTo(BlockState state)
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 abstract AbstractPlantStemBlock
getHeadBlock()
method_24945()
getStem()
protected abstract Block
getBodyBlock()
method_24946()
getPlant()