Trait BlockEntity

Source
pub trait BlockEntity: Clone {
    // Required method
    fn position(&self) -> BlockPos;
}
Expand description

Any type that can represent a block entity.

Required Methods§

Source

fn position(&self) -> BlockPos

Get the BlockPos of this block entity.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BlockEntity for Value

Implementors§

Source§

impl BlockEntity for mcdata::latest::BlockEntity

Available on crate features 1.21.7 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_14::BlockEntity

Available on crate features 1.14 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_15::BlockEntity

Available on crate features 1.15 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_15_2::BlockEntity

Available on crate features 1.15.2 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_16::BlockEntity

Available on crate features 1.16 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_16_2::BlockEntity

Available on crate features 1.16.2 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_17::BlockEntity

Available on crate features 1.17 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_18::BlockEntity

Available on crate features 1.18 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_19::BlockEntity

Available on crate features 1.19 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_19_1::BlockEntity

Available on crate features 1.19.1 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_19_3::BlockEntity

Available on crate features 1.19.3 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_19_4::BlockEntity

Available on crate features 1.19.4 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_20::BlockEntity

Available on crate features 1.20 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_20_2::BlockEntity

Available on crate features 1.20.2 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_20_3::BlockEntity

Available on crate features 1.20.3 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_20_5::BlockEntity

Available on crate features 1.20.5 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_21::BlockEntity

Available on crate features 1.21 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_21_2::BlockEntity

Available on crate features 1.21.2 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_21_4::BlockEntity

Available on crate features 1.21.4 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_21_5::BlockEntity

Available on crate features 1.21.5 and block-entities only.
Source§

impl BlockEntity for mcdata::mc1_21_6::BlockEntity

Available on crate features 1.21.6 and block-entities only.
Source§

impl BlockEntity for GenericBlockEntity