pub enum AdvancementTabAction {
Opened(String),
Closed,
}Variants§
Implementations§
Source§impl AdvancementTabAction
impl AdvancementTabAction
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for AdvancementTabAction
impl Clone for AdvancementTabAction
Source§fn clone(&self) -> AdvancementTabAction
fn clone(&self) -> AdvancementTabAction
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 AdvancementTabAction
impl Debug for AdvancementTabAction
Source§impl Deserialize for AdvancementTabAction
impl Deserialize for AdvancementTabAction
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<AdvancementTabAction> for PlayAdvancementTabSpec
impl From<AdvancementTabAction> for PlayAdvancementTabSpec
Source§fn from(other: AdvancementTabAction) -> Self
fn from(other: AdvancementTabAction) -> Self
Converts to this type from the input type.
Source§impl From<PlayAdvancementTabSpec> for AdvancementTabAction
impl From<PlayAdvancementTabSpec> for AdvancementTabAction
Source§fn from(other: PlayAdvancementTabSpec) -> Self
fn from(other: PlayAdvancementTabSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdvancementTabAction
impl PartialEq for AdvancementTabAction
Source§impl Serialize for AdvancementTabAction
impl Serialize for AdvancementTabAction
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for AdvancementTabAction
Auto Trait Implementations§
impl Freeze for AdvancementTabAction
impl RefUnwindSafe for AdvancementTabAction
impl Send for AdvancementTabAction
impl Sync for AdvancementTabAction
impl Unpin for AdvancementTabAction
impl UnwindSafe for AdvancementTabAction
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