Skip to main content

growing_plant_can_survive

Function growing_plant_can_survive 

Source
pub(super) fn growing_plant_can_survive(
    world: &dyn LevelReader,
    pos: BlockPos,
    growth_direction: Direction,
    head: BlockRef,
    body: BlockRef,
) -> bool
Expand description

Vanilla GrowingPlantBlock.canSurvive.

The block opposite the growth direction must be the head, the body, or face-sturdy on the face pointing toward us (i.e. growth_direction).