#[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§
Source§impl RuleTest
impl RuleTest
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleTest
impl<'de> Deserialize<'de> for RuleTest
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 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 McBufReadable for RuleTest
impl McBufReadable for RuleTest
Source§impl McBufWritable for RuleTest
impl McBufWritable 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>
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,
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
)