#[repr(u32)]pub enum RuleTest {
AlwaysTrue = 0,
BlockMatch = 1,
BlockstateMatch = 2,
TagMatch = 3,
RandomBlockMatch = 4,
RandomBlockstateMatch = 5,
}Variants§
AlwaysTrue = 0
BlockMatch = 1
BlockstateMatch = 2
TagMatch = 3
RandomBlockMatch = 4
RandomBlockstateMatch = 5
Implementations§
Trait Implementations§
Source§impl AzBuf for RuleTest
impl AzBuf for RuleTest
fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl<'de> Deserialize<'de> for RuleTest
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RuleTest
Available on crate feature
serde only.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 RuleTest
Convert the value to a stringified identifier, formatted like
"minecraft:air".
impl Display for RuleTest
Convert the value to a stringified identifier, formatted like
"minecraft:air".
Source§impl FromNbtTag for RuleTest
impl FromNbtTag for RuleTest
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for RuleTest
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
impl FromStr for RuleTest
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
Source§impl Ord for RuleTest
impl Ord for RuleTest
Source§impl PartialOrd for RuleTest
impl PartialOrd for RuleTest
Source§impl ToNbtTag for RuleTest
impl ToNbtTag for RuleTest
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl<'a> TryFrom<&'a Identifier> for RuleTest
impl<'a> TryFrom<&'a Identifier> for RuleTest
impl Copy for RuleTest
impl Eq for RuleTest
impl StructuralPartialEq for RuleTest
Auto Trait Implementations§
impl Freeze for RuleTest
impl RefUnwindSafe for RuleTest
impl Send for RuleTest
impl Sync for RuleTest
impl Unpin for RuleTest
impl UnwindSafe for RuleTest
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.