pub struct PotionContentsComponent {
pub potion_id: PrefixedOptional<VarInt>,
pub custom_color: PrefixedOptional<Int>,
pub custom_effects: PrefixedArray<PotionEffect>,
pub custom_name: PrefixedOptional<PrefixedString>,
}Expand description
Wire payload for the PotionContentsComponent structured item component.
Fields§
§potion_id: PrefixedOptional<VarInt>§custom_color: PrefixedOptional<Int>§custom_effects: PrefixedArray<PotionEffect>§custom_name: PrefixedOptional<PrefixedString>Trait Implementations§
Source§impl Clone for PotionContentsComponent
impl Clone for PotionContentsComponent
Source§fn clone(&self) -> PotionContentsComponent
fn clone(&self) -> PotionContentsComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PotionContentsComponent
impl Debug for PotionContentsComponent
Source§impl PartialEq for PotionContentsComponent
impl PartialEq for PotionContentsComponent
impl StructuralPartialEq for PotionContentsComponent
Source§impl TypeCodec for PotionContentsComponent
impl TypeCodec for PotionContentsComponent
Auto Trait Implementations§
impl Freeze for PotionContentsComponent
impl RefUnwindSafe for PotionContentsComponent
impl Send for PotionContentsComponent
impl Sync for PotionContentsComponent
impl Unpin for PotionContentsComponent
impl UnsafeUnpin for PotionContentsComponent
impl UnwindSafe for PotionContentsComponent
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§impl<T> ContextualCodec for Twhere
T: TypeCodec,
impl<T> ContextualCodec for Twhere
T: TypeCodec,
Source§fn encode_with_context(
&self,
writer: &mut impl Write,
_context: &Context,
) -> Result<(), CodecError>
fn encode_with_context( &self, writer: &mut impl Write, _context: &Context, ) -> Result<(), CodecError>
Encodes this value using context supplied by its enclosing structure.
Source§fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
Decodes this value using context supplied by its enclosing structure.