Expand description
Sign item behavior implementation.
Places sign blocks and opens the sign editor after placement. Handles both standing signs (on ground) and wall signs (on walls).
Vanilla reference: SignItem extends StandingAndWallBlockItem and only
overrides updateCustomBlockEntityTag to open the sign editor after placement.
Structsยง
- Hanging
Sign Item - Behavior for hanging sign items that place hanging sign blocks.
- Sign
Item - Behavior for sign items that place sign blocks and open the editor.
Functionsยง
- can_
attach_ ๐to - Checks if a wall hanging sign can attach to a neighboring block.
- can_
place_ ๐hanging_ sign - Checks if a wall hanging sign block state can be placed.
- can_
wall_ ๐hanging_ sign_ place - Checks if a wall hanging sign can be placed at the given position.