Skip to main content

push_entities_up

Function push_entities_up 

Source
pub(crate) fn push_entities_up(
    old_state: BlockStateId,
    new_state: BlockStateId,
    world: &Arc<World>,
    pos: BlockPos,
) -> BlockStateId
Expand description

Vanilla Block.pushEntitiesUp for block-state replacements that add collision.

Returns new_state so callers can mirror vanilla call sites that transform the replacement state before setting it in the world.