#[repr(u32)]pub enum ChatType {
Chat = 0,
SayCommand = 1,
MsgCommandIncoming = 2,
MsgCommandOutgoing = 3,
TeamMsgCommandIncoming = 4,
TeamMsgCommandOutgoing = 5,
EmoteCommand = 6,
}
Variants§
Chat = 0
SayCommand = 1
MsgCommandIncoming = 2
MsgCommandOutgoing = 3
TeamMsgCommandIncoming = 4
TeamMsgCommandOutgoing = 5
EmoteCommand = 6
Implementations§
Source§impl ChatType
impl ChatType
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
Source§impl ChatType
impl ChatType
pub fn chat_translation_key(self) -> &'static str
pub fn narrator_translation_key(self) -> &'static str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatType
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for ChatType
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 FromNbtTag for ChatType
impl FromNbtTag for ChatType
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl ToNbtTag for ChatType
impl ToNbtTag for ChatType
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
impl Copy for ChatType
impl Eq for ChatType
impl StructuralPartialEq for ChatType
Auto Trait Implementations§
impl Freeze for ChatType
impl RefUnwindSafe for ChatType
impl Send for ChatType
impl Sync for ChatType
impl Unpin for ChatType
impl UnwindSafe for ChatType
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> 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.