Skip to main content

steel_core/command/execution/
mod.rs

1//! Tick-owned Minecraft command execution.
2
3mod argument;
4mod biome;
5mod block;
6mod coordinates;
7mod item;
8mod item_predicate;
9mod nbt;
10mod permission;
11mod profile;
12mod queue;
13mod runtime;
14mod score;
15mod selector;
16mod source;
17mod structure;
18mod text;
19mod world;
20
21pub(crate) use argument::SteelArgumentType;
22pub(crate) use argument::{SteelArgumentParser, SteelArgumentSuggestionContext};
23pub(crate) use biome::BiomeOrTag;
24pub(crate) use block::BlockPredicate;
25pub(crate) use coordinates::Coordinates;
26pub(crate) use item_predicate::ItemPredicate;
27pub(crate) use permission::PermissionGroupName;
28pub(crate) use profile::GameProfileArgument;
29pub use queue::CommandSuspensionOrder;
30pub(crate) use queue::{
31    ChainModifiers, CommandExecutionContext, CommandResultSuspension, CommandResultSuspensionPoll,
32    ExecutionControl, ExecutionStop,
33};
34#[cfg_attr(
35    not(test),
36    expect(
37        unused_imports,
38        reason = "custom scheduler extension hooks are retained for keyed command runtimes"
39    )
40)]
41pub(crate) use queue::{CommandSuspension, CommandSuspensionPoll, EntryAction, Frame};
42pub(crate) use runtime::{CustomCommandExecutor, CustomModifierExecutor};
43pub(crate) use runtime::{
44    SteelCommandContext, SteelCommandRuntime, SteelContextChain, SteelExecutor, SteelModifier,
45    argument, literal,
46};
47pub(crate) use score::{IntRange, ScoreHolderArgument, ScoreHolderWildcard};
48#[cfg(test)]
49pub(crate) use selector::parse_entity_selector_text;
50pub(crate) use source::{
51    CommandArgumentSource, CommandPermissionSource, CommandResultCallback, CommandSource,
52    ExecutionCommandSource,
53};
54pub(crate) use structure::StructureOrTagKey;
55pub(crate) use text::CommandTextResolver;
56pub(crate) use world::WorldArgument;
57
58#[cfg(test)]
59mod argument_tests;
60#[cfg(test)]
61mod tests;