#[repr(u32)]pub enum LootConditionKind {
Show 19 variants
Inverted = 0,
AnyOf = 1,
AllOf = 2,
RandomChance = 3,
RandomChanceWithEnchantedBonus = 4,
EntityProperties = 5,
KilledByPlayer = 6,
EntityScores = 7,
BlockStateProperty = 8,
MatchTool = 9,
TableBonus = 10,
SurvivesExplosion = 11,
DamageSourceProperties = 12,
LocationCheck = 13,
WeatherCheck = 14,
Reference = 15,
TimeCheck = 16,
ValueCheck = 17,
EnchantmentActiveCheck = 18,
}
Variants§
Inverted = 0
AnyOf = 1
AllOf = 2
RandomChance = 3
RandomChanceWithEnchantedBonus = 4
EntityProperties = 5
KilledByPlayer = 6
EntityScores = 7
BlockStateProperty = 8
MatchTool = 9
TableBonus = 10
SurvivesExplosion = 11
DamageSourceProperties = 12
LocationCheck = 13
WeatherCheck = 14
Reference = 15
TimeCheck = 16
ValueCheck = 17
EnchantmentActiveCheck = 18
Implementations§
Source§impl LootConditionKind
impl LootConditionKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl LootConditionKind
impl LootConditionKind
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 LootConditionKind
impl Clone for LootConditionKind
Source§fn clone(&self) -> LootConditionKind
fn clone(&self) -> LootConditionKind
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 LootConditionKind
impl Debug for LootConditionKind
Source§impl<'de> Deserialize<'de> for LootConditionKind
impl<'de> Deserialize<'de> for LootConditionKind
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 LootConditionKind
impl Display for LootConditionKind
Source§impl FromNbtTag for LootConditionKind
impl FromNbtTag for LootConditionKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for LootConditionKind
impl FromStr for LootConditionKind
Source§impl Hash for LootConditionKind
impl Hash for LootConditionKind
Source§impl McBufReadable for LootConditionKind
impl McBufReadable for LootConditionKind
Source§impl McBufWritable for LootConditionKind
impl McBufWritable for LootConditionKind
Source§impl PartialEq for LootConditionKind
impl PartialEq for LootConditionKind
Source§impl Registry for LootConditionKind
impl Registry for LootConditionKind
Source§impl Serialize for LootConditionKind
impl Serialize for LootConditionKind
Source§impl ToNbtTag for LootConditionKind
impl ToNbtTag for LootConditionKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for LootConditionKind
impl TryFrom<u32> for LootConditionKind
impl Copy for LootConditionKind
impl Eq for LootConditionKind
impl StructuralPartialEq for LootConditionKind
Auto Trait Implementations§
impl Freeze for LootConditionKind
impl RefUnwindSafe for LootConditionKind
impl Send for LootConditionKind
impl Sync for LootConditionKind
impl Unpin for LootConditionKind
impl UnwindSafe for LootConditionKind
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
)