pub struct PotionContents {
pub potion: Option<Potion>,
pub custom_color: Option<i32>,
pub custom_effects: Vec<MobEffectInstance>,
pub custom_name: Option<String>,
}Fields§
§potion: Option<Potion>§custom_color: Option<i32>§custom_effects: Vec<MobEffectInstance>§custom_name: Option<String>Implementations§
Trait Implementations§
Source§impl AzaleaRead for PotionContents
impl AzaleaRead for PotionContents
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for PotionContents
impl AzaleaWrite for PotionContents
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 DataComponentTrait for PotionContents
impl DataComponentTrait for PotionContents
const KIND: DataComponentKind = DataComponentKind::PotionContents
Source§impl Debug for PotionContents
impl Debug for PotionContents
Source§impl Default for PotionContents
impl Default for PotionContents
Source§impl DefaultableComponent for PotionContents
impl DefaultableComponent for PotionContents
fn default_for_item(item: Item) -> Option<Self>
Source§impl From<PotionContents> for DataComponentUnion
impl From<PotionContents> for DataComponentUnion
Source§fn from(value: PotionContents) -> Self
fn from(value: PotionContents) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PotionContents
impl PartialEq for PotionContents
Source§impl Serialize for PotionContents
impl Serialize for PotionContents
impl StructuralPartialEq 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