Enum TriggerCriterionError
#[non_exhaustive]pub enum TriggerCriterionError {
InvalidTrigger,
NotServer,
PlayerUnavailable,
UnloadedChunk,
Stack(StackWriteError),
Test(CriterionTestError),
NoBackend,
}Expand description
Why PlayerRef::trigger_criterion 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.
InvalidTrigger
The general criterion operation refuses vanilla’s minecraft triggers,
or the id has an empty namespace or path.
NotServer
This game is a remote client’s copy, not the authoritative server.
The player handle is stale, offline, or displaced by a nested player’s turn.
UnloadedChunk
The block position is in a chunk not loaded in the player’s level.
Stack(StackWriteError)
The generated item boundary refused a supplied stack before firing either trigger.
Test(CriterionTestError)
A criterion test could not answer. Earlier matching criteria may already be granted.
NoBackend
The host has no game backend (for example, a mod’s test double).
Trait Implementations§
§impl Clone for TriggerCriterionError
impl Clone for TriggerCriterionError
§fn clone(&self) -> TriggerCriterionError
fn clone(&self) -> TriggerCriterionError
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 TriggerCriterionError
impl Debug for TriggerCriterionError
impl Eq for TriggerCriterionError
§impl From<StackWriteError> for TriggerCriterionError
impl From<StackWriteError> for TriggerCriterionError
§fn from(error: StackWriteError) -> TriggerCriterionError
fn from(error: StackWriteError) -> TriggerCriterionError
Converts to this type from the input type.
§impl NoBackend for TriggerCriterionError
impl NoBackend for TriggerCriterionError
§fn no_backend() -> TriggerCriterionError
fn no_backend() -> TriggerCriterionError
The error for a host without a game.
§impl PartialEq for TriggerCriterionError
impl PartialEq for TriggerCriterionError
impl StructuralPartialEq for TriggerCriterionError
Auto Trait Implementations§
impl Freeze for TriggerCriterionError
impl RefUnwindSafe for TriggerCriterionError
impl Send for TriggerCriterionError
impl Sync for TriggerCriterionError
impl Unpin for TriggerCriterionError
impl UnsafeUnpin for TriggerCriterionError
impl UnwindSafe for TriggerCriterionError
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