#[repr(u32)]pub enum DialogKind {
Notice = 0,
ServerLinks = 1,
DialogList = 2,
MultiAction = 3,
Confirmation = 4,
}
Variants§
Implementations§
Source§impl DialogKind
impl DialogKind
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl DialogKind
impl DialogKind
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 AzaleaRead for DialogKind
impl AzaleaRead for DialogKind
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for DialogKind
impl AzaleaWrite for DialogKind
Source§impl Clone for DialogKind
impl Clone for DialogKind
Source§fn clone(&self) -> DialogKind
fn clone(&self) -> DialogKind
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 DialogKind
impl Debug for DialogKind
Source§impl<'de> Deserialize<'de> for DialogKind
impl<'de> Deserialize<'de> for DialogKind
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 DialogKind
impl Display for DialogKind
Source§impl FromNbtTag for DialogKind
impl FromNbtTag for DialogKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for DialogKind
impl FromStr for DialogKind
Source§impl Hash for DialogKind
impl Hash for DialogKind
Source§impl PartialEq for DialogKind
impl PartialEq for DialogKind
Source§impl Registry for DialogKind
impl Registry for DialogKind
Source§impl Serialize for DialogKind
impl Serialize for DialogKind
Source§impl ToNbtTag for DialogKind
impl ToNbtTag for DialogKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for DialogKind
impl TryFrom<u32> for DialogKind
impl Copy for DialogKind
impl Eq for DialogKind
impl StructuralPartialEq for DialogKind
Auto Trait Implementations§
impl Freeze for DialogKind
impl RefUnwindSafe for DialogKind
impl Send for DialogKind
impl Sync for DialogKind
impl Unpin for DialogKind
impl UnwindSafe for DialogKind
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