pub enum ChatKindKey<Other = Identifier> {
Chat,
EmoteCommand,
MsgCommandIncoming,
MsgCommandOutgoing,
SayCommand,
TeamMsgCommandIncoming,
TeamMsgCommandOutgoing,
Other(Other),
}Variants§
Chat
EmoteCommand
MsgCommandIncoming
MsgCommandOutgoing
SayCommand
TeamMsgCommandIncoming
TeamMsgCommandOutgoing
Other(Other)
Implementations§
Source§impl ChatKindKey
impl ChatKindKey
Source§impl<O> ChatKindKey<O>
impl<O> ChatKindKey<O>
pub fn chat_translation_key(self) -> &'static str
pub fn narrator_translation_key(self) -> &'static str
Trait Implementations§
Source§impl<Other: Clone> Clone for ChatKindKey<Other>
impl<Other: Clone> Clone for ChatKindKey<Other>
Source§fn clone(&self) -> ChatKindKey<Other>
fn clone(&self) -> ChatKindKey<Other>
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 DataRegistryKey for ChatKindKey
impl DataRegistryKey for ChatKindKey
type Borrow<'a> = ChatKindKey<&'a Identifier>
fn into_ident(self) -> Identifier
Source§impl<'a> DataRegistryKeyRef<'a> for ChatKindKey<&'a Identifier>
impl<'a> DataRegistryKeyRef<'a> for ChatKindKey<&'a Identifier>
type Owned = ChatKindKey
fn to_owned(self) -> Self::Owned
fn from_ident(ident: &'a Identifier) -> Self
fn into_ident(self) -> Identifier
Source§impl<Other: Debug> Debug for ChatKindKey<Other>
impl<Other: Debug> Debug for ChatKindKey<Other>
Source§impl<'a> From<&'a Identifier> for ChatKindKey<&'a Identifier>
impl<'a> From<&'a Identifier> for ChatKindKey<&'a Identifier>
Source§fn from(ident: &'a Identifier) -> Self
fn from(ident: &'a Identifier) -> Self
Converts to this type from the input type.
Source§impl From<ChatKindKey<&Identifier>> for Identifier
impl From<ChatKindKey<&Identifier>> for Identifier
Source§fn from(registry: ChatKindKey<&Identifier>) -> Self
fn from(registry: ChatKindKey<&Identifier>) -> Self
Converts to this type from the input type.
Source§impl From<ChatKindKey> for Identifier
impl From<ChatKindKey> for Identifier
Source§fn from(registry: ChatKindKey) -> Self
fn from(registry: ChatKindKey) -> Self
Converts to this type from the input type.
Source§impl From<Identifier> for ChatKindKey
impl From<Identifier> for ChatKindKey
Source§fn from(ident: Identifier) -> Self
fn from(ident: Identifier) -> Self
Converts to this type from the input type.
Source§impl FromNbtTag for ChatKindKey
impl FromNbtTag for ChatKindKey
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl<Other: Hash> Hash for ChatKindKey<Other>
impl<Other: Hash> Hash for ChatKindKey<Other>
Source§impl<Other: PartialEq> PartialEq for ChatKindKey<Other>
impl<Other: PartialEq> PartialEq for ChatKindKey<Other>
impl<Other: Eq> Eq for ChatKindKey<Other>
impl<Other> StructuralPartialEq for ChatKindKey<Other>
Auto Trait Implementations§
impl<Other> Freeze for ChatKindKey<Other>where
Other: Freeze,
impl<Other> RefUnwindSafe for ChatKindKey<Other>where
Other: RefUnwindSafe,
impl<Other> Send for ChatKindKey<Other>where
Other: Send,
impl<Other> Sync for ChatKindKey<Other>where
Other: Sync,
impl<Other> Unpin for ChatKindKey<Other>where
Other: Unpin,
impl<Other> UnwindSafe for ChatKindKey<Other>where
Other: UnwindSafe,
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.