package Ġme . han . m uff in . client . core . mixin čĊč Ċ import Ġio . netty . channel . Channel HandlerContext č Ċ import Ġme . han . m uff in . client . M uff in č Ċ import Ġme . han . m uff in . client . core . Globals č Ċ import Ġme . han . m uff in . client . event . Event Stage able č Ċ import Ġme . han . m uff in . client . event . events . client . Client Chat Receive Event č Ċ import Ġme . han . m uff in . client . event . events . entity . Tot em Pop Event č Ċ import Ġme . han . m uff in . client . event . events . network . Packet Event č Ċ import Ġme . han . m uff in . client . event . events . world . Chunk Event č Ċ import Ġme . han . m uff in . client . event . events . world . Client Item Spawn Event č Ċ import Ġme . han . m uff in . client . gui . menu . Shader Menu č Ċ import Ġme . han . m uff in . client . module . modules . other . MainMenu Module č Ċ import Ġnet . minecraft . client . renderer . texture . IT ext ure Object č Ċ import Ġnet . minecraft . network . Packet č Ċ import Ġnet . minecraft . network . play . server .* č Ċ import Ġnet . minecraft . util . Resource Location č Ċ import Ġorg . spongepowered . asm . mixin . injection . callback . CallbackInfo čĊčĊč Ċ object ĠM ixin Dispatcher Ġ{ čĊĠĠĠ Ġfun Ġshould Display Custom Menu (): ĠBoolean Ġ= ĠMain Menu Module . custom . value čĊĠĠĠ Ġval Ġcustom Menu Ġget () Ġ= ĠShader Menu () čĊčĊ čĊčĊĠĠĠ Ġ/** Ġbegin Ġof Ġnet ty Ġmixins Ġ**/ čĊčĊĠĠĠ Ġ/** Ġbegin Ġof ĠM ixin Network Manager Ġ**/ čĊčĊĠĠĠ Ġ/** čĊĠĠĠĠ Ġ* ĠDispatch Ġpacket Ġsent Ġevent ĠPRE čĊĠĠĠĠ Ġ* Ġ@ see Ġme . han . m uff in . mixin . mixins . netty . Mixin Network Manager . on Send Packet Pre čĊĠĠĠĠ Ġ*/ čĊĠĠĠ Ġfun Ġon Packet Sent Pre ( packet : ĠPacket <* >, Ġci : ĠCallback Info ) Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġevent Ġ= ĠPacket Event . Send ( packet , ĠEvent Stage able . Event Stage . PRE ) čĊĠĠĠĠĠĠĠ ĠM uff in . getInstance (). event Manager . dispatchEvent ( event ) čĊĠĠĠĠĠĠĠ Ġif Ġ( event . is Canceled ) Ġci . cancel () čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ/** čĊĠĠĠĠ Ġ* ĠDispatch Ġpacket Ġsent Ġevent ĠPOST čĊĠĠĠĠ Ġ* Ġ@ see Ġme . han . m uff in . mixin . mixins . netty . Mixin Network Manager . on Send Packet Post čĊĠĠĠĠ Ġ*/ čĊĠĠĠ Ġfun Ġon Packet Sent Post ( packet : ĠPacket <* >, Ġci : ĠCallback Info ) Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġevent Ġ= ĠPacket Event . Send ( packet , ĠEvent Stage able . Event Stage . POST ) čĊĠĠĠĠĠĠĠ ĠM uff in . getInstance (). event Manager . dispatchEvent ( event ) čĊĠĠĠĠĠĠĠ Ġif Ġ( event . is Canceled ) Ġci . cancel () čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ/** čĊĠĠĠĠ Ġ* ĠDispatch Ġpacket Ġreceive Ġevent ĠPRE čĊĠĠĠĠ Ġ* Ġ@ see Ġme . han . m uff in . mixin . mixins . netty . Mixin Network Manager . on Channel Read Pre čĊĠĠĠĠ Ġ*/ čĊĠĠĠ Ġfun Ġon Packet Receive Pre ( packet : ĠPacket <* >, Ġci : ĠCallback Info ) Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġevent Ġ= ĠPacket Event . Receive ( packet , ĠEvent Stage able . Event Stage . PRE ) čĊĠĠĠĠĠĠĠ ĠM uff in . getInstance (). event Manager . dispatchEvent ( event ) čĊĠĠĠĠĠĠĠ Ġif Ġ( event . is Canceled ) Ġci . cancel () čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ/** čĊĠĠĠĠ Ġ* ĠDispatch Ġpacket Ġreceive Ġevent ĠPOST čĊĠĠĠĠ Ġ* Ġ@ see Ġme . han . m uff in . mixin . mixins . netty . Mixin Network Manager . on Channel Read Post čĊĠĠĠĠ Ġ*/ čĊĠĠĠ Ġfun Ġon Packet Receive Post ( context : ĠChannel HandlerContext , Ġpacket : ĠPacket <* >) Ġ{ čĊĠĠĠĠĠĠĠ Ġif Ġ( context . channel (). isOpen ) Ġ{ čĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġevent Ġ= ĠPacket Event . Receive ( packet , ĠEvent Stage able . Event Stage . POST ) čĊĠĠĠĠĠĠĠĠĠĠĠ ĠM uff in . getInstance (). event Manager . dispatchEvent ( event ) čĊĠĠĠĠĠĠĠ Ġ} čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ/** Ġend Ġof ĠM ixin Network Manager Ġ**/ čĊčĊĠĠĠ Ġ/** Ġbegin Ġof ĠM ixin Net Handler Play Client Ġ**/ čĊčĊĠĠĠ Ġ/** čĊĠĠĠĠ Ġ* ĠDispatch Ġchunk Ġload Ġevent čĊĠĠĠĠ Ġ* Ġ@ see Ġme . han . m uff in . mixin . mixins . netty . Mixin Net Handler Play Client . on Handle Chunk Data čĊĠĠĠĠ Ġ*/ čĊĠĠĠ Ġfun Ġon Handle Chunk Data ( packet In : ĠS Packet Chunk Data ) Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġevent Ġ= ĠChunk Event ( Chunk Event . Chunk Type . LOAD , ĠGlobals . mc . world . get Chunk ( packet In . chunk X , Ġpacket In . chunk Z )) čĊĠĠĠĠĠĠĠ ĠM uff in . getInstance (). event Manager . dispatchEvent ( event ) čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ/** čĊĠĠĠĠ Ġ* ĠDispatch Ġitem Ġspawn Ġevent čĊĠĠĠĠ Ġ* Ġ@ see Ġme . han . m uff in . mixin . mixins . netty . Mixin Net Handler Play Client . handle Spawn Object čĊĠĠĠĠ Ġ*/ čĊĠĠĠ Ġfun Ġon Handle Spawn Object ( packet In : ĠS Packet Spawn Object ) Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġevent Ġ= ĠClient Item Spawn Event ( packet In . x . toInt (), Ġpacket In . y . toInt (), Ġpacket In . z . toInt ()) čĊĠĠĠĠĠĠĠ ĠM uff in . getInstance (). event Manager . dispatchEvent ( event ) čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ/** čĊĠĠĠĠ Ġ* ĠDispatch Ġtot em Ġp ops Ġevent čĊĠĠĠĠ Ġ* Ġ@ see Ġme . han . m uff in . mixin . mixins . netty . Mixin Net Handler Play Client . on Tot em Pop čĊĠĠĠĠ Ġ*/ čĊĠĠĠ Ġfun Ġdispatch Tot em Pop ( status : ĠS Packet Entity Status ) Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġevent Ġ= ĠT ot em Pop Event ( status . getEntity ( Globals . mc . world )) čĊĠĠĠĠĠĠĠ ĠM uff in . getInstance (). event Manager . dispatchEvent ( event ) čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ/** čĊĠĠĠĠ Ġ* ĠDispatch Ġtot em Ġp ops Ġevent čĊĠĠĠĠ Ġ* Ġ@ see Ġme . han . m uff in . mixin . mixins . netty . Mixin Net Handler Play Client . on Handle Chat čĊĠĠĠĠ Ġ*/ čĊĠĠĠ Ġfun Ġdispatch Client Chat ( packet In : ĠS Packet Chat ) Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġevent Ġ= ĠClient Chat Receive Event ( packet In ) čĊĠĠĠĠĠĠĠ ĠM uff in . getInstance (). event Manager . dispatchEvent ( event ) čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ/** Ġend Ġof ĠM ixin Net Handler Play Client Ġ**/ čĊčĊĠĠĠ Ġ/** Ġend Ġof Ġnet ty Ġmixins Ġ**/ čĊč Ċ } čĊč Ċ interface ĠIP atched Texture Manager Ġ{ čĊĠĠĠ Ġval Ġtextures : ĠMap < Resource Location , ĠI Texture Object > č Ċ }