Type Alias valence::protocol::packets::play::AdvancementUpdateS2c

pub type AdvancementUpdateS2c<'a> = GenericAdvancementUpdateS2c<'a, (Ident<Cow<'a, str>>, Advancement<'a, ItemStack>)>;

Aliased Type§

struct AdvancementUpdateS2c<'a> {
    pub reset: bool,
    pub advancement_mapping: Vec<(Ident<Cow<'a, str>>, Advancement<'a, ItemStack>)>,
    pub identifiers: Vec<Ident<Cow<'a, str>>>,
    pub progress_mapping: Vec<(Ident<Cow<'a, str>>, Vec<AdvancementCriteria<'a>>)>,
}

Fields§

§reset: bool§advancement_mapping: Vec<(Ident<Cow<'a, str>>, Advancement<'a, ItemStack>)>§identifiers: Vec<Ident<Cow<'a, str>>>§progress_mapping: Vec<(Ident<Cow<'a, str>>, Vec<AdvancementCriteria<'a>>)>

Trait Implementations

§

impl<'a, AM> Clone for GenericAdvancementUpdateS2c<'a, AM>
where AM: Clone + 'a,

§

fn clone(&self) -> GenericAdvancementUpdateS2c<'a, AM>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'a, AM> Debug for GenericAdvancementUpdateS2c<'a, AM>
where AM: Debug + 'a,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a, AM> Decode<'a> for GenericAdvancementUpdateS2c<'a, AM>
where AM: 'a + Decode<'a>,

§

fn decode( _r: &mut &'a [u8], ) -> Result<GenericAdvancementUpdateS2c<'a, AM>, Error>

Reads this object from the provided byte slice. Read more
§

impl<'a, AM> Encode for GenericAdvancementUpdateS2c<'a, AM>
where AM: 'a + Encode,

§

fn encode(&self, _w: impl Write) -> Result<(), Error>

Writes this object to the provided writer. Read more
§

fn encode_slice(slice: &[Self], w: impl Write) -> Result<(), Error>
where Self: Sized,

Like Encode::encode, except that a whole slice of values is encoded. Read more
§

impl<'a, AM> Packet for GenericAdvancementUpdateS2c<'a, AM>
where AM: 'a + Debug,

§

const ID: i32 = 105i32

The leading VarInt ID of this packet.
§

const NAME: &'static str = "GenericAdvancementUpdateS2c"

The name of this packet for debugging purposes.
§

const SIDE: PacketSide = ::valence_protocol::PacketSide::Clientbound

The side this packet is intended for.
§

const STATE: PacketState = ::valence_protocol::PacketState::Play

The state in which this packet is used.