#[repr(u32)]pub enum CommandArgumentKind {
Show 54 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,
Component = 17,
Style = 18,
Message = 19,
NbtCompoundTag = 20,
NbtTag = 21,
NbtPath = 22,
Objective = 23,
ObjectiveCriteria = 24,
Operation = 25,
Particle = 26,
Angle = 27,
Rotation = 28,
ScoreboardSlot = 29,
ScoreHolder = 30,
Swizzle = 31,
Team = 32,
ItemSlot = 33,
ItemSlots = 34,
ResourceLocation = 35,
Function = 36,
EntityAnchor = 37,
IntRange = 38,
FloatRange = 39,
Dimension = 40,
Gamemode = 41,
Time = 42,
ResourceOrTag = 43,
ResourceOrTagKey = 44,
Resource = 45,
ResourceKey = 46,
TemplateMirror = 47,
TemplateRotation = 48,
Heightmap = 49,
LootTable = 50,
LootPredicate = 51,
LootModifier = 52,
Uuid = 53,
}
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
Component = 17
Style = 18
Message = 19
NbtCompoundTag = 20
NbtTag = 21
NbtPath = 22
Objective = 23
ObjectiveCriteria = 24
Operation = 25
Particle = 26
Angle = 27
Rotation = 28
ScoreboardSlot = 29
ScoreHolder = 30
Swizzle = 31
Team = 32
ItemSlot = 33
ItemSlots = 34
ResourceLocation = 35
Function = 36
EntityAnchor = 37
IntRange = 38
FloatRange = 39
Dimension = 40
Gamemode = 41
Time = 42
ResourceOrTag = 43
ResourceOrTagKey = 44
Resource = 45
ResourceKey = 46
TemplateMirror = 47
TemplateRotation = 48
Heightmap = 49
LootTable = 50
LootPredicate = 51
LootModifier = 52
Uuid = 53
Implementations§
Source§impl CommandArgumentKind
impl CommandArgumentKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
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 Clone for CommandArgumentKind
impl Clone for CommandArgumentKind
Source§fn clone(&self) -> CommandArgumentKind
fn clone(&self) -> CommandArgumentKind
Returns a copy 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
impl<'de> Deserialize<'de> for CommandArgumentKind
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
impl Display for CommandArgumentKind
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
impl FromStr for CommandArgumentKind
Source§impl Hash for CommandArgumentKind
impl Hash for CommandArgumentKind
Source§impl McBufReadable for CommandArgumentKind
impl McBufReadable for CommandArgumentKind
Source§impl McBufWritable for CommandArgumentKind
impl McBufWritable for CommandArgumentKind
Source§impl PartialEq for CommandArgumentKind
impl PartialEq for CommandArgumentKind
Source§impl Registry for CommandArgumentKind
impl Registry for CommandArgumentKind
Source§impl Serialize for CommandArgumentKind
impl Serialize for CommandArgumentKind
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 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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)