#[repr(u32)]pub enum BlockPredicateKind {
Show 13 variants
MatchingBlocks = 0,
MatchingBlockTag = 1,
MatchingFluids = 2,
HasSturdyFace = 3,
Solid = 4,
Replaceable = 5,
WouldSurvive = 6,
InsideWorldBounds = 7,
AnyOf = 8,
AllOf = 9,
Not = 10,
True = 11,
Unobstructed = 12,
}
Variants§
MatchingBlocks = 0
MatchingBlockTag = 1
MatchingFluids = 2
HasSturdyFace = 3
Solid = 4
Replaceable = 5
WouldSurvive = 6
InsideWorldBounds = 7
AnyOf = 8
AllOf = 9
Not = 10
True = 11
Unobstructed = 12
Implementations§
Source§impl BlockPredicateKind
impl BlockPredicateKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl BlockPredicateKind
impl BlockPredicateKind
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl Clone for BlockPredicateKind
impl Clone for BlockPredicateKind
Source§fn clone(&self) -> BlockPredicateKind
fn clone(&self) -> BlockPredicateKind
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 BlockPredicateKind
impl Debug for BlockPredicateKind
Source§impl<'de> Deserialize<'de> for BlockPredicateKind
impl<'de> Deserialize<'de> for BlockPredicateKind
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 Display for BlockPredicateKind
impl Display for BlockPredicateKind
Source§impl FromNbtTag for BlockPredicateKind
impl FromNbtTag for BlockPredicateKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for BlockPredicateKind
impl FromStr for BlockPredicateKind
Source§impl Hash for BlockPredicateKind
impl Hash for BlockPredicateKind
Source§impl McBufReadable for BlockPredicateKind
impl McBufReadable for BlockPredicateKind
Source§impl McBufWritable for BlockPredicateKind
impl McBufWritable for BlockPredicateKind
Source§impl PartialEq for BlockPredicateKind
impl PartialEq for BlockPredicateKind
Source§impl Registry for BlockPredicateKind
impl Registry for BlockPredicateKind
Source§impl Serialize for BlockPredicateKind
impl Serialize for BlockPredicateKind
Source§impl ToNbtTag for BlockPredicateKind
impl ToNbtTag for BlockPredicateKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for BlockPredicateKind
impl TryFrom<u32> for BlockPredicateKind
impl Copy for BlockPredicateKind
impl Eq for BlockPredicateKind
impl StructuralPartialEq for BlockPredicateKind
Auto Trait Implementations§
impl Freeze for BlockPredicateKind
impl RefUnwindSafe for BlockPredicateKind
impl Send for BlockPredicateKind
impl Sync for BlockPredicateKind
impl Unpin for BlockPredicateKind
impl UnwindSafe for BlockPredicateKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)