pub enum CommandParserSpec {
Show 45 variants
Bool,
Double(DoubleParserProps),
Float(FloatParserProps),
Integer(IntegerParserProps),
StringParser(StringParserMode),
Entity(EntityParserFlags),
GameProfile,
BlockPosition,
ColumnPosition,
Vec3,
Vec2,
BlockState,
BlockPredicate,
ItemStack,
ItemPredicate,
Color,
Component,
Message,
Nbt,
NbtPath,
Objective,
ObjectiveCriteria,
Operation,
Particle,
Rotation,
Angle,
ScoreboardSlot,
ScoreHolder(ScoreHolderFlags),
Swizzle,
Team,
ItemSlot,
ResourceLocation,
MobEffect,
Function,
EntityAnchor,
Range(RangeParserProps),
IntRange,
FloatRange,
ItemEnchantment,
EntitySummon,
Dimension,
UUID,
NbtTag,
NbtCompoundTag,
Time,
}
Variants§
Bool
Double(DoubleParserProps)
Float(FloatParserProps)
Integer(IntegerParserProps)
StringParser(StringParserMode)
Entity(EntityParserFlags)
GameProfile
BlockPosition
ColumnPosition
Vec3
Vec2
BlockState
BlockPredicate
ItemStack
ItemPredicate
Color
Component
Message
Nbt
NbtPath
Objective
ObjectiveCriteria
Operation
Particle
Rotation
Angle
ScoreboardSlot
ScoreHolder(ScoreHolderFlags)
Swizzle
Team
ItemSlot
ResourceLocation
MobEffect
Function
EntityAnchor
Range(RangeParserProps)
IntRange
FloatRange
ItemEnchantment
EntitySummon
Dimension
UUID
NbtTag
NbtCompoundTag
Time
Implementations§
Source§impl CommandParserSpec
impl CommandParserSpec
pub const fn variant_count() -> usize
pub fn name(&self) -> &str
pub fn id(&self) -> String
pub fn deserialize_with_id<'a>( name: &str, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for CommandParserSpec
impl Clone for CommandParserSpec
Source§fn clone(&self) -> CommandParserSpec
fn clone(&self) -> CommandParserSpec
Returns a duplicate 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 CommandParserSpec
impl Debug for CommandParserSpec
Source§impl Deserialize for CommandParserSpec
impl Deserialize for CommandParserSpec
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<&CommandParserSpec> for String
impl From<&CommandParserSpec> for String
Source§fn from(arg: &CommandParserSpec) -> Self
fn from(arg: &CommandParserSpec) -> Self
Converts to this type from the input type.
Source§impl From<CommandParserSpec> for String
impl From<CommandParserSpec> for String
Source§fn from(arg: CommandParserSpec) -> Self
fn from(arg: CommandParserSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandParserSpec
impl PartialEq for CommandParserSpec
Source§impl Serialize for CommandParserSpec
impl Serialize for CommandParserSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for CommandParserSpec
Auto Trait Implementations§
impl Freeze for CommandParserSpec
impl RefUnwindSafe for CommandParserSpec
impl Send for CommandParserSpec
impl Sync for CommandParserSpec
impl Unpin for CommandParserSpec
impl UnwindSafe for CommandParserSpec
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