@@ -250,6 +250,7 @@ public interface IMcpeClientMessageHandler
250250 void HandleMcpePermissionRequest ( McpePermissionRequest message ) ;
251251 void HandleMcpePlayerFog ( McpePlayerFog message ) ;
252252 void HandleMcpeAnimateEntity ( McpeAnimateEntity message ) ;
253+ void HandleMcpeSyncEntityProperty ( McpeSyncEntityProperty message ) ;
253254 }
254255
255256 public class McpeClientMessageDispatcher
@@ -658,6 +659,9 @@ public bool HandlePacket(Packet message)
658659 case McpeAnimateEntity msg :
659660 _messageHandler . HandleMcpeAnimateEntity ( msg ) ;
660661 break ;
662+ case McpeSyncEntityProperty msg :
663+ _messageHandler . HandleMcpeSyncEntityProperty ( msg ) ;
664+ break ;
661665 default :
662666 return false ;
663667 }
@@ -1039,6 +1043,8 @@ public static Packet Create(short messageId, ReadOnlyMemory<byte> buffer, string
10391043 return McpePlayerFog . CreateObject ( ) . Decode ( buffer ) ;
10401044 case 0x8D :
10411045 return McpeAnvilDamage . CreateObject ( ) . Decode ( buffer ) ;
1046+ case 0xa5 :
1047+ return McpeSyncEntityProperty . CreateObject ( ) . Decode ( buffer ) ;
10421048 }
10431049 }
10441050
@@ -11005,4 +11011,51 @@ protected override void ResetPacket()
1100511011 }
1100611012
1100711013 }
11014+
11015+ public partial class McpeSyncEntityProperty : Packet < McpeSyncEntityProperty >
11016+ {
11017+ public Nbt propertyData ; // = null;
11018+
11019+ public McpeSyncEntityProperty ( )
11020+ {
11021+ Id = 0xa5 ;
11022+ IsMcpe = true ;
11023+ }
11024+
11025+ protected override void EncodePacket ( )
11026+ {
11027+ base . EncodePacket ( ) ;
11028+
11029+ BeforeEncode ( ) ;
11030+
11031+ Write ( propertyData ) ;
11032+
11033+ AfterEncode ( ) ;
11034+ }
11035+
11036+ partial void BeforeEncode ( ) ;
11037+ partial void AfterEncode ( ) ;
11038+
11039+ protected override void DecodePacket ( )
11040+ {
11041+ base . DecodePacket ( ) ;
11042+
11043+ BeforeDecode ( ) ;
11044+
11045+ propertyData = ReadNbt ( ) ;
11046+
11047+ AfterDecode ( ) ;
11048+ }
11049+
11050+ partial void BeforeDecode ( ) ;
11051+ partial void AfterDecode ( ) ;
11052+
11053+ protected override void ResetPacket ( )
11054+ {
11055+ base . ResetPacket ( ) ;
11056+
11057+ propertyData = default ( Nbt ) ;
11058+ }
11059+
11060+ }
1100811061}
0 commit comments