public override byte[] Write() { List <byte> tosend = new List <byte>(); tosend.AddRange(McDouble.ToBytes(X)); tosend.AddRange(McDouble.ToBytes(FeetY)); tosend.AddRange(McDouble.ToBytes(Z)); tosend.AddRange(McBoolean.ToBytes(OnGround)); return(tosend.ToArray()); }
public override byte[] Write() { List <byte> bytes = new List <byte>(); bytes.AddRange(McVarint.ToBytes(EntityId));; bytes.AddRange(McDouble.ToBytes(X)); bytes.AddRange(McDouble.ToBytes(Y)); bytes.AddRange(McDouble.ToBytes(Z)); bytes.AddRange(McShort.ToBytes(Count)); return(bytes.ToArray()); }
public override byte[] Write() { List <byte> bytes = new List <byte>(); bytes.AddRange(McVarint.ToBytes(EntityId)); bytes.AddRange(McUUID.ToBytes(UUID)); bytes.AddRange(McVarint.ToBytes(Type)); bytes.AddRange(McDouble.ToBytes(X)); bytes.AddRange(McDouble.ToBytes(Y)); bytes.AddRange(McDouble.ToBytes(Z)); bytes.AddRange(McUnsignedByte.ToBytes(Pitch)); bytes.AddRange(McUnsignedByte.ToBytes(Yaw)); bytes.AddRange(McInt.ToBytes(Data)); bytes.AddRange(McShort.ToBytes(VelocityX)); bytes.AddRange(McShort.ToBytes(VelocityY)); bytes.AddRange(McShort.ToBytes(VelocityZ)); return(bytes.ToArray()); }