Enum minedmap_resource::BlockFlag
source · #[repr(u8)]pub enum BlockFlag {
Opaque = 1,
Grass = 2,
Foliage = 4,
Birch = 8,
Spruce = 16,
Water = 32,
WallSign = 64,
}Expand description
Flags describing special properties of BlockTypes
Variants§
Opaque = 1
The block type is opaque
Grass = 2
The block type is colored using biome grass colors
Foliage = 4
The block type is colored using biome foliage colors
Birch = 8
The block type is birch foliage
Spruce = 16
The block type is spruce foliage
Water = 32
The block type is colored using biome water colors
WallSign = 64
The block type is a wall sign
The WallSign flag is used to distinguish wall signs from freestanding or -hanging signs.
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlockFlag
impl<'de> Deserialize<'de> for BlockFlag
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for BlockFlag
impl PartialEq for BlockFlag
source§impl RawBitFlags for BlockFlag
impl RawBitFlags for BlockFlag
source§const EMPTY: Self::Numeric = {transmute(0x00): <BlockFlag as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00): <BlockFlag as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x00): <BlockFlag as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00): <BlockFlag as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0x7f): <BlockFlag as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x7f): <BlockFlag as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<BlockFlag>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<BlockFlag>"
The name of the type for debug formatting purposes. Read more
impl Copy for BlockFlag
impl StructuralPartialEq for BlockFlag
Auto Trait Implementations§
impl RefUnwindSafe for BlockFlag
impl Send for BlockFlag
impl Sync for BlockFlag
impl Unpin for BlockFlag
impl UnwindSafe for BlockFlag
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