[−][src]Struct terraria_protocol::packets::SyncActiveChest
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: i16
x: i16
y: i16
name: String
Trait Implementations
impl Debug for SyncActiveChest
[src]
impl PacketBody for SyncActiveChest
[src]
Auto Trait Implementations
impl RefUnwindSafe for SyncActiveChest
impl Send for SyncActiveChest
impl Sync for SyncActiveChest
impl Unpin for SyncActiveChest
impl UnwindSafe for SyncActiveChest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,