pub enum BlockContent {
Entity,
Air,
Liquid,
Replaceable,
Passable,
Solid,
}
Expand description
The things that can exist in the space of a block.
Variants§
Entity
There is a creature (player, friendly, neutral, or hostile) or minecart in the space.
Despite the name, note that certain other entities, such as drones, do not return this value. The name is based on the name used within OpenComputers itself.
Air
There is nothing in the space.
Liquid
There is a liquid in the space.
Replaceable
There is a block in the space that the robot can move into, which would be destroyed if it did so.
An example of this kind of content is tall grass.
Passable
There is a block in the space that a player could walk through, but the robot cannot.
An example of this kind of content is a flower.
Solid
There is a normal block in the space.
Implementations§
Trait Implementations§
Source§impl Clone for BlockContent
impl Clone for BlockContent
Source§fn clone(&self) -> BlockContent
fn clone(&self) -> BlockContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlockContent
impl Debug for BlockContent
Source§impl Display for BlockContent
impl Display for BlockContent
Source§impl FromStr for BlockContent
impl FromStr for BlockContent
Source§impl Hash for BlockContent
impl Hash for BlockContent
Source§impl Ord for BlockContent
impl Ord for BlockContent
Source§fn cmp(&self, other: &BlockContent) -> Ordering
fn cmp(&self, other: &BlockContent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BlockContent
impl PartialEq for BlockContent
Source§impl PartialOrd for BlockContent
impl PartialOrd for BlockContent
Source§impl TryFrom<&str> for BlockContent
impl TryFrom<&str> for BlockContent
impl Copy for BlockContent
impl Eq for BlockContent
impl StructuralPartialEq for BlockContent
Auto Trait Implementations§
impl Freeze for BlockContent
impl RefUnwindSafe for BlockContent
impl Send for BlockContent
impl Sync for BlockContent
impl Unpin for BlockContent
impl UnwindSafe for BlockContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more