[][src]Struct terraria_protocol::packets::SyncActiveChest

pub struct SyncActiveChest {
    pub id: i16,
    pub x: i16,
    pub y: i16,
    pub name: String,
}

Used to tell the server that you've exited the chest view (sending ID -1), looking at your piggy bank (sending ID -2), looking at your safe (sending ID -3) or looking at your defender's forge (sending ID -4).

These are sent at every chest interaction.

The main function of the packet is to synchronize the sending client's active chest to the server and its side function is to rename the chest.

It should be noted that this packet is not sent when you open a regular chest. The server knows which chest you opened when you send packet 31 OpenChest, so this one is only sent upon exit to unblock the chest (as opposed to both open & exit for banks like piggy, safe & defender forge).

Direction: Server <-> Client (Sync).

Fields

id: i16x: i16y: i16name: String

Trait Implementations

impl Debug for SyncActiveChest[src]

impl PacketBody for SyncActiveChest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.