#[repr(u32)]pub enum Potion {
Show 46 variants
Water = 0,
Mundane = 1,
Thick = 2,
Awkward = 3,
NightVision = 4,
LongNightVision = 5,
Invisibility = 6,
LongInvisibility = 7,
Leaping = 8,
LongLeaping = 9,
StrongLeaping = 10,
FireResistance = 11,
LongFireResistance = 12,
Swiftness = 13,
LongSwiftness = 14,
StrongSwiftness = 15,
Slowness = 16,
LongSlowness = 17,
StrongSlowness = 18,
TurtleMaster = 19,
LongTurtleMaster = 20,
StrongTurtleMaster = 21,
WaterBreathing = 22,
LongWaterBreathing = 23,
Healing = 24,
StrongHealing = 25,
Harming = 26,
StrongHarming = 27,
Poison = 28,
LongPoison = 29,
StrongPoison = 30,
Regeneration = 31,
LongRegeneration = 32,
StrongRegeneration = 33,
Strength = 34,
LongStrength = 35,
StrongStrength = 36,
Weakness = 37,
LongWeakness = 38,
Luck = 39,
SlowFalling = 40,
LongSlowFalling = 41,
WindCharged = 42,
Weaving = 43,
Oozing = 44,
Infested = 45,
}
Variants§
Water = 0
Mundane = 1
Thick = 2
Awkward = 3
NightVision = 4
LongNightVision = 5
Invisibility = 6
LongInvisibility = 7
Leaping = 8
LongLeaping = 9
StrongLeaping = 10
FireResistance = 11
LongFireResistance = 12
Swiftness = 13
LongSwiftness = 14
StrongSwiftness = 15
Slowness = 16
LongSlowness = 17
StrongSlowness = 18
TurtleMaster = 19
LongTurtleMaster = 20
StrongTurtleMaster = 21
WaterBreathing = 22
LongWaterBreathing = 23
Healing = 24
StrongHealing = 25
Harming = 26
StrongHarming = 27
Poison = 28
LongPoison = 29
StrongPoison = 30
Regeneration = 31
LongRegeneration = 32
StrongRegeneration = 33
Strength = 34
LongStrength = 35
StrongStrength = 36
Weakness = 37
LongWeakness = 38
Luck = 39
SlowFalling = 40
LongSlowFalling = 41
WindCharged = 42
Weaving = 43
Oozing = 44
Infested = 45
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Potion
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Potion
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 FromNbtTag for Potion
impl FromNbtTag for Potion
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl ToNbtTag for Potion
impl ToNbtTag for Potion
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
impl Copy for Potion
impl Eq for Potion
impl StructuralPartialEq for Potion
Auto Trait Implementations§
impl Freeze for Potion
impl RefUnwindSafe for Potion
impl Send for Potion
impl Sync for Potion
impl Unpin for Potion
impl UnwindSafe for Potion
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> 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.