package Ġorg . val ky ri ens k ies . mod . common Ċ Ċ import Ġio . netty . buffer . Byte Buf Ċ import Ġnet . minecraft . server . network . Server Player Entity Ċ import Ġorg . val ky ri ens k ies . core . networking . IV SP acket Ċ import Ġorg . val ky ri ens k ies . core . networking . IV SP acket To Client Sender Ċ import Ġorg . val ky ri ens k ies . core . networking . V SP acket Registry Ċ import Ġorg . val ky ri ens k ies . core . networking . impl . V SP acket Ship DataList Ċ import Ġorg . val ky ri ens k ies . mod . common . networking . impl . V SP acket Ship Data Client Handler Ċ Ċ /** Ċ Ġ* ĠRegisters Ġthe Ġ[ IV SP acket ] s , Ġand Ġstores Ġ[ IV SP acket To Client Sender ] Ċ Ġ* Ġand Ġ[ IV SP acket ToServer Sender ] Ġpacket Ġsend ers . Ċ Ġ*/ Ċ object ĠVS Networking Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġvs Packet Registry Ġ= ĠV SP acket Registry < Server Player Entity >() ĊĠĠĠ Ġlateinit Ġvar Ġship Data Packet To Client Sender : ĠIV SP acket To Client Sender < Server Player Entity > ĊĊĠĠĠ Ġinternal Ġfun Ġregister V SP ackets () Ġ{ ĊĠĠĠĠĠĠĠ Ġvs Packet Registry . register V SP acket ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠV SP acket Ship DataList :: class . java , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠV SP acket Ship DataList . create Empty () Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ ĠV SP acket Ship Data Client Handler , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnull ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġhandle V SP acket Client ( byte Buf : ĠByte Buf ) Ġ{ ĊĠĠĠĠĠĠĠ Ġvs Packet Registry . handle V SP acket Client ( byte Buf ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġhandle V SP acket Client ( vs Packet : ĠIV SP acket ) Ġ{ ĊĠĠĠĠĠĠĠ Ġvs Packet Registry . handle V SP acket Client ( vs Packet ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġhandle V SP acket Server ( byte Buf : ĠByte Buf , Ġsender : ĠServer Player Entity ) Ġ{ ĊĠĠĠĠĠĠĠ Ġvs Packet Registry . handle V SP acket Server ( byte Buf , Ġsender ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġwrite V SP acket ( vs Packet : ĠIV SP acket , Ġbyte Buf : ĠByte Buf ) Ġ{ ĊĠĠĠĠĠĠĠ Ġvs Packet Registry . write V SP acket ( vs Packet , Ġbyte Buf ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġread V SP acket ( byte Buf : ĠByte Buf ): ĠIV SP acket Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġvs Packet Registry . read V SP acket ( byte Buf ) ĊĠĠĠ Ġ} Ċ } Ċ