#[repr(u32)]pub enum LootFunctionKind {
Show 40 variants
SetCount = 0,
SetItem = 1,
EnchantWithLevels = 2,
EnchantRandomly = 3,
SetEnchantments = 4,
SetCustomData = 5,
SetComponents = 6,
FurnaceSmelt = 7,
EnchantedCountIncrease = 8,
SetDamage = 9,
SetAttributes = 10,
SetName = 11,
ExplorationMap = 12,
SetStewEffect = 13,
CopyName = 14,
SetContents = 15,
ModifyContents = 16,
Filtered = 17,
LimitCount = 18,
ApplyBonus = 19,
SetLootTable = 20,
ExplosionDecay = 21,
SetLore = 22,
FillPlayerHead = 23,
CopyCustomData = 24,
CopyState = 25,
SetBannerPattern = 26,
SetPotion = 27,
SetInstrument = 28,
Reference = 29,
Sequence = 30,
CopyComponents = 31,
SetFireworks = 32,
SetFireworkExplosion = 33,
SetBookCover = 34,
SetWrittenBookPages = 35,
SetWritableBookPages = 36,
ToggleTooltips = 37,
SetOminousBottleAmplifier = 38,
SetCustomModelData = 39,
}
Variants§
SetCount = 0
SetItem = 1
EnchantWithLevels = 2
EnchantRandomly = 3
SetEnchantments = 4
SetCustomData = 5
SetComponents = 6
FurnaceSmelt = 7
EnchantedCountIncrease = 8
SetDamage = 9
SetAttributes = 10
SetName = 11
ExplorationMap = 12
SetStewEffect = 13
CopyName = 14
SetContents = 15
ModifyContents = 16
Filtered = 17
LimitCount = 18
ApplyBonus = 19
SetLootTable = 20
ExplosionDecay = 21
SetLore = 22
FillPlayerHead = 23
CopyCustomData = 24
CopyState = 25
SetBannerPattern = 26
SetPotion = 27
SetInstrument = 28
Reference = 29
Sequence = 30
CopyComponents = 31
SetFireworks = 32
SetFireworkExplosion = 33
SetBookCover = 34
SetWrittenBookPages = 35
SetWritableBookPages = 36
ToggleTooltips = 37
SetOminousBottleAmplifier = 38
SetCustomModelData = 39
Implementations§
Source§impl LootFunctionKind
impl LootFunctionKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl LootFunctionKind
impl LootFunctionKind
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 LootFunctionKind
impl Clone for LootFunctionKind
Source§fn clone(&self) -> LootFunctionKind
fn clone(&self) -> LootFunctionKind
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 LootFunctionKind
impl Debug for LootFunctionKind
Source§impl<'de> Deserialize<'de> for LootFunctionKind
impl<'de> Deserialize<'de> for LootFunctionKind
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 LootFunctionKind
impl Display for LootFunctionKind
Source§impl FromNbtTag for LootFunctionKind
impl FromNbtTag for LootFunctionKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for LootFunctionKind
impl FromStr for LootFunctionKind
Source§impl Hash for LootFunctionKind
impl Hash for LootFunctionKind
Source§impl McBufReadable for LootFunctionKind
impl McBufReadable for LootFunctionKind
Source§impl McBufWritable for LootFunctionKind
impl McBufWritable for LootFunctionKind
Source§impl PartialEq for LootFunctionKind
impl PartialEq for LootFunctionKind
Source§impl Registry for LootFunctionKind
impl Registry for LootFunctionKind
Source§impl Serialize for LootFunctionKind
impl Serialize for LootFunctionKind
Source§impl ToNbtTag for LootFunctionKind
impl ToNbtTag for LootFunctionKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for LootFunctionKind
impl TryFrom<u32> for LootFunctionKind
impl Copy for LootFunctionKind
impl Eq for LootFunctionKind
impl StructuralPartialEq for LootFunctionKind
Auto Trait Implementations§
impl Freeze for LootFunctionKind
impl RefUnwindSafe for LootFunctionKind
impl Send for LootFunctionKind
impl Sync for LootFunctionKind
impl Unpin for LootFunctionKind
impl UnwindSafe for LootFunctionKind
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
)