public override void Read(byte[] array) { McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out FeetY); McDouble.TryParse(ref array, out Z); McBoolean.TryParse(ref array, out OnGround); }
public override void Read(byte[] array) { McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out Y); McDouble.TryParse(ref array, out Z); McFloat.TryParse(ref array, out Yaw); McFloat.TryParse(ref array, out Pitch); }
public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityId); McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out Y); McDouble.TryParse(ref array, out Z); McShort.TryParse(ref array, out Count); }
public byte Pitch; //Angle public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityID); McUUID.TryParse(ref array, out PlayerUUID); McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out Y); McDouble.TryParse(ref array, out Z); McUnsignedByte.TryParse(ref array, out Yaw); McUnsignedByte.TryParse(ref array, out Pitch); }
public int TeleportID; // Varint public override void Read(byte[] array) { McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out Y); McDouble.TryParse(ref array, out Z); McFloat.TryParse(ref array, out Yaw); McFloat.TryParse(ref array, out Pitch); McUnsignedByte.TryParse(ref array, out Flags); McVarint.TryParse(ref array, out TeleportID); }
public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityId); McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out Y); McDouble.TryParse(ref array, out Z); McUnsignedByte.TryParse(ref array, out Yaw); McUnsignedByte.TryParse(ref array, out Pitch); McBoolean.TryParse(ref array, out OnGround); }
public ModifierData[] Modifiers; //Array of Modifier Data public void Read(ref byte[] array) { McString.TryParse(ref array, out Key); McDouble.TryParse(ref array, out Value); McVarint.TryParse(ref array, out NumberOfModifiers); Modifiers = new ModifierData[NumberOfModifiers]; for (int i = 0; i < NumberOfModifiers; i++) { Modifiers[i] = new ModifierData(); Modifiers[i].Read(ref array); } }
public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityID); McUUID.TryParse(ref array, out EntityUUID); McVarint.TryParse(ref array, out Type); McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out Y); McDouble.TryParse(ref array, out Z); McUnsignedByte.TryParse(ref array, out Yaw); McUnsignedByte.TryParse(ref array, out Pitch); McUnsignedByte.TryParse(ref array, out HeadPitch); McShort.TryParse(ref array, out VelocityX); McShort.TryParse(ref array, out VelocityY); McShort.TryParse(ref array, out VelocityZ); }
public void Read(ref byte[] array) { McUUID.TryParse(ref array, out UUID); McDouble.TryParse(ref array, out Amount); McByte.TryParse(ref array, out Operation); }