Trait azalea::inventory::item::MaxStackSizeExt

source ·
pub trait MaxStackSizeExt {
    // Required method
    fn max_stack_size(&self) -> i8;

    // Provided method
    fn stackable(&self) -> bool { ... }
}

Required Methods§

source

fn max_stack_size(&self) -> i8

Get the maximum stack size for this item.

This is a signed integer to be consistent with the count field of ItemSlotData.

Provided Methods§

source

fn stackable(&self) -> bool

Whether this item can be stacked with other items.

This is equivalent to self.max_stack_size() > 1.

Implementations on Foreign Types§

source§

impl MaxStackSizeExt for Item

Implementors§