pub struct ItemStackTemplate {
pub item_id: i32,
pub item_count: i32,
pub added_component_count: i32,
pub removed_component_count: i32,
pub components: Vec<SlotComponent>,
pub remove_components: Vec<ItemStackTemplateRemoveComponents>,
}Expand description
Named type ItemStackTemplate.
Fields§
§item_id: i32itemId
item_count: i32itemCount
added_component_count: i32addedComponentCount
removed_component_count: i32removedComponentCount
components: Vec<SlotComponent>components
remove_components: Vec<ItemStackTemplateRemoveComponents>removeComponents
Trait Implementations§
Source§impl Clone for ItemStackTemplate
impl Clone for ItemStackTemplate
Source§impl Debug for ItemStackTemplate
impl Debug for ItemStackTemplate
Source§impl Decode for ItemStackTemplate
Available on crate feature v26_2 only.
impl Decode for ItemStackTemplate
Available on crate feature
v26_2 only.Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for ItemStackTemplate
Available on crate feature v26_2 only.
impl Encode for ItemStackTemplate
Available on crate feature
v26_2 only.Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl Generate for ItemStackTemplate
Available on crate features testgen and v26_2 only.
impl Generate for ItemStackTemplate
Available on crate features
testgen and v26_2 only.Source§impl PartialEq for ItemStackTemplate
impl PartialEq for ItemStackTemplate
impl StructuralPartialEq for ItemStackTemplate
Auto Trait Implementations§
impl Forget for ItemStackTemplate
impl Freeze for ItemStackTemplatewhere
*const u8 is !null: Freeze,
PhantomData<SlotComponent>: Freeze,
PhantomData<ItemStackTemplateRemoveComponents>: Freeze,
impl Move for ItemStackTemplate
impl RefUnwindSafe for ItemStackTemplate
impl Send for ItemStackTemplate
impl Sync for ItemStackTemplate
impl Unpin for ItemStackTemplate
impl UnsafeUnpin for ItemStackTemplatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<SlotComponent>: UnsafeUnpin,
PhantomData<ItemStackTemplateRemoveComponents>: UnsafeUnpin,
impl UnwindSafe for ItemStackTemplatewhere
RawVecInner: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
BoxRaw<ItemEffectDetail>: UnwindSafe,
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