pub enum Command {
Show 85 variants
Advancement(AdvancementType, EntitySelector, AdvancementCommand),
Attribute(EntitySelector, ResourceLocation, AttributeCommand),
Ban(EntitySelector, Option<String>),
BanIP(String, Option<String>),
Banlist(Option<BanlistType>),
Bossbar(BossbarCommand),
Clear(Option<EntitySelector>, Option<ItemPredicate>, Option<i32>),
Clone {
source_dimension: Option<ResourceLocation>,
begin: Coordinates,
end: Coordinates,
target_dimension: Option<ResourceLocation>,
destination: Coordinates,
strict: bool,
mask_mode: CloneMaskMode,
clone_mode: CloneMode,
},
Damage(EntitySelector, NotNan<f32>, Option<ResourceLocation>, Option<DamageType>),
Data(DataCommand),
Datapack(DatapackCommand),
Debug(DebugCommandType),
DefaultGamemode(Gamemode),
Deop(EntitySelector),
Dialog(DialogCommand),
Difficulty(Difficulty),
Effect(EffectCommand),
Enchant(EntitySelector, ResourceLocation, Option<i32>),
Execute(ExecuteSubcommand),
Experience(ExperienceCommand),
FetchProfile(FetchProfileCommand),
Fill(Coordinates, Coordinates, BlockState, Option<FillCommand>),
FillBiome(Coordinates, Coordinates, ResourceLocation, Option<ResourceLocation>),
Forceload(ForceloadCommand),
Function(ResourceLocation, Option<FunctionCommandArguments>),
Gamemode(Gamemode, Option<EntitySelector>),
Gamerule(String, Option<GameruleValue>),
Give(EntitySelector, ItemStack, Option<i32>),
Help(Option<String>),
Item(ItemSource, String, ItemCommand),
JFR(bool),
Kick(EntitySelector, Option<String>),
Kill(Option<EntitySelector>),
List(bool),
Locate(LocateType, ResourceLocation),
Loot(LootTarget, LootSource),
Me(String),
Message(EntitySelector, String),
Op(EntitySelector),
Pardon(EntitySelector),
PardonIp(String),
Particle(ParticleCommand),
Perf(bool),
Place(PlaceCommand),
Playsound(ResourceLocation, Option<SoundSource>, Option<EntitySelector>, Option<WorldCoordinate>, Option<NotNan<f32>>, Option<NotNan<f32>>, Option<NotNan<f32>>),
Publish(Option<bool>, Option<Gamemode>, Option<i32>),
Random(RandomCommand),
Recipe(bool, EntitySelector, RecipeType),
Reload,
Return(ReturnCommand),
Ride(EntitySelector, RideCommand),
Rotate(EntitySelector, RotateCommand),
SaveAll(bool),
SaveOff,
SaveOn,
Say(String),
Schedule(ScheduleCommand),
Scoreboard(ScoreboardCommand),
Seed,
Setblock(Coordinates, BlockState, Option<SetblockMode>),
SetIdleTimeout(i32),
SetWorldSpawn(Option<Coordinates>, Option<NotNan<f32>>),
Spawnpoint(Option<EntitySelector>, Option<Coordinates>, Option<NotNan<f32>>),
Spectate(Option<EntitySelector>, Option<EntitySelector>),
SpreadPlayers(ColumnPosition, NotNan<f32>, NotNan<f32>, Option<i32>, bool, EntitySelector),
Stop,
StopSound(EntitySelector, Option<StopSoundSource>, Option<ResourceLocation>),
Stopwatch(StopwatchCommand),
Summon(EntitySelector, Option<Coordinates>, Option<SNBT>),
Tag(EntitySelector, TagCommand),
Team(TeamCommand),
TeamMessage(String),
Teleport(TeleportCommand),
Tellraw(EntitySelector, SNBT),
Test(TestCommand),
Tick(TickCommand),
Time(TimeCommand),
Title(EntitySelector, TitleCommand),
Transfer(String, Option<i32>, Option<EntitySelector>),
Trigger(String, Option<TriggerAction>),
Version,
Waypoint(WaypointCommand),
Weather(WeatherType, Option<Time>),
Whitelist(WhitelistCommand),
Worldborder(WorldborderCommand),
}Variants§
Advancement(AdvancementType, EntitySelector, AdvancementCommand)
Attribute(EntitySelector, ResourceLocation, AttributeCommand)
Ban(EntitySelector, Option<String>)
BanIP(String, Option<String>)
Banlist(Option<BanlistType>)
Bossbar(BossbarCommand)
Clear(Option<EntitySelector>, Option<ItemPredicate>, Option<i32>)
Clone
Fields
§
source_dimension: Option<ResourceLocation>§
begin: Coordinates§
end: Coordinates§
target_dimension: Option<ResourceLocation>§
destination: Coordinates§
mask_mode: CloneMaskModeDamage(EntitySelector, NotNan<f32>, Option<ResourceLocation>, Option<DamageType>)
Data(DataCommand)
Datapack(DatapackCommand)
Debug(DebugCommandType)
DefaultGamemode(Gamemode)
Deop(EntitySelector)
Dialog(DialogCommand)
Difficulty(Difficulty)
Effect(EffectCommand)
Enchant(EntitySelector, ResourceLocation, Option<i32>)
Execute(ExecuteSubcommand)
Experience(ExperienceCommand)
FetchProfile(FetchProfileCommand)
Fill(Coordinates, Coordinates, BlockState, Option<FillCommand>)
FillBiome(Coordinates, Coordinates, ResourceLocation, Option<ResourceLocation>)
Forceload(ForceloadCommand)
Function(ResourceLocation, Option<FunctionCommandArguments>)
Gamemode(Gamemode, Option<EntitySelector>)
Gamerule(String, Option<GameruleValue>)
Give(EntitySelector, ItemStack, Option<i32>)
Help(Option<String>)
Item(ItemSource, String, ItemCommand)
JFR(bool)
Kick(EntitySelector, Option<String>)
Kill(Option<EntitySelector>)
List(bool)
Locate(LocateType, ResourceLocation)
Loot(LootTarget, LootSource)
Me(String)
Message(EntitySelector, String)
Op(EntitySelector)
Pardon(EntitySelector)
PardonIp(String)
Particle(ParticleCommand)
Perf(bool)
Place(PlaceCommand)
Playsound(ResourceLocation, Option<SoundSource>, Option<EntitySelector>, Option<WorldCoordinate>, Option<NotNan<f32>>, Option<NotNan<f32>>, Option<NotNan<f32>>)
Publish(Option<bool>, Option<Gamemode>, Option<i32>)
Random(RandomCommand)
Recipe(bool, EntitySelector, RecipeType)
Reload
Return(ReturnCommand)
Ride(EntitySelector, RideCommand)
Rotate(EntitySelector, RotateCommand)
SaveAll(bool)
SaveOff
SaveOn
Say(String)
Schedule(ScheduleCommand)
Scoreboard(ScoreboardCommand)
Seed
Setblock(Coordinates, BlockState, Option<SetblockMode>)
SetIdleTimeout(i32)
SetWorldSpawn(Option<Coordinates>, Option<NotNan<f32>>)
Spawnpoint(Option<EntitySelector>, Option<Coordinates>, Option<NotNan<f32>>)
Spectate(Option<EntitySelector>, Option<EntitySelector>)
SpreadPlayers(ColumnPosition, NotNan<f32>, NotNan<f32>, Option<i32>, bool, EntitySelector)
Stop
StopSound(EntitySelector, Option<StopSoundSource>, Option<ResourceLocation>)
Stopwatch(StopwatchCommand)
Summon(EntitySelector, Option<Coordinates>, Option<SNBT>)
Tag(EntitySelector, TagCommand)
Team(TeamCommand)
TeamMessage(String)
Teleport(TeleportCommand)
Tellraw(EntitySelector, SNBT)
Test(TestCommand)
Tick(TickCommand)
Time(TimeCommand)
Title(EntitySelector, TitleCommand)
Transfer(String, Option<i32>, Option<EntitySelector>)
Trigger(String, Option<TriggerAction>)
Version
Waypoint(WaypointCommand)
Weather(WeatherType, Option<Time>)
Whitelist(WhitelistCommand)
Worldborder(WorldborderCommand)
Implementations§
Source§impl Command
impl Command
pub fn get_permission_level(&self, is_multiplayer: bool) -> PermissionLevel
pub fn is_multiplayer_only(&self) -> bool
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more