pub struct Stack {
pub name: String,
pub count: i64,
pub fluid: bool,
pub key: Option<String>,
pub label: Option<String>,
}Expand description
An item or fluid and an amount.
Fields§
§name: StringThe registry name, such as minecraft:iron_ingot.
count: i64Items, or millibuckets for fluids.
fluid: bool§key: Option<String>AE2’s description of the exact stack (SNBT), for items with data
components such as enchantments. When set, it’s used and name and
fluid are ignored. Stacks the component returns have it whenever
it’s needed, so they can be passed back as they are.
label: Option<String>The display name. Only filled in on stacks the component returns.
Implementations§
Trait Implementations§
impl Eq for Stack
impl StructuralPartialEq for Stack
Auto Trait Implementations§
impl Forget for Stack
impl Freeze for Stack
impl Move for Stack
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnsafeUnpin for Stack
impl UnwindSafe for Stack
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