Exemplo n.º 1
0
        public override async Task PopulateAsync()
        {
            using (var stream = new MinecraftStream(this.PacketData))
            {
                this.Transform = new Transform(await stream.ReadDoubleAsync(), await stream.ReadDoubleAsync(), await stream.ReadDoubleAsync(), await stream.ReadFloatAsync(), await stream.ReadFloatAsync());

                this.Flags = (PositionFlags)await stream.ReadByteAsync();

                this.TeleportId = await stream.ReadVarIntAsync();
            }
        }
Exemplo n.º 2
0
 public override async Task PopulateAsync()
 {
     using (var stream = new MinecraftStream(this.PacketData))
     {
         this.Position = new Position
         {
             X = await stream.ReadDoubleAsync(),
             Y = await stream.ReadDoubleAsync(),
             Z = await stream.ReadDoubleAsync()
         };
         this.OnGround = await stream.ReadBooleanAsync();
     }
 }