Skip to main content

ItemFrame

Trait ItemFrame 

Source
pub trait ItemFrame: Entity {
    // Required methods
    fn direction(&self) -> Direction;
    fn analog_output(&self) -> i32;
}
Expand description

Vanilla ItemFrame behavior used by comparators.

Required Methods§

Source

fn direction(&self) -> Direction

Returns the direction from the backing block toward the frame.

Source

fn analog_output(&self) -> i32

Returns vanilla ItemFrame.getAnalogOutput.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§