Enum debris_backends::common::ExecuteComponent
source · pub enum ExecuteComponent {
IfScoreRelation {
player1: ScoreboardPlayer,
player2: ScoreboardPlayer,
comparison: ScoreboardComparison,
},
IfScoreRange {
player: ScoreboardPlayer,
range: MinecraftRange,
},
}
Expand description
A component in an execute command
Variants§
IfScoreRelation
Tests for a relation between to scores
IfScoreRange
Tests for a relation between a score and a static value
Implementations§
source§impl ExecuteComponent
impl ExecuteComponent
sourcepub fn is_condition(&self) -> bool
pub fn is_condition(&self) -> bool
Returns whether this component is a condition (Right now always true)
Trait Implementations§
source§impl Clone for ExecuteComponent
impl Clone for ExecuteComponent
source§fn clone(&self) -> ExecuteComponent
fn clone(&self) -> ExecuteComponent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExecuteComponent
impl Debug for ExecuteComponent
Auto Trait Implementations§
impl RefUnwindSafe for ExecuteComponent
impl !Send for ExecuteComponent
impl !Sync for ExecuteComponent
impl Unpin for ExecuteComponent
impl UnwindSafe for ExecuteComponent
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