Struct ModContainer
pub struct ModContainer {
pub slots: usize,
pub faces: [Vec<usize>; 6],
pub inputs: Vec<usize>,
pub outputs: Vec<usize>,
pub menu: Option<String>,
}Expand description
The container of a mod block’s block entity, as a WorldlyContainer
says it: its slot count, the slots each face reaches
(getSlotsForFace, by Direction: down, up, north, south, west, east),
and the slots hoppers may put into (canPlaceItemThroughFace) and take
from (canTakeItemThroughFace); and the vanilla menu that shows its
slots when the block is used, if any (MOD_MENUS).
Fields§
§slots: usize§faces: [Vec<usize>; 6]§inputs: Vec<usize>§outputs: Vec<usize>Trait Implementations§
§impl Clone for ModContainer
impl Clone for ModContainer
§fn clone(&self) -> ModContainer
fn clone(&self) -> ModContainer
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 more§impl Debug for ModContainer
impl Debug for ModContainer
§impl Default for ModContainer
impl Default for ModContainer
§fn default() -> ModContainer
fn default() -> ModContainer
Returns the “default value” for a type. Read more
impl Eq for ModContainer
§impl PartialEq for ModContainer
impl PartialEq for ModContainer
impl StructuralPartialEq for ModContainer
Auto Trait Implementations§
impl Freeze for ModContainer
impl RefUnwindSafe for ModContainer
impl Send for ModContainer
impl Sync for ModContainer
impl Unpin for ModContainer
impl UnsafeUnpin for ModContainer
impl UnwindSafe for ModContainer
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