Enum ActionRefused
#[non_exhaustive]pub enum ActionRefused {
NotFake,
Stale,
Busy,
OutOfReach,
Protected,
InvalidSetup,
InvalidTarget,
InvalidStack(StackWriteError),
}Expand description
Why a fake player’s perform_action did nothing at all: it was refused before any of the
action ran.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotFake
The handle is a real player’s.
Stale
The handle is stale, or its fake is gone.
Busy
Another player’s turn, an open transaction, or another perform_action is running.
OutOfReach
The block or entity is out of the player’s reach, or the hit isn’t on the block
(ServerGamePacketListenerImpl’s handleUseItemOn, handleInteract and
handleBlockBreakAction checks).
Protected
The block or entity is above or below the world, under spawn protection or outside the
world border (ServerLevel.mayInteract): nothing is done there.
InvalidSetup
The scoped setup’s eye position, rotation or entity hit is not finite.
InvalidTarget
The action’s target isn’t an entity in the fake’s level, or is the fake itself
(handleInteract’s “Attempting to attack an invalid entity”).
InvalidStack(StackWriteError)
The setup’s held stack was refused before swapping player state or running the action.
Trait Implementations§
§impl Clone for ActionRefused
impl Clone for ActionRefused
§fn clone(&self) -> ActionRefused
fn clone(&self) -> ActionRefused
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ActionRefused
impl Debug for ActionRefused
impl Eq for ActionRefused
§impl NoBackend for ActionRefused
impl NoBackend for ActionRefused
§fn no_backend() -> ActionRefused
fn no_backend() -> ActionRefused
No game: as for a handle whose fake is gone.