Enum UnspawnedMobError
#[non_exhaustive]pub enum UnspawnedMobError {
Text(TextFormError),
Expired,
Unsupported,
Invalid,
}Expand description
Why a read or an edit of an unspawned mob was refused.
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.
Text(TextFormError)
The retained custom name exceeds the component boundary.
Expired
The hook that lent the handle has returned, the handle belongs to another lend or world, or there is no game.
Unsupported
This mob’s type has no such attribute, or the game keeps no mob behind this lend (the ender dragon, which it stores apart from mobs, or a position check where the game creates the mob later from saved data or the world generator).
Invalid
The value is refused: an unknown attribute, a non-finite number, a modifier id the attribute already has, an empty or full tag list, or invalid item data.
Trait Implementations§
§impl Clone for UnspawnedMobError
impl Clone for UnspawnedMobError
§fn clone(&self) -> UnspawnedMobError
fn clone(&self) -> UnspawnedMobError
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 UnspawnedMobError
impl Debug for UnspawnedMobError
impl Eq for UnspawnedMobError
§impl From<StackWriteError> for UnspawnedMobError
impl From<StackWriteError> for UnspawnedMobError
§fn from(_: StackWriteError) -> UnspawnedMobError
fn from(_: StackWriteError) -> UnspawnedMobError
Converts to this type from the input type.
§impl From<TextFormError> for UnspawnedMobError
impl From<TextFormError> for UnspawnedMobError
§fn from(error: TextFormError) -> UnspawnedMobError
fn from(error: TextFormError) -> UnspawnedMobError
Converts to this type from the input type.
§impl NoBackend for UnspawnedMobError
impl NoBackend for UnspawnedMobError
§fn no_backend() -> UnspawnedMobError
fn no_backend() -> UnspawnedMobError
The error for a host without a game.
§impl PartialEq for UnspawnedMobError
impl PartialEq for UnspawnedMobError
impl StructuralPartialEq for UnspawnedMobError
Auto Trait Implementations§
impl Freeze for UnspawnedMobError
impl RefUnwindSafe for UnspawnedMobError
impl Send for UnspawnedMobError
impl Sync for UnspawnedMobError
impl Unpin for UnspawnedMobError
impl UnsafeUnpin for UnspawnedMobError
impl UnwindSafe for UnspawnedMobError
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