コード例 #1
0
ファイル: SpawnPlayerPacket.cs プロジェクト: yts233/Minecraft
 public void WriteToStream(IPacketCodec content)
 {
     content.WriteVarInt(EntityId);
     content.Write(PlayerUuid);
     content.Write(Position);
     content.WriteAngleRotation(Rotation);
 }
コード例 #2
0
 public void WriteToStream(IPacketCodec content)
 {
     content.WriteVarInt(EntityId);
     content.Write((short)(Delta.X * 4096));
     content.Write((short)(Delta.Y * 4096));
     content.Write((short)(Delta.Z * 4096));
     content.WriteAngleRotation(Rotation);
     content.Write(OnGround);
 }
コード例 #3
0
 public void WriteToStream(IPacketCodec content)
 {
     content.WriteVarInt(EntityId);
     content.WriteAngleRotation(Rotation);
     content.Write(OnGround);
 }