Exemple #1
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     SoundName = stream.ReadString();
     X = stream.ReadInt32() / 8;
     Y = stream.ReadInt32() / 8;
     Z = stream.ReadInt32() / 8;
     Volume = stream.ReadSingle();
     Pitch = stream.ReadUInt8();
     return mode;
 }
Exemple #2
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     ExperienceBar = stream.ReadSingle();
     Level = stream.ReadVarInt();
     TotalExperience = stream.ReadVarInt();
     return mode;
 }
Exemple #3
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     X = stream.ReadSingle();
     Y = stream.ReadSingle();
     Z = stream.ReadSingle();
     Radius = stream.ReadSingle();
     RecordCount = stream.ReadInt32();
     Records = stream.ReadUInt8Array(RecordCount * 3);
     PlayerVelocityX = stream.ReadSingle();
     PlayerVelocityY = stream.ReadSingle();
     PlayerVelocityZ = stream.ReadSingle();
     return mode;
 }
Exemple #4
0
 public void ReadPacket(MinecraftStream stream)
 {
     ExperienceBar = stream.ReadSingle();
     Level = stream.ReadInt16();
     TotalExperience = stream.ReadInt16();
 }
Exemple #5
0
 public override void FromStream(MinecraftStream stream)
 {
     Value = stream.ReadSingle();
 }
Exemple #6
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     Flags = stream.ReadUInt8();
     FlyingSpeed = stream.ReadSingle();
     WalkingSpeed = stream.ReadSingle();
     return mode;
 }
Exemple #7
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     Health = stream.ReadSingle();
     Food = stream.ReadVarInt();
     FoodSaturation = stream.ReadSingle();
     return mode;
 }
Exemple #8
0
 public void ReadPacket(MinecraftStream stream)
 {
     Yaw = stream.ReadSingle();
     Pitch = stream.ReadSingle();
     OnGround = stream.ReadBoolean();
 }
Exemple #9
0
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadDouble();
     Y = stream.ReadDouble();
     Stance = stream.ReadDouble();
     Z = stream.ReadDouble();
     Yaw = stream.ReadSingle();
     Pitch = stream.ReadSingle();
     OnGround = stream.ReadBoolean();
 }
Exemple #10
0
 public void ReadPacket(MinecraftStream stream)
 {
     Flags = stream.ReadUInt8();
     FlyingSpeed = stream.ReadSingle();
     WalkingSpeed = stream.ReadSingle();
 }
Exemple #11
0
 public void ReadPacket(MinecraftStream stream)
 {
     Health = stream.ReadSingle();
     Food = stream.ReadInt16();
     FoodSaturation = stream.ReadSingle();
 }
Exemple #12
0
 public void ReadPacket(MinecraftStream stream)
 {
     EffectName = stream.ReadString();
     X = stream.ReadSingle();
     Y = stream.ReadSingle();
     Z = stream.ReadSingle();
     OffsetX = stream.ReadSingle();
     OffsetY = stream.ReadSingle();
     OffsetZ = stream.ReadSingle();
     ParticleSpeed = stream.ReadSingle();
     ParticleCount = stream.ReadInt32();
 }
Exemple #13
0
 public void ReadPacket(MinecraftStream stream)
 {
     SoundName = stream.ReadString();
     X = stream.ReadInt32();
     Y = stream.ReadInt32();
     Z = stream.ReadInt32();
     Volume = stream.ReadSingle();
     Pitch = stream.ReadUInt8();
 }
Exemple #14
0
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadDouble();
     Y = stream.ReadDouble();
     Z = stream.ReadDouble();
     Radius = stream.ReadSingle();
     RecordCount = stream.ReadInt32();
     Records = stream.ReadUInt8Array(RecordCount * 3);
     PlayerVelocityX = stream.ReadSingle();
     PlayerVelocityY = stream.ReadSingle();
     PlayerVelocityZ = stream.ReadSingle();
 }
Exemple #15
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     EffectName = stream.ReadString();
     X = stream.ReadSingle();
     Y = stream.ReadSingle();
     Z = stream.ReadSingle();
     OffsetX = stream.ReadSingle();
     OffsetY = stream.ReadSingle();
     OffsetZ = stream.ReadSingle();
     ParticleSpeed = stream.ReadSingle();
     ParticleCount = stream.ReadInt32();
     return mode;
 }
Exemple #16
0
 public override void FromStream(MinecraftStream stream)
 {
     Value = stream.ReadSingle();
 }
Exemple #17
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     State = (GameState)stream.ReadUInt8();
     Value = stream.ReadSingle();
     return mode;
 }
Exemple #18
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     Yaw = stream.ReadSingle();
     Pitch = stream.ReadSingle();
     OnGround = stream.ReadBoolean();
     return mode;
 }
Exemple #19
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     Horizontal = stream.ReadSingle();
     Forward = stream.ReadSingle();
     Jump = stream.ReadBoolean();
     Unmount = stream.ReadBoolean();
     return mode;
 }
Exemple #20
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     X = stream.ReadDouble();
     if (direction == PacketDirection.Serverbound)
         Stance = stream.ReadDouble();
     Y = stream.ReadDouble();
     Z = stream.ReadDouble();
     Yaw = stream.ReadSingle();
     Pitch = stream.ReadSingle();
     OnGround = stream.ReadBoolean();
     return mode;
 }
Exemple #21
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     X = stream.ReadDouble();
     Y = stream.ReadDouble();
     Z = stream.ReadDouble();
     Yaw = stream.ReadSingle();
     Pitch = stream.ReadSingle();
     Flags = new PositionFlags();
     Flags.Unpack(stream.ReadUInt8());
     return mode;
 }
Exemple #22
0
 public void ReadPacket(MinecraftStream stream)
 {
     Strafe = stream.ReadSingle();
     Forward = stream.ReadSingle();
     Jump = stream.ReadBoolean();
     Unmount = stream.ReadBoolean();
 }