package Ġch . lead rian . samp . k amp . core . api . entity Ċ Ċ import Ġch . lead rian . samp . k amp . core . api . base . Has Model Id Ċ import Ġch . lead rian . samp . k amp . core . api . callback . On Player Pick Up Pickup Receiver Ċ import Ġch . lead rian . samp . k amp . core . api . data . Vector 3 D Ċ import Ġch . lead rian . samp . k amp . core . api . entity . extension . Entity Extension Container Ċ import Ġch . lead rian . samp . k amp . core . api . entity . extension . Extend able Ċ import Ġch . lead rian . samp . k amp . core . api . entity . id . Pickup Id Ċ import Ġch . lead rian . samp . k amp . core . api . exception . Creation FailedException Ċ import Ġch . lead rian . samp . k amp . core . runtime . SAMP Native Function Executor Ċ import Ġch . lead rian . samp . k amp . core . runtime . callback . On Player Pick Up Pickup Receiver Delegate Ċ Ċ class ĠPick up Ċ internal Ġconstructor ( ĊĠĠĠĠĠĠĠ Ġoverride Ġval Ġmodel Id : ĠInt , ĊĠĠĠĠĠĠĠ Ġcoordinates : ĠVector 3 D , ĊĠĠĠĠĠĠĠ Ġval Ġtype : ĠInt , ĊĠĠĠĠĠĠĠ Ġval Ġvirtual World Id : ĠInt ?, ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġnative Function Executor : ĠS AMP Native Function Executor , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġon Player Pick Up Pickup Receiver : ĠOn Player Pick Up Pickup Receiver Delegate Ġ= ĠOn Player Pick Up Pickup Receiver Delegate () Ċ ) Ġ: ĠEntity < Pickup Id >, ĊĠĠĠĠĠĠĠ ĠAbstract Destroy able (), ĊĠĠĠĠĠĠĠ ĠExtend able < Pickup >, ĊĠĠĠĠĠĠĠ ĠHas Model Id , ĊĠĠĠĠĠĠĠ ĠOn Player Pick Up Pickup Receiver Ġby Ġon Player Pick Up Pickup Receiver Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġextensions : ĠEntity Extension Container < Pickup > Ġ= ĠEntity Extension Container ( this ) ĊĊĠĠĠ Ġoverride Ġval Ġid : ĠPick up Id ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġrequire Not Destroyed Ġ{ Ġfield Ġ} ĊĊĠĠĠ Ġval Ġcoordinates : ĠVector 3 D Ġ= Ġcoordinates . to Vector 3 D () ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpick up Id Ġ= Ġnative Function Executor . create Pickup ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmodel Ġ= Ġmodel Id , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġx Ġ= Ġcoordinates . x , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġy Ġ= Ġcoordinates . y , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġz Ġ= Ġcoordinates . z , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtype Ġ= Ġtype , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġvirtual world Ġ= Ġvirtual World Id Ġ?: Ġ- 1 ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġif Ġ( pickup Id Ġ== ĠPick up Id . INVALID . value ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthrow ĠCreation FailedException (" Could Ġnot Ġcreate Ġpick up ") ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġid Ġ= ĠPick up Id . valueOf ( pickup Id ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġinternal Ġfun Ġon Pick Up ( player : ĠPlayer ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon Player Pick Up Pickup Receiver . on Player Pick Up Pickup ( player , Ġthis ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Destroy () Ġ{ ĊĠĠĠĠĠĠĠ Ġextensions . destroy () ĊĠĠĠĠĠĠĠ Ġnative Function Executor . destroy Pickup ( id . value ) ĊĠĠĠ Ġ} Ċ Ċ }