[−][src]Struct terraria_protocol::packets::PlayerInventorySlot
Player inventory slot.
Direction: Server <-> Client (Sync).
Fields
player_id: u8
slot_id: i16
stack: i16
prefix: u8
item_netid: i16
Implementations
impl PlayerInventorySlot
[src]
pub fn slot_location(&self) -> SlotLocation
[src]
The slot location depends on the value of slot_id
:
- 0 - 58 = Inventory
- 59 - 78 = Armor
- 79 - 88 = Dye
- 89 - 93 MiscEquips
- 94 - 98 = MiscDyes
- 99 - 138 = Piggy bank
- 139 - 178 = Safe
- 179 = Trash
- 180 - 219 = Defender's Forge
- 220 - 259 = Void Vault
Trait Implementations
impl Debug for PlayerInventorySlot
[src]
impl PacketBody for PlayerInventorySlot
[src]
Auto Trait Implementations
impl RefUnwindSafe for PlayerInventorySlot
impl Send for PlayerInventorySlot
impl Sync for PlayerInventorySlot
impl Unpin for PlayerInventorySlot
impl UnwindSafe for PlayerInventorySlot
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>,