Skip to main content

BlockTraits

Struct BlockTraits 

Source
pub struct BlockTraits(pub u64);
Expand description

A set of block traits.

Tuple Fields§

§0: u64

Implementations§

Source§

impl BlockTraits

Source

pub const AIR: BlockTraits

block_trait::AIR.

Source

pub const SOLID: BlockTraits

block_trait::SOLID.

Source

pub const FULL: BlockTraits

block_trait::FULL.

Source

pub const LIQUID: BlockTraits

block_trait::LIQUID.

Source

pub const WATER: BlockTraits

block_trait::WATER.

Source

pub const LAVA: BlockTraits

block_trait::LAVA.

Source

pub const SOURCE: BlockTraits

block_trait::SOURCE.

Source

pub const FLUID_BLOCK: BlockTraits

block_trait::FLUID_BLOCK.

Source

pub const CLIMBABLE: BlockTraits

block_trait::CLIMBABLE.

Source

pub const HARMFUL: BlockTraits

block_trait::HARMFUL.

Source

pub const FALLS: BlockTraits

block_trait::FALLS.

Source

pub const PATHFINDABLE: BlockTraits

block_trait::PATHFINDABLE.

Source

pub const REPLACEABLE: BlockTraits

block_trait::REPLACEABLE.

Source

pub const STURDY_TOP: BlockTraits

block_trait::STURDY_TOP.

Source

pub const FIRE: BlockTraits

block_trait::FIRE.

Source

pub const SLAB: BlockTraits

block_trait::SLAB.

Source

pub const STAIRS: BlockTraits

block_trait::STAIRS.

Source

pub const DOOR: BlockTraits

block_trait::DOOR.

Source

pub const WOODEN_DOOR: BlockTraits

block_trait::WOODEN_DOOR.

Source

pub const FENCE_GATE: BlockTraits

block_trait::FENCE_GATE.

Source

pub const TRAPDOOR: BlockTraits

block_trait::TRAPDOOR.

Source

pub const FENCE: BlockTraits

block_trait::FENCE.

Source

pub const WALL: BlockTraits

block_trait::WALL.

Source

pub const CARPET: BlockTraits

block_trait::CARPET.

Source

pub const SNOW_LAYER: BlockTraits

block_trait::SNOW_LAYER.

Source

pub const SKULL: BlockTraits

block_trait::SKULL.

Source

pub const SHULKER_BOX: BlockTraits

block_trait::SHULKER_BOX.

Source

pub const LEAVES: BlockTraits

block_trait::LEAVES.

Source

pub const INFESTED: BlockTraits

block_trait::INFESTED.

Source

pub const CAULDRON: BlockTraits

block_trait::CAULDRON.

Source

pub const AZALEA: BlockTraits

block_trait::AZALEA.

Source

pub const AMETHYST_CLUSTER: BlockTraits

block_trait::AMETHYST_CLUSTER.

Source

pub const POINTED_DRIPSTONE: BlockTraits

block_trait::POINTED_DRIPSTONE.

Source

pub const BAMBOO: BlockTraits

block_trait::BAMBOO.

Source

pub const MOVING_PISTON: BlockTraits

block_trait::MOVING_PISTON.

Source

pub const SCAFFOLDING: BlockTraits

block_trait::SCAFFOLDING.

Source

pub const CHEST: BlockTraits

block_trait::CHEST.

Source

pub const GLASS: BlockTraits

block_trait::GLASS.

Source§

impl BlockTraits

Source

pub const fn has(self, t: BlockTraits) -> bool

Whether every one of t is among these.

Source

pub const fn any(self, t: BlockTraits) -> bool

Whether any of t is among these.

Trait Implementations§

Source§

impl BitOr for BlockTraits

Source§

type Output = BlockTraits

The resulting type after applying the | operator.
Source§

fn bitor(self, o: BlockTraits) -> BlockTraits

Performs the | operation. Read more
Source§

impl Clone for BlockTraits

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for BlockTraits

Source§

impl Debug for BlockTraits

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BlockTraits

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for BlockTraits

Source§

impl Hash for BlockTraits

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for BlockTraits

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BlockTraits

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Arg<T> for T

Source§

fn arg(self) -> T

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.