pub struct ChestData {
pub custom_name: Option<String>,
pub items: Vec<Item>,
pub lock: Option<String>,
pub loottable: Option<String>,
pub loottable_seed: Option<i64>,
}Expand description
A Struct for every BlockEntity that has an inventory
Fields§
§custom_name: Option<String>Optional custom name
items: Vec<Item>A list of all items of the inventory
lock: Option<String>When not blank, the container cannot be opened unless the player is holding an item with an identical name
loottable: Option<String>Optional loottable, that defines, what can generate in the chest
§Note
After generating the items, this field will be emptied
§Info
this could be changed to LootTable
loottable_seed: Option<i64>Trait Implementations§
source§impl PartialEq for ChestData
impl PartialEq for ChestData
impl StructuralPartialEq for ChestData
Auto Trait Implementations§
impl Freeze for ChestData
impl RefUnwindSafe for ChestData
impl Send for ChestData
impl Sync for ChestData
impl Unpin for ChestData
impl UnwindSafe for ChestData
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