final case class InventoryData(contents: List[InventoryItem] = List.empty) extends StreamBitSize with Product with Serializable
A representation of the inventory portion of ObjectCreate*Message
packet data for avatars.
The inventory is a temperamental thing.
Items placed into the inventory must follow their proper encoding schematics to the letter.
The slot number refers to the position occupied by the item.
In icon format, all-encompassing slots are absolute positions; and, grid-distributed icons use the upper-left corner.
No values are allowed to be misplaced and no unexpected regions of data can be discovered.
If there is even a minor failure, the remainder of the inventory will fail to translate.
Inventories are usually prefaced with a single bit value not accounted for here to switch them "on."
- contents
the items in the inventory
- Source
- InventoryData.scala
- See also
InventoryItemData
- Alphabetic
- By Inheritance
- InventoryData
- Serializable
- Product
- Equals
- StreamBitSize
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new InventoryData(contents: List[InventoryItem] = List.empty)
- contents
the items in the inventory
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bitsize: Long
Performs a "sizeof()" analysis of the given object.
The calculation reflects thescodec Codec
definition rather than the explicit parameter fields.Performs a "sizeof()" analysis of the given object.
The calculation reflects thescodec Codec
definition rather than the explicit parameter fields. For example, a traditionalInt
is normally a 32-bit number, often rendered as a32u
number. When parsed with auintL(7)
, it's length will be considered 7 bits (7u
). (Note: being permanently signed, anscodec
value of32u
or longer must fit into aLong
type.)- returns
the number of bits necessary to measure an object of this class; defaults to
0L
- Definition Classes
- InventoryData → StreamBitSize
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val contents: List[InventoryItem]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()