Skip to main content

steel_core/entity/
item_frame.rs

1//! Shared item-frame entity behavior.
2
3use steel_utils::Direction;
4
5use super::Entity;
6
7/// Vanilla `ItemFrame` behavior used by comparators.
8pub trait ItemFrame: Entity {
9    /// Returns the direction from the backing block toward the frame.
10    fn direction(&self) -> Direction;
11
12    /// Returns vanilla `ItemFrame.getAnalogOutput`.
13    fn analog_output(&self) -> i32;
14}