Enum oc_wasm_opencomputers::robot::BlockContent
source · 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 copy 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§fn eq(&self, other: &BlockContent) -> bool
fn eq(&self, other: &BlockContent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for BlockContent
impl PartialOrd for BlockContent
source§fn partial_cmp(&self, other: &BlockContent) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockContent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§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