Skip to main content

facing_text_slot

Function facing_text_slot 

Source
pub fn facing_text_slot(
    state: BlockStateId,
    pos: BlockPos,
    player: &Player,
) -> SignTextSlot
Expand description

Calculates which side of a sign the player is facing.

Uses the sign’s rotation (from block state) and the player’s position relative to the sign to determine which side they’re looking at.