Enum BlockEntityItemError
#[non_exhaustive]pub enum BlockEntityItemError {
Stale,
Unavailable,
SlotOutOfBounds {
slot: u32,
slots: u32,
},
InvalidStack,
StackTooLarge {
count: u32,
limit: u32,
},
StackRejected(StackWriteError),
}Expand description
Why a mod block entity’s internal item slot could not be read or written.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stale
The handle no longer identifies a loaded entity in the requested level.
The entity is vanilla, not a configured mod holder, or not writable here.
SlotOutOfBounds
The index is outside the current container’s declared slots.
InvalidStack
The incoming stack has an unregistered item, air or zero count. Use None to clear a slot.
StackTooLarge
The incoming count exceeds the registered or component-overridden limit.
StackRejected(StackWriteError)
The game’s item conversion boundary refused the supplied stack.
Trait Implementations§
§impl Clone for BlockEntityItemError
impl Clone for BlockEntityItemError
§fn clone(&self) -> BlockEntityItemError
fn clone(&self) -> BlockEntityItemError
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 BlockEntityItemError
impl Debug for BlockEntityItemError
impl Eq for BlockEntityItemError
§impl From<StackWriteError> for BlockEntityItemError
impl From<StackWriteError> for BlockEntityItemError
§fn from(error: StackWriteError) -> BlockEntityItemError
fn from(error: StackWriteError) -> BlockEntityItemError
Converts to this type from the input type.
§impl NoBackend for BlockEntityItemError
impl NoBackend for BlockEntityItemError
§fn no_backend() -> BlockEntityItemError
fn no_backend() -> BlockEntityItemError
The error for a host without a game.
§impl PartialEq for BlockEntityItemError
impl PartialEq for BlockEntityItemError
impl StructuralPartialEq for BlockEntityItemError
Auto Trait Implementations§
impl Freeze for BlockEntityItemError
impl RefUnwindSafe for BlockEntityItemError
impl Send for BlockEntityItemError
impl Sync for BlockEntityItemError
impl Unpin for BlockEntityItemError
impl UnsafeUnpin for BlockEntityItemError
impl UnwindSafe for BlockEntityItemError
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