This data will help construct a "box" of that type of ammunition when standalone.
It can also be constructed directly inside a weapon as its magazine.<br>
<br>
The maximum amount of ammunition that can be stored in a single box is 65535 units.
Regardless of the interface, however, the number will never be fully visible.
Only the first three digits or the first four digits may be represented.</p></div><dlclass="paramcmts block"><dtclass="param">data</dt><ddclass="cmt"><p>na</p></dd><dtclass="param">magazine</dt><ddclass="cmt"><p>the number of rounds available</p></dd></dl><dlclass="attributes block"><dt>Source</dt><dd><ahref="https://github.com/psforever/PSF-LoginServer/blob/master//home/runner/work/PSF-LoginServer/PSF-LoginServer/src/main/scala/net/psforever/packet/game/objectcreate/DetailedAmmoBoxData.scala"target="_blank">DetailedAmmoBoxData.scala</a></dd><dt>See also</dt><dd><spanclass="cmt"><p><code>DetailedWeaponData</code></p></span></dd></dl><divclass="toggleContainer"><divclass="toggle block"><span>Linear Supertypes</span><divclass="superTypes hiddenContent"><ahref="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html#java.io.Serializable"name="java.io.Serializable"id="java.io.Serializable"class="extype">Serializable</a>, <spanname="scala.Product"class="extype">Product</span>, <spanname="scala.Equals"class="extype">Equals</span>, <ahref="ConstructorData.html"name="net.psforever.packet.game.objectcreate.ConstructorData"id="net.psforever.packet.game.objectcreate.ConstructorData"class="extype">ConstructorData</a>, <ahref="StreamBitSize.html"name="net.psforever.packet.game.objectcreate.StreamBitSize"id="net.psforever.packet.game.objectcreate.StreamBitSize"class="extype">StreamBitSize</a>, <spanname="scala.AnyRef"class="extype">AnyRef</span>, <spanname="scala.Any"class="extype">Any</span></div></div></div></div><divid="mbrsel"><divclass="toggle"></div><divid="memberfilter"><iclass="material-icons arrow"></i><spanclass="input"><inputplaceholder="Filter all members"id="mbrsel-input"type="text"accesskey="/"/></span><iclass="clear material-icons"></i></div><divid="filterby"><divid="order"><spanclass="filtertype">Ordering</span><ol><liclass="alpha in"><span>Alphabetic</span></li><liclass="inherit out"><span>By Inheritance</span></li></ol></div><divclass="ancestors"><spanclass="filtertype">Inherited<br/></span><olid="linearization"><liclass="in"name="net.psforever.packet.game.objectcreate.DetailedAmmoBoxData"><span>DetailedAmmoBoxData</span></li><liclass="in"name="java.io.Serializable"><span>Serializable</span></li><liclass="in"name="scala.Product"><span>Product</span></li><liclass="in"name="scala.Equals"><span>Equals</span></li><liclass="in"name="net.psforever.packet.game.objectcreate.ConstructorData"><span>ConstructorData</span></li><liclass="in"name="net.psforever.packet.game.objectcreate.StreamBitSize"><span>StreamBitSize</span></li><liclass="in"name="scala.AnyRef"><span>AnyRef</span></li><liclass="in"name="scala.Any"><span>Any</span></li></ol></div><divclass="ancestors"><spanclass="filtertype"></span><ol><liclass="hideall out"><span>Hide All</span></li><liclass="showall in"><span>Show All</span></li></ol></div><divid="visbl"><spanclass="filtertype">Visibility</span><ol><liclass="public in"><span>Public</span></li><liclass="protected out"><span>Protected</span></li></ol></div></div></div><divid="template"><divid="allMembers"><divid="constructors"class="members"><h3>Instance Constructors</h3><ol><liclass="indented0 "name="net.psforever.packet.game.objectcreate.DetailedAmmoBoxData#<init>"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="<init>(data:net.psforever.packet.game.objectcreate.CommonFieldData,magazine:Int):net.psforever.packet.game.objectcreate.DetailedAmmoBoxData"></a><aid="<init>:DetailedAmmoBoxData"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedAmmoBoxData.html#<init>(data:net.psforever.packet.game.objectcreate.CommonFieldData,magazine:Int):net.psforever.packet.game.objectcreate.DetailedAmmoBoxData"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">new</span></span><spanclass="symbol"><spanclass="name">DetailedAmmoBoxData</span><s
<br>
The calculation reflects the <code>scodec Codec</code> definition rather than the explicit parameter fields.</p><divclass="fullcomment"><divclass="comment cmt"><p>Performs a "sizeof()" analysis of the given object.<br>
<br>
The calculation reflects the <code>scodec Codec</code> definition rather than the explicit parameter fields.
For example, a traditional <code>Int</code> is normally a 32-bit number, often rendered as a <code>32u</code> number.
When parsed with a <code>uintL(7)</code>, it's length will be considered 7 bits (<code>7u</code>).
(Note: being permanently signed, an <code>scodec</code> value of <code>32u</code> or longer must fit into a <code>Long</code> type.)</p></div><dlclass="paramcmts block"><dt>returns</dt><ddclass="cmt"><p>the number of bits necessary to measure an object of this class;