#[repr(u32)]pub enum CommandArgumentKind {
Show 57 variants
Bool = 0,
Float = 1,
Double = 2,
Integer = 3,
Long = 4,
String = 5,
Entity = 6,
GameProfile = 7,
BlockPos = 8,
ColumnPos = 9,
Vec3 = 10,
Vec2 = 11,
BlockState = 12,
BlockPredicate = 13,
ItemStack = 14,
ItemPredicate = 15,
Color = 16,
HexColor = 17,
Component = 18,
Style = 19,
Message = 20,
NbtCompoundTag = 21,
NbtTag = 22,
NbtPath = 23,
Objective = 24,
ObjectiveCriteria = 25,
Operation = 26,
Particle = 27,
Angle = 28,
Rotation = 29,
ScoreboardSlot = 30,
ScoreHolder = 31,
Swizzle = 32,
Team = 33,
ItemSlot = 34,
ItemSlots = 35,
ResourceLocation = 36,
Function = 37,
EntityAnchor = 38,
IntRange = 39,
FloatRange = 40,
Dimension = 41,
Gamemode = 42,
Time = 43,
ResourceOrTag = 44,
ResourceOrTagKey = 45,
Resource = 46,
ResourceKey = 47,
ResourceSelector = 48,
TemplateMirror = 49,
TemplateRotation = 50,
Heightmap = 51,
LootTable = 52,
LootPredicate = 53,
LootModifier = 54,
Dialog = 55,
Uuid = 56,
}Variants§
Bool = 0
Float = 1
Double = 2
Integer = 3
Long = 4
String = 5
Entity = 6
GameProfile = 7
BlockPos = 8
ColumnPos = 9
Vec3 = 10
Vec2 = 11
BlockState = 12
BlockPredicate = 13
ItemStack = 14
ItemPredicate = 15
Color = 16
HexColor = 17
Component = 18
Style = 19
Message = 20
NbtCompoundTag = 21
NbtTag = 22
NbtPath = 23
Objective = 24
ObjectiveCriteria = 25
Operation = 26
Particle = 27
Angle = 28
Rotation = 29
ScoreboardSlot = 30
ScoreHolder = 31
Swizzle = 32
Team = 33
ItemSlot = 34
ItemSlots = 35
ResourceLocation = 36
Function = 37
EntityAnchor = 38
IntRange = 39
FloatRange = 40
Dimension = 41
Gamemode = 42
Time = 43
ResourceOrTag = 44
ResourceOrTagKey = 45
Resource = 46
ResourceKey = 47
ResourceSelector = 48
TemplateMirror = 49
TemplateRotation = 50
Heightmap = 51
LootTable = 52
LootPredicate = 53
LootModifier = 54
Dialog = 55
Uuid = 56
Implementations§
Source§impl CommandArgumentKind
impl CommandArgumentKind
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl AzBuf for CommandArgumentKind
impl AzBuf for CommandArgumentKind
fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl Clone for CommandArgumentKind
impl Clone for CommandArgumentKind
Source§fn clone(&self) -> CommandArgumentKind
fn clone(&self) -> CommandArgumentKind
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 CommandArgumentKind
impl Debug for CommandArgumentKind
Source§impl<'de> Deserialize<'de> for CommandArgumentKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for CommandArgumentKind
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CommandArgumentKind
Convert the value to a stringified identifier, formatted like
"minecraft:air".
impl Display for CommandArgumentKind
Convert the value to a stringified identifier, formatted like
"minecraft:air".
Source§impl FromNbtTag for CommandArgumentKind
impl FromNbtTag for CommandArgumentKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for CommandArgumentKind
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
impl FromStr for CommandArgumentKind
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
Source§impl Hash for CommandArgumentKind
impl Hash for CommandArgumentKind
Source§impl Ord for CommandArgumentKind
impl Ord for CommandArgumentKind
Source§fn cmp(&self, other: &CommandArgumentKind) -> Ordering
fn cmp(&self, other: &CommandArgumentKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CommandArgumentKind
impl PartialEq for CommandArgumentKind
Source§impl PartialOrd for CommandArgumentKind
impl PartialOrd for CommandArgumentKind
Source§impl Registry for CommandArgumentKind
impl Registry for CommandArgumentKind
Source§impl Serialize for CommandArgumentKind
Available on crate feature serde only.
impl Serialize for CommandArgumentKind
Available on crate feature
serde only.Source§impl ToNbtTag for CommandArgumentKind
impl ToNbtTag for CommandArgumentKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl<'a> TryFrom<&'a Identifier> for CommandArgumentKind
impl<'a> TryFrom<&'a Identifier> for CommandArgumentKind
Source§impl TryFrom<u32> for CommandArgumentKind
impl TryFrom<u32> for CommandArgumentKind
impl Copy for CommandArgumentKind
impl Eq for CommandArgumentKind
impl StructuralPartialEq for CommandArgumentKind
Auto Trait Implementations§
impl Freeze for CommandArgumentKind
impl RefUnwindSafe for CommandArgumentKind
impl Send for CommandArgumentKind
impl Sync for CommandArgumentKind
impl Unpin for CommandArgumentKind
impl UnwindSafe for CommandArgumentKind
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.