package Ġcom . li am co al studio . ket tle . networking . java . play Ċ Ċ import Ġcom . li am co al studio . ket tle . networking . main . Client Ċ import Ġcom . li am co al studio . ket tle . networking . main . packets . Client State Ċ import Ġcom . li am co al studio . ket tle . networking . main . packets . Packet Ċ import Ġcom . li am co al studio . ket tle . helpers . Buffer Ċ import Ġcom . li am co al studio . ket tle . helpers . Dimension Ċ import Ġcom . li am co al studio . ket tle . networking . main . packets . Server State Ċ import Ġcom . li am co al studio . ket tle . servers . java . Java Server Ċ import Ġcom . li am co al studio . ket tle . servers . main . K et tle Server Ċ import Ġnet . quer z . nbt . io . NBT Serializer Ċ import Ġnet . quer z . nbt . io . Named Tag Ċ import Ġnet . quer z . nbt . tag . Tag Ċ Ċ class ĠS 2 C Join Game Packet ( ĊĠĠĠ Ġval Ġe id : ĠInt , ĊĠĠĠ Ġval Ġhard core : ĠBoolean , ĊĠĠĠ Ġval Ġgame mode : ĠByte , ĊĠĠĠ Ġval Ġprev Game mode : ĠByte , ĊĠĠĠ Ġval Ġworld Count : ĠInt , ĊĠĠĠ Ġval Ġworld s : ĠArray < String >, ĊĠĠĠ Ġval Ġdimension Codec : ĠTag <* >, ĊĠĠĠ Ġval Ġdimension : ĠTag <* >, ĊĠĠĠ Ġval Ġworld Name : ĠString , ĊĠĠĠ Ġval Ġhashed Seed : ĠLong , ĊĠĠĠ Ġval Ġmax Players : ĠInt , ĊĠĠĠ Ġval Ġview Distance : ĠInt , ĊĠĠĠ Ġval Ġreduced Debug Info : ĠBoolean , ĊĠĠĠ Ġval Ġenable Resp awn Screen : ĠBoolean , ĊĠĠĠ Ġval Ġis Debug : ĠBoolean , ĊĠĠĠ Ġval Ġis Flat : ĠBoolean Ċ ) Ġ: ĠPacket ( 0 x 2 4 , ĠClient State . Status . Play ) Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġwrite ( buf : ĠBuffer ) Ġ{ ĊĠĠĠĠĠĠĠ Ġbuf . add Int ( eid ) ĊĠĠĠĠĠĠĠ Ġbuf . add Boolean ( hard core ) ĊĠĠĠĠĠĠĠ Ġbuf . add Byte ( game mode ) ĊĠĠĠĠĠĠĠ Ġbuf . add Byte ( prev Game mode ) ĊĠĠĠĠĠĠĠ Ġbuf . add Var Int ( world Count ) ĊĠĠĠĠĠĠĠ Ġworld s . forEach Ġ{ Ġbuf . add String ( it ) Ġ} ĊĠĠĠĠĠĠĠ Ġbuf . add Buffer ( Buffer ( NBT Serializer ( false ). to Bytes ( Named Tag (" dimension _ codec ", Ġdimension Codec )))) ĊĠĠĠĠĠĠĠ Ġbuf . add Buffer ( Buffer ( NBT Serializer ( false ). to Bytes ( Named Tag (" dimension ", Ġdimension )))) ĊĠĠĠĠĠĠĠ Ġbuf . add String ( world Name ) ĊĠĠĠĠĠĠĠ Ġbuf . add Long ( hashed Seed ) ĊĠĠĠĠĠĠĠ Ġbuf . add Var Int ( max Players ) ĊĠĠĠĠĠĠĠ Ġbuf . add Var Int ( view Distance ) ĊĠĠĠĠĠĠĠ Ġbuf . add Boolean ( reduced Debug Info ) ĊĠĠĠĠĠĠĠ Ġbuf . add Boolean ( enable Resp awn Screen ) ĊĠĠĠĠĠĠĠ Ġbuf . add Boolean ( isDebug ) ĊĠĠĠĠĠĠĠ Ġbuf . add Boolean ( is Flat ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Experimental Std lib Api ĊĠĠĠ Ġoverride Ġfun Ġupdate On Write ( state : ĠServer State , Ġclient : ĠClient ) Ġ{ ĊĠĠĠĠĠĠĠ ĠK et tle Server . GLOBAL !!. get (). execute Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠK et tle Server . GLOBAL !!. get (). on Player Join ( client ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }