pub struct CUpdateAdvancements {
pub reset: bool,
pub added: Vec<AdvancementNodeRef>,
pub removed: Vec<Identifier>,
pub progress: Vec<AdvancementProgressData>,
pub show_advancements: bool,
}Expand description
Updates the client advancement tree and progress
Fields§
§reset: boolThe number of ticks to step forward.
added: Vec<AdvancementNodeRef>§removed: Vec<Identifier>§progress: Vec<AdvancementProgressData>§show_advancements: boolImplementations§
Source§impl CUpdateAdvancements
impl CUpdateAdvancements
Sourcepub const fn new(
reset: bool,
added: Vec<AdvancementNodeRef>,
progress: Vec<AdvancementProgressData>,
removed: Vec<Identifier>,
show_advancements: bool,
) -> Self
pub const fn new( reset: bool, added: Vec<AdvancementNodeRef>, progress: Vec<AdvancementProgressData>, removed: Vec<Identifier>, show_advancements: bool, ) -> Self
Creates a new update advancement packet.
Trait Implementations§
Source§impl ClientPacket for CUpdateAdvancements
impl ClientPacket for CUpdateAdvancements
Source§fn get_id(&self, protocol: ConnectionProtocol) -> Option<i32>
fn get_id(&self, protocol: ConnectionProtocol) -> Option<i32>
Gets the ID of the packet for the given protocol.
Source§fn write_packet(
&self,
writer: &mut impl Write,
protocol: ConnectionProtocol,
) -> Result<(), PacketError>
fn write_packet( &self, writer: &mut impl Write, protocol: ConnectionProtocol, ) -> Result<(), PacketError>
Writes the packet to the given writer. Read more
Source§impl Clone for CUpdateAdvancements
impl Clone for CUpdateAdvancements
Source§impl Debug for CUpdateAdvancements
impl Debug for CUpdateAdvancements
Auto Trait Implementations§
impl !RefUnwindSafe for CUpdateAdvancements
impl !UnwindSafe for CUpdateAdvancements
impl Freeze for CUpdateAdvancements
impl Send for CUpdateAdvancements
impl Sync for CUpdateAdvancements
impl Unpin for CUpdateAdvancements
impl UnsafeUnpin for CUpdateAdvancements
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>