If a condition is met, the current <code>Optional</code> value is incremented by a specific amount.</p></div><dlclass="paramcmts block"><dtclass="param">start</dt><ddclass="cmt"><p>the original amount</p></dd><dtclass="param">test</dt><ddclass="cmt"><p>the test on whether to add to <code>start</code></p></dd><dtclass="param">value</dt><ddclass="cmt"><p>how much to add to <code>start</code></p></dd><dt>returns</dt><ddclass="cmt"><p>the amount after testing</p></dd></dl></div></li><liclass="indented0 "name="net.psforever.packet.Marshallable#encode"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="encode(a:T):scodec.Attempt[scodec.bits.BitVector]"></a><aid="encode(DetailedCharacterData):Attempt[BitVector]"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedCharacterData$.html#encode(a:T):scodec.Attempt[scodec.bits.BitVector]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">encode</span><spanclass="params">(<spanname="a">a: <ahref="DetailedCharacterData.html"name="net.psforever.packet.game.objectcreate.DetailedCharacterData"id="net.psforever.packet.game.objectcreate.DetailedCharacterData"class="extype">DetailedCharacterData</a></span>)</span><spanclass="result">: <spanname="scodec.Attempt"class="extype">Attempt</span>[<spanname="scodec.bits.BitVector"class="extype">BitVector</span>]</span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd><ahref="../../Marshallable.html"name="net.psforever.packet.Marshallable"id="net.psforever.packet.Marshallable"class="extype">Marshallable</a></dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#eq"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="eq(x$1:AnyRef):Boolean"></a><aid="eq(AnyRef):Boolean"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedCharacterData$.html#eq(x$1:AnyRef):Boolean"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">eq</span><spanclass="params">(<spanname="arg0">arg0: <spanname="scala.AnyRef"class="extype">AnyRef</span></span>)</span><spanclass="result">: <spanname="scala.Boolean"class="extype">Boolean</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#equals"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="equals(x$1:Object):Boolean"></a><aid="equals(AnyRef):Boolean"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedCharacterData$.html#equals(x$1:Object):Boolean"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">equals</span><spanclass="params">(<spanname="arg0">arg0: <spanname="scala.AnyRef"class="extype">AnyRef</span></span>)</span><spanclass="result">: <spanname="scala.Boolean"class="extype">Boolean</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#finalize"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="prt"><aid="finalize():Unit"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedCharacterData$.html#finalize():Unit"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">finalize</span><spanclass="params">()</span><spanclass="result">: <spannam
for whichever of the groups of <code>List</code> objects of <code>String</code> objects are found in a <code>DetailedCharacterData</code> object.</p><divclass="fullcomment"><divclass="comment cmt"><p>A curried function to calculate a cumulative padding value
for whichever of the groups of <code>List</code> objects of <code>String</code> objects are found in a <code>DetailedCharacterData</code> object.
The specific <code>String</code> object being considered is determined by the number of input lists.</p></div><dlclass="paramcmts block"><dtclass="param">base</dt><ddclass="cmt"><p>the starting value with no implant entries, or bits from context</p></dd><dtclass="param">contextOffset</dt><ddclass="cmt"><p>an inherited modification of the <code>base</code> padding value</p></dd><dtclass="param">implants</dt><ddclass="cmt"><p>the list of implants in the stream</p></dd><dtclass="param">prevLists</dt><ddclass="cmt"><p>all of the important previous lists</p></dd><dtclass="param">currListLen</dt><ddclass="cmt"><p>the length of the current list</p></dd><dt>returns</dt><ddclass="cmt"><p>the padding value for the target list;
a value clamped between 0 and 7</p></dd></dl><dlclass="attributes block"><dt>Exceptions thrown</dt><dd><spanclass="cmt"><p><spanname="Exception"class="extype"><code>Exception</code></span> if the number of input lists (<code>prevLists</code>) exceeds the number of expected bit distances between known lists</p></span></dd><dt>See also</dt><dd><spanclass="cmt"><p><code>paddingCalculations(Option[Int], List[ImplantEntry], List[List[Any/]/])(Long)</code></p></span></dd></dl></div></li><liclass="indented0 "name="net.psforever.packet.game.objectcreate.DetailedCharacterData#paddingCalculations"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="paddingCalculations(contextOffset:Option[Int],implants:List[net.psforever.packet.game.objectcreate.ImplantEntry],prevLists:List[List[Any]])(currListLen:Long):Int"></a><aid="paddingCalculations(Option[Int],List[ImplantEntry],List[List[Any]])(Long):Int"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedCharacterData$.html#paddingCalculations(contextOffset:Option[Int],implants:List[net.psforever.packet.game.objectcreate.ImplantEntry],prevLists:List[List[Any]])(currListLen:Long):Int"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">paddingCalculations</span><spanclass="params">(<spanname="contextOffset">contextOffset: <spanname="scala.Option"class="extype">Option</span>[<spanname="scala.Int"class="extype">Int</span>]</span>, <spanname="implants">implants: <spanname="scala.List"class="extype">List</span>[<ahref="ImplantEntry.html"name="net.psforever.packet.game.objectcreate.ImplantEntry"id="net.psforever.packet.game.objectcreate.ImplantEntry"class="extype">ImplantEntry</a>]</span>, <spanname="prevLists">prevLists: <spanname="scala.List"class="extype">List</span>[<spanname="scala.List"class="extype">List</span>[<spanname="scala.Any"class="extype">Any</span>]]</span>)</span><spanclass="params">(<spanname="currListLen">currListLen: <spanname="scala.Long"class="extype">Long</span></span>)</span><spanclass="result">: <spanname="scala.Int"class="extype">Int</span></span></span><pclass="shortcomment cmt">A curried function to calculate a cumulative padding value
for whichever of the groups of <code>List</code> objects of <code>String</code> objects are found in a <code>DetailedCharacterData</code> object.</p><divclass="fullcomment"><divclass="comment cmt"><p>A curried function to calculate a cumulative padding value
for whichever of the groups of <code>List</code> objects of <code>String</code> objects are found in a <code>DetailedCharacterData</code> object.
Defines the expected base value - the starting value for determining the padding.
The specific <code>String</code> object being considered is determined by the number of input lists.</p></div><dlclass="paramcmts block"><dtclass="param">contextOffset</dt><ddclass="cmt"><p>an inherited modification of the <code>base</code> padding value</p></dd><dtclass="param">implants</dt><ddclass="cmt"><p>the list of implants in the stream</p></dd><dtclass="param">prevLists</dt><ddclass="cmt"><p>all of the important previous lists</p></dd><dtclass="param">currListLen</dt><ddclass="cmt"><p>the length of the current list</p></dd><dt>returns</dt><ddclass="cmt"><p>the padding value for the target list</p></dd></dl><dlclass="attributes block"><dt>See also</dt><dd><spanclass="cmt"><p><code>paddingCalculations(Int, Option[Int], List[ImplantEntry], List[List[Any]])(Long)</code></p></span></dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#synchronized"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="synchronized[T0](x$1:=>T0):T0"></a><aid="synchronized[T0](=>T0):T0"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedCharacterData$.html#synchronized[T0](x$1:=>T0):T0"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">synchronized</span><spanclass="tparams">[<spanname="T0">T0</span>]</span><spanclass="params">(<spanname="arg0">arg0: =><spanname="java.lang.AnyRef.synchronized.T0"class="extype">T0</span></span>)</span><spanclass="result">: <spanname="java.lang.AnyRef.synchronized.T0"class="extype">T0</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#toString"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="toString():String"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedCharacterData$.html#toString():String"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">toString</span><spanclass="params">()</span><spanclass="result">: <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#java.lang.String"name="java.lang.String"id="java.lang.String"class="extype">String</a></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#wait"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="wait():Unit"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedCharacterData$.html#wait():Unit"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">wait</span><spanclass="params">()</span><spanclass="result">: <spanname="scala.Unit"class="extype">Unit</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd><spanclass="name">@throws</span><spanclass="args">(<span><spanclass="defval">classOf[java.lang.InterruptedException]</span></span>)</span></dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#wait"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="wait(x$1:Long,x$2:Int):Unit"></a><aid="wait(Long,Int):Unit"></a><spanclass="permalink"><ahref="../../../../../net/psforever/packet/game/objectcreate/DetailedCharacterData$.html#wait(x$1:Long,x$2:Int):Unit"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">wait