4040using MiNET . Utils . Nbt ;
4141using System . Linq ;
4242using System . Collections . Generic ;
43+ using MiNET . Worlds ;
4344
4445namespace MiNET . Net
4546{
4647 public class McpeProtocolInfo
4748 {
48- public const int ProtocolVersion = 786 ;
49- public const string GameVersion = "1.21.70 " ;
49+ public const int ProtocolVersion = 800 ;
50+ public const string GameVersion = "1.21.80 " ;
5051 }
5152
5253 public interface IMcpeMessageHandler
@@ -79,7 +80,6 @@ public interface IMcpeMessageHandler
7980 void HandleMcpeCraftingEvent ( McpeCraftingEvent message ) ;
8081 void HandleMcpeAdventureSettings ( McpeAdventureSettings message ) ;
8182 void HandleMcpeBlockEntityData ( McpeBlockEntityData message ) ;
82- void HandleMcpePlayerInput ( McpePlayerInput message ) ;
8383 void HandleMcpeSetPlayerGameType ( McpeSetPlayerGameType message ) ;
8484 void HandleMcpeMapInfoRequest ( McpeMapInfoRequest message ) ;
8585 void HandleMcpeRequestChunkRadius ( McpeRequestChunkRadius message ) ;
@@ -837,8 +837,6 @@ public static Packet Create(short messageId, ReadOnlyMemory<byte> buffer, string
837837 return McpeAdventureSettings . CreateObject ( ) . Decode ( buffer ) ;
838838 case 0x38 :
839839 return McpeBlockEntityData . CreateObject ( ) . Decode ( buffer ) ;
840- case 0x39 :
841- return McpePlayerInput . CreateObject ( ) . Decode ( buffer ) ;
842840 case 0x3a :
843841 return McpeLevelChunk . CreateObject ( ) . Decode ( buffer ) ;
844842 case 0x3b :
@@ -5241,66 +5239,6 @@ protected override void ResetPacket()
52415239
52425240 }
52435241
5244- public partial class McpePlayerInput : Packet < McpePlayerInput >
5245- {
5246-
5247- public float motionX ; // = null;
5248- public float motionZ ; // = null;
5249- public bool jumping ; // = null;
5250- public bool sneaking ; // = null;
5251-
5252- public McpePlayerInput ( )
5253- {
5254- Id = 0x39 ;
5255- IsMcpe = true ;
5256- }
5257-
5258- protected override void EncodePacket ( )
5259- {
5260- base . EncodePacket ( ) ;
5261-
5262- BeforeEncode ( ) ;
5263-
5264- Write ( motionX ) ;
5265- Write ( motionZ ) ;
5266- Write ( jumping ) ;
5267- Write ( sneaking ) ;
5268-
5269- AfterEncode ( ) ;
5270- }
5271-
5272- partial void BeforeEncode ( ) ;
5273- partial void AfterEncode ( ) ;
5274-
5275- protected override void DecodePacket ( )
5276- {
5277- base . DecodePacket ( ) ;
5278-
5279- BeforeDecode ( ) ;
5280-
5281- motionX = ReadFloat ( ) ;
5282- motionZ = ReadFloat ( ) ;
5283- jumping = ReadBool ( ) ;
5284- sneaking = ReadBool ( ) ;
5285-
5286- AfterDecode ( ) ;
5287- }
5288-
5289- partial void BeforeDecode ( ) ;
5290- partial void AfterDecode ( ) ;
5291-
5292- protected override void ResetPacket ( )
5293- {
5294- base . ResetPacket ( ) ;
5295-
5296- motionX = default ( float ) ;
5297- motionZ = default ( float ) ;
5298- jumping = default ( bool ) ;
5299- sneaking = default ( bool ) ;
5300- }
5301-
5302- }
5303-
53045242 public partial class McpeLevelChunk : Packet < McpeLevelChunk >
53055243 {
53065244
@@ -8604,7 +8542,7 @@ protected override void ResetPacket()
86048542 public partial class McpeBiomeDefinitionList : Packet < McpeBiomeDefinitionList >
86058543 {
86068544
8607- public Nbt namedtag ; // = null;
8545+ public Biome [ ] biomes ; // = null;
86088546
86098547 public McpeBiomeDefinitionList ( )
86108548 {
@@ -8618,7 +8556,7 @@ protected override void EncodePacket()
86188556
86198557 BeforeEncode ( ) ;
86208558
8621- Write ( namedtag ) ;
8559+ Write ( biomes ) ;
86228560
86238561 AfterEncode ( ) ;
86248562 }
@@ -8632,7 +8570,7 @@ protected override void DecodePacket()
86328570
86338571 BeforeDecode ( ) ;
86348572
8635- namedtag = ReadNbt ( ) ;
8573+ biomes = ReadBiomes ( ) ;
86368574
86378575 AfterDecode ( ) ;
86388576 }
@@ -8644,7 +8582,7 @@ protected override void ResetPacket()
86448582 {
86458583 base . ResetPacket ( ) ;
86468584
8647- namedtag = default ( Nbt ) ;
8585+ biomes = default ( Biome [ ] ) ;
86488586 }
86498587
86508588 }
0 commit comments