Enum debris_backends::common::MinecraftCommand
source · pub enum MinecraftCommand {
ScoreboardSet {
player: ScoreboardPlayer,
value: i32,
},
ScoreboardSetEqual {
player1: ScoreboardPlayer,
player2: ScoreboardPlayer,
},
ScoreboardSetFromResult {
player: ScoreboardPlayer,
command: Box<MinecraftCommand>,
},
ScoreboardOperation {
player1: ScoreboardPlayer,
player2: ScoreboardPlayer,
operation: ScoreboardOperation,
},
ScoreboardOperationAdd {
player: ScoreboardPlayer,
value: i32,
},
Execute {
parts: Vec<ExecuteComponent>,
and_then: Option<Box<MinecraftCommand>>,
},
Function {
function: Rc<FunctionIdent>,
},
ScoreboardAdd {
name: Rc<str>,
criterion: ObjectiveCriterion,
json_name: Option<String>,
},
ScoreboardRemove {
name: Rc<str>,
},
RawCommand {
command: Rc<str>,
},
JsonMessage {
target: WriteTarget,
message: String,
},
}
Expand description
Enumerates all minecraft commands that are used by any backend
Variants§
ScoreboardSet
Sets the scoreboard value to a specific integer
ScoreboardSetEqual
Sets the scoreboard value to another scoreboard value
ScoreboardSetFromResult
Sets the scoreboard value equal to the result of the other command
ScoreboardOperation
ScoreboardOperationAdd
Quick operation which adds or removes a static value
Execute
Any used execute command
Function
Fields
§
function: Rc<FunctionIdent>
Calls another function
ScoreboardAdd
ScoreboardRemove
RawCommand
JsonMessage
Trait Implementations§
source§impl Clone for MinecraftCommand
impl Clone for MinecraftCommand
source§fn clone(&self) -> MinecraftCommand
fn clone(&self) -> MinecraftCommand
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 MinecraftCommand
impl Debug for MinecraftCommand
Auto Trait Implementations§
impl RefUnwindSafe for MinecraftCommand
impl !Send for MinecraftCommand
impl !Sync for MinecraftCommand
impl Unpin for MinecraftCommand
impl UnwindSafe for MinecraftCommand
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