pub struct PotionContents {
pub potion_id: PrefixedOptional<VarInt>,
pub custom_color: PrefixedOptional<Int>,
pub custom_effects: PrefixedArray<PotionEffect>,
pub custom_name: String,
}Fields§
§potion_id: PrefixedOptional<VarInt>§custom_color: PrefixedOptional<Int>§custom_effects: PrefixedArray<PotionEffect>§custom_name: StringImplementations§
Source§impl PotionContents
impl PotionContents
pub fn new( potion_id: PrefixedOptional<VarInt>, custom_color: PrefixedOptional<Int>, custom_effects: PrefixedArray<PotionEffect>, custom_name: String, ) -> Self
Trait Implementations§
Source§impl Clone for PotionContents
impl Clone for PotionContents
Source§fn clone(&self) -> PotionContents
fn clone(&self) -> PotionContents
Returns a duplicate 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 PotionContents
impl Debug for PotionContents
Source§impl Field for PotionContents
impl Field for PotionContents
Auto Trait Implementations§
impl Freeze for PotionContents
impl RefUnwindSafe for PotionContents
impl Send for PotionContents
impl Sync for PotionContents
impl Unpin for PotionContents
impl UnwindSafe for PotionContents
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