public async Task ReadAsync(MinecraftStream stream) { this.Status = (DiggingStatus)await stream.ReadVarIntAsync(); this.Location = await stream.ReadPositionAsync(); this.Face = (BlockFace)await stream.ReadByteAsync(); }
public override async Task PopulateAsync() { using (var stream = new MinecraftStream(this.PacketData)) { Location = await stream.ReadPositionAsync(); BlockId = await stream.ReadVarIntAsync(); } }
public async override Task PopulateAsync() { using (var stream = new MinecraftStream(this.PacketData)) { this.Status = await stream.ReadVarIntAsync(); this.Location = await stream.ReadPositionAsync(); this.Face = await stream.ReadByteAsync(); } }
public async Task ReadAsync(MinecraftStream stream) { this.Hand = (Hand)await stream.ReadVarIntAsync(); this.Location = await stream.ReadPositionAsync(); this.Face = (BlockFace)await stream.ReadVarIntAsync(); this.CursorX = await stream.ReadFloatAsync(); this.CursorY = await stream.ReadFloatAsync(); this.CursorZ = await stream.ReadFloatAsync(); this.InsideBlock = await stream.ReadBooleanAsync(); }
public override async Task PopulateAsync() { using (var stream = new MinecraftStream(this.PacketData)) { Location = await stream.ReadPositionAsync(); Face = (BlockFace)await stream.ReadByteAsync(); Hand = await stream.ReadVarIntAsync(); CursorX = await stream.ReadFloatAsync(); CursorY = await stream.ReadFloatAsync(); CursorZ = await stream.ReadFloatAsync(); } }