pub enum ArgumentType {
Show 57 variants
Bool,
Float {
min: Option<f32>,
max: Option<f32>,
},
Double {
min: Option<f64>,
max: Option<f64>,
},
Integer {
min: Option<i32>,
max: Option<i32>,
},
Long {
min: Option<i64>,
max: Option<i64>,
},
String {
behavior: ArgumentStringTypeBehavior,
},
Entity {
flags: u8,
},
GameProfile,
BlockPos,
ColumnPos,
Vec3,
Vec2,
BlockState,
BlockPredicate,
ItemStack,
ItemPredicate,
Color,
HexColor,
Component,
Style,
Message,
Nbt,
NbtTag,
NbtPath,
Objective,
ObjectiveCriteria,
Operation,
Particle,
Angle,
Rotation,
ScoreboardSlot,
ScoreHolder {
flags: u8,
},
Swizzle,
Team,
ItemSlot,
ItemSlots,
ResourceLocation,
Function,
EntityAnchor,
IntRange,
FloatRange,
Dimension,
Gamemode,
Time {
min: i32,
},
ResourceOrTag {
identifier: &'static str,
},
ResourceOrTagKey {
identifier: &'static str,
},
Resource {
identifier: &'static str,
},
ResourceKey {
identifier: &'static str,
},
ResourceSelector {
identifier: &'static str,
},
TemplateMirror,
TemplateRotation,
Heightmap,
LootTable,
LootPredicate,
LootModifier,
Dialog,
Uuid,
}Variants§
Bool
Float
Double
Integer
Long
String
Fields
§
behavior: ArgumentStringTypeBehaviorEntity
GameProfile
BlockPos
ColumnPos
Vec3
Vec2
BlockState
BlockPredicate
ItemStack
ItemPredicate
Color
HexColor
Component
Style
Message
Nbt
NbtTag
NbtPath
Objective
ObjectiveCriteria
Operation
Particle
Angle
Rotation
ScoreboardSlot
ScoreHolder
Swizzle
Team
ItemSlot
ItemSlots
ResourceLocation
Function
EntityAnchor
IntRange
FloatRange
Dimension
Gamemode
Time
ResourceOrTag
ResourceOrTagKey
Resource
ResourceKey
ResourceSelector
TemplateMirror
TemplateRotation
Heightmap
LootTable
LootPredicate
LootModifier
Dialog
Uuid
Implementations§
Source§impl ArgumentType
impl ArgumentType
const fn discriminant(&self) -> i32
Source§impl ArgumentType
impl ArgumentType
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArgumentType
impl RefUnwindSafe for ArgumentType
impl Send for ArgumentType
impl Sync for ArgumentType
impl Unpin for ArgumentType
impl UnsafeUnpin for ArgumentType
impl UnwindSafe for ArgumentType
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>