A <code>Utility</code> object is a variation of an <code>Amenity</code> object that might be found in a <code>Building</code> object.
The object itself is stored inside the <code>Utility</code> as if it were a container.
<code>Amenity</code> objects are required because they are to be owned by the <code>vehicle</code> for purposes of faction affinity.
Only specific kinds of objects count for being <code>Utility</code> contents/objects.
Additional "setup" logic can be supplied that will be called when the owner vehicle's control <code>Actor</code> is created.
Ostensibly, the purpose of the additional logic, when it is called,
is to initialize a control <code>Actor</code> for the contained object.
This <code>Actor</code> is expected by other logic.</p></div><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/objects/vehicles/Utility.scala"target="_blank">Utility.scala</a></dd><dt>See also</dt><dd><spanclass="cmt"><p><code>Amenity.Owner</code></p></span><spanclass="cmt"><p><code>Vehicle.LoadDefinition</code></p></span><spanclass="cmt"><p><code>VehicleDefinition.Utilities</code></p></span></dd></dl><divclass="toggleContainer"><divclass="toggle block"><span>Linear Supertypes</span><divclass="superTypes hiddenContent"><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.objects.vehicles.Utility"><span>Utility</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.objects.vehicles.Utility#<init>"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="<init>(util:net.psforever.objects.vehicles.UtilityType.Value,vehicle:net.psforever.objects.Vehicle):net.psforever.objects.vehicles.Utility"></a><aid="<init>:Utility"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/vehicles/Utility.html#<init>(util:net.psforever.objects.vehicles.UtilityType.Value,vehicle:net.psforever.objects.Vehicle):net.psforever.objects.vehicles.Utility"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">new</span></span><spanclass="symbol"><spanclass="name">Utility</span><spanclass="params">(<spanname="util">util: <ahref="UtilityType$.html#ValueextendsOrdered[Enumeration.this.Value]withSerializable"name="net.psforever.objects.vehicles.UtilityType.Value"id="net.psforever.objects.vehicles.UtilityType.Value"class="extmbr">UtilityType.Value</a></span>, <spanname="vehicle">vehicle: <ahref="../Vehicle.html"name="net.psforever.objects.Vehicle"id="net.psforever.objects.Vehicle"class="extype">Vehicle</a></span>)</span></span><pclass="shortcomment cmt"></p><divclass="fullcomment"><divclass="comment cmt"></div><dlclass="paramcmts block"><dtclass="param">util</dt><ddclass="cmt"><p>the type of the <code>Amenity</code> object to be created</p></dd><dtclass="param">vehicle</dt><ddclass="cmt"><p>the owner of this object</p></dd></dl></div></li></ol></div><divclass="values members"><h3>Value Members</h3><ol><liclass="indented0 "name="scala.AnyRef#!="group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="!=(x$1:Any):Boolean"></a><aid="!=(Any):Boolean"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/vehicles/Utility.html#!=(x$1:Any):Boolean"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass=
While it is expected to construct an <code>Actor</code>, that is not required.</p></div><dlclass="paramcmts block"><dtclass="param">context</dt><ddclass="cmt"><p>an <code>ActorContext</code> potentially useful for the function</p></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.vehicles.Utility#UtilType"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="UtilType:net.psforever.objects.vehicles.UtilityType.Value"></a><aid="UtilType:UtilityType.Value"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/vehicles/Utility.html#UtilType:net.psforever.objects.vehicles.UtilityType.Value"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">UtilType</span><spanclass="result">: <ahref="UtilityType$.html#ValueextendsOrdered[Enumeration.this.Value]withSerializable"name="net.psforever.objects.vehicles.UtilityType.Value"id="net.psforever.objects.vehicles.UtilityType.Value"class="extmbr">UtilityType.Value</a></span></span><pclass="shortcomment cmt">Recover the original value used to initialize this object.</p><divclass="fullcomment"><divclass="comment cmt"><p>Recover the original value used to initialize this object.</p></div><dlclass="paramcmts block"><dt>returns</dt><ddclass="cmt"><p>the type of the <code>Amenity</code> object that was created</p></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.vehicles.Utility#apply"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="apply():net.psforever.objects.serverobject.structures.Amenity"></a><aid="apply():Amenity"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/vehicles/Utility.html#apply():net.psforever.objects.serverobject.structures.Amenity"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">apply</span><spanclass="params">()</span><spanclass="result">: <ahref="../serverobject/structures/Amenity.html"name="net.psforever.objects.serverobject.structures.Amenity"id="net.psforever.objects.serverobject.structures.Amenity"class="extype">Amenity</a></span></span><pclass="shortcomment cmt">Access the contained object in this <code>Utility</code>.</p><divclass="fullcomment"><divclass="comment cmt"><p>Access the contained object in this <code>Utility</code>.</p></div><dlclass="paramcmts block"><dt>returns</dt><ddclass="cmt"><p>the contained <code>Amenity</code> object</p></dd></dl></div></li><liclass="indented0 "name="scala.Any#asInstanceOf"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="asInstanceOf[T0]:T0"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/vehicles/Utility.html#asInstanceOf[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">asInstanceOf</span><spanclass="tparams">[<spanname="T0">T0</span>]</span><spanclass="result">: <spanname="scala.Any.asInstanceOf.T0"class="extype">T0</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>Any</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#clone"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="prt"><aid="clone():Object"></a><aid="clone():AnyRef"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/vehicles/Utility.html#clone():Object"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">clone</span><spanclass="params">()</span><spanclass="result">: <spanname="scala.AnyRef"class="extype">AnyRef</span></span></span><divclass="fullcomment">